using System; using System.Globalization; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms { // Token: 0x02002022 RID: 8226 [Token(Token = "0x2002022")] public class Time : Asn1Encodable, IAsn1Choice { // Token: 0x0600CE3F RID: 52799 RVA: 0x002EE640 File Offset: 0x002EC840 [Token(Token = "0x600CE3F")] [Address(RVA = "0x23BDDB0", Offset = "0x23BCDB0", VA = "0x1823BDDB0")] public static Time GetInstance(Asn1TaggedObject obj, bool explicitly) { return Time.GetInstance(obj.GetObject()); } // Token: 0x0600CE40 RID: 52800 RVA: 0x002EE660 File Offset: 0x002EC860 [Token(Token = "0x600CE40")] [Address(RVA = "0x23BDF20", Offset = "0x23BCF20", VA = "0x1823BDF20")] public Time(Asn1Object time) { /* An exception occurred when decompiling this method (0600CE40) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_29: stloc:ArgumentException(var_3_33, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown object passed to Time"))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x0600CE41 RID: 52801 RVA: 0x002EE6A0 File Offset: 0x002EC8A0 [Token(Token = "0x600CE41")] [Address(RVA = "0x23BDDE0", Offset = "0x23BCDE0", VA = "0x1823BDDE0")] public Time(DateTime date) { CultureInfo invariantCulture = CultureInfo.InvariantCulture; string text2; string text = text2 + "Z"; int num = 0; int num2 = int.Parse(text.Substring(num, 4)); num2 += -1950; if (num2 <= 99) { DerUtcTime derUtcTime = new DerUtcTime(text.Substring(2)); this.time = derUtcTime; return; } DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(text); this.time = derGeneralizedTime; } // Token: 0x0600CE42 RID: 52802 RVA: 0x002EE718 File Offset: 0x002EC918 [Token(Token = "0x600CE42")] [Address(RVA = "0x23BDB20", Offset = "0x23BCB20", VA = "0x1823BDB20")] public static Time GetInstance(object obj) { /* An exception occurred when decompiling this method (0600CE42) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_34: stloc:string(var_8_3A, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_9_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_3A)), ldstr:string("obj"))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x170020A8 RID: 8360 // (get) Token: 0x0600CE43 RID: 52803 RVA: 0x002EE778 File Offset: 0x002EC978 [Token(Token = "0x170020A8")] public string TimeString { [Token(Token = "0x600CE43")] [Address(RVA = "0x23BE310", Offset = "0x23BD310", VA = "0x1823BE310")] get { Asn1Object asn1Object; do { asn1Object = this.time; } while ((asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) || asn1Object == 0 || asn1Object == 0); string text; return text; } } // Token: 0x170020A9 RID: 8361 // (get) Token: 0x0600CE44 RID: 52804 RVA: 0x002EE7B8 File Offset: 0x002EC9B8 [Token(Token = "0x170020A9")] public DateTime Date { [Token(Token = "0x600CE44")] [Address(RVA = "0x23BE050", Offset = "0x23BD050", VA = "0x1823BE050")] get { Asn1Object asn1Object = this.time; if (asn1Object != 0 && asn1Object != 0) { if (asn1Object == 0 || asn1Object == 0) { throw new NullReferenceException(); } int num = 0; string text; char c = text[num]; string text2 = text + text; } if (asn1Object != 0 && asn1Object != 0) { DateTime dateTime; return dateTime; } throw new NullReferenceException(); } } // Token: 0x0600CE45 RID: 52805 RVA: 0x002EE82C File Offset: 0x002ECA2C [Token(Token = "0x600CE45")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")] public override Asn1Object ToAsn1Object() { return this.time; } // Token: 0x0400829B RID: 33435 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400829B")] private readonly Asn1Object time; } }