Exemplo n.º 1
0
 public GAttribute45(GEnum2 genum2_1)
 {
     Class13.NP5bWyNzLwONS();
     base..ctor();
     this.method_1(genum2_1);
 }
Exemplo n.º 2
0
 public GAttribute46(GEnum2 genum2_1)
 {
     // ISSUE: reference to a compiler-generated field
     this.genum2_0 = genum2_1;
 }
Exemplo n.º 3
0
 private void method_1(GEnum2 genum2_1)
 {
     this.genum2_0 = genum2_1;
 }
Exemplo n.º 4
0
 public static extern IntPtr CreateFile(string string_0, GEnum0 genum0_0, GEnum1 genum1_0, IntPtr intptr_0, GEnum2 genum2_0, uint uint_4, uint uint_5);
Exemplo n.º 5
0
 public GAttribute45(GEnum2 genum2_1)
 {
     Class13.lOBHd9Nzn7x2T();
     base..ctor();
     this.method_1(genum2_1);
 }
Exemplo n.º 6
0
        private GClass80.Enum1 method_14(GClass30 gclass30_0)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            GClass80.Class63 class63 = new GClass80.Class63();
            // ISSUE: reference to a compiler-generated field
            class63.gclass30_0 = gclass30_0;
            // ISSUE: reference to a compiler-generated field
            GEnum2 genum20 = class63.gclass30_0.GEnum2_0;

            this.gclass78_0.method_9();
            this.timeSpan_1 = new TimeSpan(0L);
            this.timeSpan_0 = new TimeSpan(0L);
            this.gstruct3_0 = new GStruct3(0UL);
            // ISSUE: reference to a compiler-generated field
            class63.gclass30_0.CurrentlyDownloaded = true;
            // ISSUE: reference to a compiler-generated field
            if (!Directory.Exists(class63.gclass30_0.OutputPath))
            {
                // ISSUE: reference to a compiler-generated field
                Directory.CreateDirectory(class63.gclass30_0.OutputPath);
            }
            // ISSUE: reference to a compiler-generated field
            if (class63.gclass30_0.Boolean_0)
            {
                // ISSUE: reference to a compiler-generated field
                return(this.method_12((GClass32)class63.gclass30_0));
            }
            // ISSUE: reference to a compiler-generated field
            TMDExcractionAndProcessing gclass100_0 = this.method_15(class63.gclass30_0, true);
            // ISSUE: reference to a compiler-generated field
            GClass99 gclass99 = this.method_11(class63.gclass30_0);

            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            if (class63.gclass30_0.System == SystemType.SystemWiiU || class63.gclass30_0.System == SystemType.SystemWii)
            {
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                this.method_9(class63.gclass30_0, gclass100_0, class63.gclass30_0.OutputPath);
            }
            this.dataSize_0 = gclass100_0.DataSize_0;
            this.method_17(string.Format("Content size is {0}", (object)this.dataSize_0));
            // ISSUE: reference to a compiler-generated field
            this.method_16(0, this.int_5, 0, this.timeSpan_1, this.timeSpan_2, this.timeSpan_0, new GStruct3(0UL), class63.gclass30_0);
label_7:
            for (int index = 0; index < (int)gclass100_0.NumOfContents; ++index)
            {
                bool flag1 = false;
                if (!this.bool_0)
                {
                    return(GClass80.Enum1.const_1);
                }
                GClass101 gclass101_0;
                DataSize  size;
                while (true)
                {
                    gclass101_0 = gclass100_0.GClass101_0[index];
                    this.method_17(string.Format("Downloading Content #{0} ({1:x8}) of {2}... ({3})", (object)(index + 1), (object)gclass101_0.ContentId, (object)gclass100_0.NumOfContents, (object)gclass101_0.ContentSize));
                    // ISSUE: reference to a compiler-generated field
                    string string_0 = Path.Combine(class63.gclass30_0.OutputPath, gclass101_0.ContentId.ToString("x8"));
                    ulong  num1     = 0;
                    GClass6.smethod_6(string_0 + ".app.partial");
                    if (System.IO.File.Exists(string_0 + ".app"))
                    {
                        goto label_35;
                    }
label_9:
                    try
                    {
                        int num2 = (int)Class64.SetThreadExecutionState(2147483649U);
                        this.method_17("Downloading content...");
                        if (gclass101_0.Boolean_0)
                        {
                            // ISSUE: reference to a compiler-generated field
                            int num3 = (int)this.method_10(class63.gclass30_0, gclass101_0, string_0, GClass80.Enum0.const_0, 0UL);
                        }
                        bool flag2 = false;
                        // ISSUE: reference to a compiler-generated field
                        if (class63.gclass30_0 is GClass33 && gclass101_0.Boolean_0)
                        {
                            // ISSUE: reference to a compiler-generated field
                            // ISSUE: reference to a compiler-generated field
                            // ISSUE: reference to a compiler-generated field
                            // ISSUE: reference to a compiler-generated method
                            foreach (GClass30 gclass30 in class63.gclass30_0.GClass32_0.Updates.Where <GClass33>(class63.func_0 ?? (class63.func_0 = new Func <GClass33, bool>(class63.method_0))))
                            {
                                string str1 = Path.Combine(gclass30.OutputPath, gclass101_0.ContentId.ToString("x8"));
                                string str2 = str1 + ".app";
                                string path = str1 + ".h3";
                                if (System.IO.File.Exists(path) && System.IO.File.Exists(str2) && System.IO.File.ReadAllBytes(path).smethod_5(System.IO.File.ReadAllBytes(string_0 + ".h3")))
                                {
                                    long length = new FileInfo(str2).Length;
                                    size = gclass101_0.ContentSize;
                                    long totalBytes1 = (long)size.TotalBytes;
                                    if (length == totalBytes1)
                                    {
                                        this.method_17("Found similar file in older update. Copying...");
                                        System.IO.File.Copy(str2, string_0 + ".app", true);
                                        GClass78 gclass780             = this.gclass78_0;
                                        DataSize downloadedCurrentGame = gclass780.TotalDownloadedCurrentGame;
                                        size = gclass101_0.ContentSize;
                                        long totalBytes2 = (long)size.TotalBytes;
                                        gclass780.TotalDownloadedCurrentGame = downloadedCurrentGame + (ulong)totalBytes2;
                                        this.gclass78_0.TotalDataDownloaded += gclass101_0.ContentSize;
                                        flag2 = true;
                                        break;
                                    }
                                }
                            }
                        }
                        if (!flag2)
                        {
                            // ISSUE: reference to a compiler-generated field
                            if (this.method_10(class63.gclass30_0, gclass101_0, string_0, GClass80.Enum0.const_1, num1) == GClass80.Enum1.const_1)
                            {
                                return(GClass80.Enum1.const_1);
                            }
                            if (this.bool_2)
                            {
                                if (gclass101_0.Boolean_0)
                                {
                                    if (genum20 != GEnum2.const_2)
                                    {
                                        goto label_7;
                                    }
                                }
                                this.method_17("Verifying download...");
                                this.method_13(true);
                                // ISSUE: reference to a compiler-generated field
                                GStruct7 gstruct7 = Class85.smethod_4(class63.gclass30_0, gclass101_0, gclass99.Byte_0);
                                this.method_13(false);
                                if (!gstruct7.Boolean_0)
                                {
                                    this.gclass78_0.TotalDataDownloaded        -= gclass101_0.ContentSize;
                                    this.gclass78_0.TotalDownloadedCurrentGame -= gclass101_0.ContentSize;
                                    continue;
                                }
                                goto label_7;
                            }
                            else
                            {
                                goto label_7;
                            }
                        }
                        else
                        {
                            goto label_7;
                        }
                    }
                    catch (Exception ex)
                    {
                        bool         flag2 = false;
                        WebException webException;
                        if ((webException = ex as WebException) != null && webException.Status == WebExceptionStatus.ProtocolError && webException.Response != null)
                        {
                            flag2 = ((HttpWebResponse)webException.Response).StatusCode == HttpStatusCode.NotFound;
                        }
                        if (!flag2)
                        {
                            this.method_17(string.Format("Downloading Content #{0} of {1} failed...", (object)(index + 1), (object)gclass100_0.NumOfContents));
                            this.method_17(ex.Message);
                            // ISSUE: reference to a compiler-generated field
                            class63.gclass30_0.CurrentlyDownloaded = false;
                            this.method_5("Downloading Content Failed:\n" + ex.Message);
                            goto label_48;
                        }
                        else
                        {
                            this.method_17(string.Format("Downloading Content #{0} of {1} failed... (File not on NUS)", (object)(index + 1), (object)gclass100_0.NumOfContents));
                            goto label_48;
                        }
                    }
label_35:
                    num1 = (ulong)new FileInfo(string_0 + ".app").Length;
                    this.method_17("Local file detected. Checking size...");
                    long num4 = (long)num1;
                    size = gclass101_0.ContentSize;
                    long totalBytes = (long)size.TotalBytes;
                    if (num4 == totalBytes)
                    {
                        this.method_17("Sizes match. Checking file....");
                        if (gclass101_0.Boolean_0 && !System.IO.File.Exists(string_0 + ".h3"))
                        {
                            // ISSUE: reference to a compiler-generated field
                            int num2 = (int)this.method_10(class63.gclass30_0, gclass101_0, string_0, GClass80.Enum0.const_0, 0UL);
                        }
                        if (this.bool_3)
                        {
                            this.method_13(true);
                            // ISSUE: reference to a compiler-generated field
                            GStruct7 gstruct7 = Class85.smethod_4(class63.gclass30_0, gclass101_0, gclass99.Byte_0);
                            this.method_13(false);
                            if (!gstruct7.Boolean_0)
                            {
                                // ISSUE: reference to a compiler-generated field
                                if (gclass101_0.Boolean_0 && class63.gclass30_0.Platform != Platform.Wii_U_Custom && !flag1)
                                {
                                    this.method_17(string.Format("File has {0} corrupted block(s) for a total of  {1} bytes", (object)gstruct7.list_0.Count, (object)(gstruct7.list_0.Count * 65536)));
                                    this.method_17("Attempting repair. This may take a while depending on the state of the file.");
                                    string str = gclass101_0.ContentId.ToString("x8");
                                    // ISSUE: reference to a compiler-generated field
                                    // ISSUE: reference to a compiler-generated field
                                    GClass78.smethod_0(class63.gclass30_0.String_1 + str, string_0 + ".app", System.IO.File.ReadAllBytes(string_0 + ".h3"), class63.gclass30_0.Ticket.Byte_0, (IEnumerable <int>)gstruct7.list_0);
                                    flag1 = true;
                                }
                                else
                                {
                                    this.method_17("This file is corrupted but cannot be repaired. Now redownloading...");
                                    GClass6.smethod_6(string_0 + ".app");
                                }
                            }
                            else
                            {
                                break;
                            }
                        }
                        else
                        {
                            break;
                        }
                    }
                    else
                    {
                        size = gclass101_0.ContentSize;
                        if (size.TotalBytes < num1)
                        {
                            this.method_17("This file does not qualify for intelligent resuming. Redownloading...");
                            GClass6.smethod_6(string_0 + ".app");
                        }
                        else
                        {
                            this.method_17(string.Format("Sizes mismatch. Resuming download at {0}", (object)new DataSize(num1)));
                            goto label_9;
                        }
                    }
                }
                this.method_17("This file is good, skipping...");
                GClass78 gclass780_1            = this.gclass78_0;
                DataSize downloadedCurrentGame1 = gclass780_1.TotalDownloadedCurrentGame;
                size = gclass101_0.ContentSize;
                long totalBytes3 = (long)size.TotalBytes;
                gclass780_1.TotalDownloadedCurrentGame = downloadedCurrentGame1 + (ulong)totalBytes3;
                this.gclass78_0.TotalDataDownloaded   += gclass101_0.ContentSize;
                continue;
label_48:
                GC.Collect();
            }
            // ISSUE: reference to a compiler-generated field
            this.method_17(string.Format("Downloading Title {0} v{1} Finished...", (object)class63.gclass30_0.TitleId, (object)gclass100_0.TitleVersion));
            // ISSUE: reference to a compiler-generated field
            this.method_16(100, this.int_5, 100, new TimeSpan(0L), this.timeSpan_2, new TimeSpan(0L), this.gstruct3_0, class63.gclass30_0);
            return(GClass80.Enum1.const_0);
        }
Exemplo n.º 7
0
 // Token: 0x060003A8 RID: 936 RVA: 0x00003CF4 File Offset: 0x00001EF4
 public DoShutdownAction(GEnum2 action)
 {
     this.Action = action;
 }
Exemplo n.º 8
0
        // Token: 0x06000081 RID: 129 RVA: 0x000093F4 File Offset: 0x000075F4
        void IAsyncStateMachine.MoveNext()
        {
            int num = this.int_0;

            try
            {
                TaskAwaiter          awaiter;
                TaskAwaiter <GEnum2> awaiter2;
                switch (num)
                {
                case 0:
                    awaiter            = this.taskAwaiter_0;
                    this.taskAwaiter_0 = default(TaskAwaiter);
                    this.int_0         = -1;
                    break;

                case 1:
                    awaiter2           = this.taskAwaiter_1;
                    this.taskAwaiter_1 = default(TaskAwaiter <GEnum2>);
                    this.int_0         = -1;
                    goto IL_C3;

                case 2:
                    awaiter            = this.taskAwaiter_0;
                    this.taskAwaiter_0 = default(TaskAwaiter);
                    this.int_0         = -1;
                    goto IL_163;

                default:
                    goto IL_D4;
                }
IL_94:
                awaiter.GetResult();
                DateTime renewal = Licenser.class156_0.Renewal;
                awaiter2 = Licenser.smethod_6(Class130.string_3, false).GetAwaiter();
                if (!awaiter2.IsCompleted)
                {
                    this.int_0         = 1;
                    this.taskAwaiter_1 = awaiter2;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <GEnum2>, Licenser.Struct9>(ref awaiter2, ref this);
                    return;
                }
IL_C3:
                GEnum2 result = awaiter2.GetResult();
                if (result != (GEnum2)0 && result != (GEnum2)4)
                {
                    this.int_1 = 5;
                    this.int_2 = 0;
                    goto IL_109;
                }
IL_D4:
                awaiter = Task.Delay(TimeSpan.FromSeconds(60.0)).GetAwaiter();
                if (!awaiter.IsCompleted)
                {
                    this.int_0         = 0;
                    this.taskAwaiter_0 = awaiter;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Licenser.Struct9>(ref awaiter, ref this);
                    return;
                }
                goto IL_94;
IL_109:
                if (this.int_1 <= this.int_2)
                {
                    Class130.string_3 = null;
                    Class130.smethod_1();
                    MainWindow.mainWindow_0.method_4(null, null);
                    goto IL_D4;
                }
                MainWindow.webView_0.QueueScriptCall("swal('Uh oh!', 'It seems that your key has been deactivated, or is being used on another PC. The bot will close in " + (this.int_1 - this.int_2).ToString() + " seconds.\\n', 'warning',  {buttons:{visible: false}, closeOnClickOutside:false})");
                awaiter = Task.Delay(1000).GetAwaiter();
                if (!awaiter.IsCompleted)
                {
                    this.int_0         = 2;
                    this.taskAwaiter_0 = awaiter;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Licenser.Struct9>(ref awaiter, ref this);
                    return;
                }
IL_163:
                awaiter.GetResult();
                int num2 = this.int_2;
                this.int_2 = num2 + 1;
                goto IL_109;
            }
            catch (Exception exception)
            {
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
            }
        }
Exemplo n.º 9
0
    // Token: 0x060005C6 RID: 1478 RVA: 0x00031650 File Offset: 0x0002F850
    public async void method_3(bool bool_0)
    {
        for (;;)
        {
            int         num = 0;
            TaskAwaiter taskAwaiter4;
            try
            {
                GEnum2 genum = (GEnum2)5;
                if (Class130.string_3 != null && Class130.string_3.Length > 5)
                {
                    if (bool_0)
                    {
                        Task <GEnum2>      task        = Task.Run <GEnum2>(new Func <Task <GEnum2> >(Startup.Class135.class135_0.method_2));
                        TaskAwaiter <Task> taskAwaiter = Task.WhenAny(new Task[]
                        {
                            task,
                            this.method_1("Authenticating license", "white")
                        }).GetAwaiter();
                        if (!taskAwaiter.IsCompleted)
                        {
                            await taskAwaiter;
                            TaskAwaiter <Task> taskAwaiter2;
                            taskAwaiter  = taskAwaiter2;
                            taskAwaiter2 = default(TaskAwaiter <Task>);
                        }
                        taskAwaiter.GetResult();
                        genum = await task;
                        task  = null;
                    }
                    else
                    {
                        TaskAwaiter taskAwaiter3 = this.method_1("Authenticating license", "white").GetAwaiter();
                        if (!taskAwaiter3.IsCompleted)
                        {
                            await taskAwaiter3;
                            taskAwaiter3 = taskAwaiter4;
                            taskAwaiter4 = default(TaskAwaiter);
                        }
                        taskAwaiter3.GetResult();
                        genum = (GEnum2)0;
                    }
                }
                else
                {
                    TaskAwaiter taskAwaiter3 = this.method_1("Starting", "white").GetAwaiter();
                    if (!taskAwaiter3.IsCompleted)
                    {
                        await taskAwaiter3;
                        taskAwaiter3 = taskAwaiter4;
                        taskAwaiter4 = default(TaskAwaiter);
                    }
                    taskAwaiter3.GetResult();
                }
                GEnum2 genum2 = genum;
                if (genum2 == (GEnum2)0)
                {
                    await this.method_2();

                    await this.method_1(string.Format("Welcome back {0}", (Licenser.class156_0.User != null) ? Licenser.class156_0.User.Split(new char[]
                    {
                        '#'
                    })[0] : string.Empty), "white");

                    new MainWindow();
                    break;
                }
                if (genum2 != (GEnum2)4)
                {
                    TaskAwaiter <bool> taskAwaiter5 = Startup.taskCompletionSource_0.Task.GetAwaiter();
                    if (!taskAwaiter5.IsCompleted)
                    {
                        await taskAwaiter5;
                        TaskAwaiter <bool> taskAwaiter6;
                        taskAwaiter5 = taskAwaiter6;
                        taskAwaiter6 = default(TaskAwaiter <bool>);
                    }
                    taskAwaiter5.GetResult();
                    new Licenser();
                    break;
                }
                for (int i = 10; i > 0; i--)
                {
                    TaskAwaiter taskAwaiter3 = this.method_1(string.Format("Retrying in {0} seconds", i), "white").GetAwaiter();
                    if (!taskAwaiter3.IsCompleted)
                    {
                        await taskAwaiter3;
                        taskAwaiter3 = taskAwaiter4;
                        taskAwaiter4 = default(TaskAwaiter);
                    }
                    taskAwaiter3.GetResult();
                    taskAwaiter3 = Task.Delay(1000).GetAwaiter();
                    if (!taskAwaiter3.IsCompleted)
                    {
                        await taskAwaiter3;
                        taskAwaiter3 = taskAwaiter4;
                        taskAwaiter4 = default(TaskAwaiter);
                    }
                    taskAwaiter3.GetResult();
                }
                continue;
            }
            catch
            {
                num = 1;
            }
            if (num != 1)
            {
                break;
            }
            for (int i = 10; i > 0; i--)
            {
                TaskAwaiter taskAwaiter3 = this.method_1(string.Format("Retrying in {0} seconds", i), "white").GetAwaiter();
                if (!taskAwaiter3.IsCompleted)
                {
                    await taskAwaiter3;
                    taskAwaiter3 = taskAwaiter4;
                    taskAwaiter4 = default(TaskAwaiter);
                }
                taskAwaiter3.GetResult();
                taskAwaiter3 = Task.Delay(1000).GetAwaiter();
                if (!taskAwaiter3.IsCompleted)
                {
                    await taskAwaiter3;
                    taskAwaiter3 = taskAwaiter4;
                    taskAwaiter4 = default(TaskAwaiter);
                }
                taskAwaiter3.GetResult();
            }
        }
    }
Exemplo n.º 10
0
        // Token: 0x060005D6 RID: 1494 RVA: 0x00031AF0 File Offset: 0x0002FCF0
        void IAsyncStateMachine.MoveNext()
        {
            int     num2;
            int     num     = num2;
            Startup startup = this;

            try
            {
                TaskAwaiter taskAwaiter10;
                int         num21;
                int         num22;
                switch (num)
                {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                case 8:
IL_5E8:
                    try
                    {
                        TaskAwaiter <Task>   taskAwaiter7;
                        TaskAwaiter <GEnum2> taskAwaiter8;
                        TaskAwaiter <bool>   taskAwaiter11;
                        switch (num)
                        {
                        case 0:
                        {
                            taskAwaiter7 = taskAwaiter2;
                            taskAwaiter2 = default(TaskAwaiter <Task>);
                            int num3 = -1;
                            num  = -1;
                            num2 = num3;
                            break;
                        }

                        case 1:
                        {
                            TaskAwaiter <GEnum2> taskAwaiter9;
                            taskAwaiter8 = taskAwaiter9;
                            taskAwaiter9 = default(TaskAwaiter <GEnum2>);
                            int num4 = -1;
                            num  = -1;
                            num2 = num4;
                            goto IL_290;
                        }

                        case 2:
                        {
                            taskAwaiter10 = taskAwaiter4;
                            taskAwaiter4  = default(TaskAwaiter);
                            int num5 = -1;
                            num  = -1;
                            num2 = num5;
                            goto IL_2C4;
                        }

                        case 3:
                        {
                            taskAwaiter10 = taskAwaiter4;
                            taskAwaiter4  = default(TaskAwaiter);
                            int num6 = -1;
                            num  = -1;
                            num2 = num6;
                            goto IL_2F0;
                        }

                        case 4:
                        {
                            taskAwaiter10 = taskAwaiter4;
                            taskAwaiter4  = default(TaskAwaiter);
                            int num7 = -1;
                            num  = -1;
                            num2 = num7;
                            goto IL_3A7;
                        }

                        case 5:
                        {
                            taskAwaiter10 = taskAwaiter4;
                            taskAwaiter4  = default(TaskAwaiter);
                            int num8 = -1;
                            num  = -1;
                            num2 = num8;
                            goto IL_440;
                        }

                        case 6:
                        {
                            taskAwaiter10 = taskAwaiter4;
                            taskAwaiter4  = default(TaskAwaiter);
                            int num9 = -1;
                            num  = -1;
                            num2 = num9;
                            goto IL_4C6;
                        }

                        case 7:
                        {
                            taskAwaiter10 = taskAwaiter4;
                            taskAwaiter4  = default(TaskAwaiter);
                            int num10 = -1;
                            num  = -1;
                            num2 = num10;
                            goto IL_4E6;
                        }

                        case 8:
                        {
                            taskAwaiter11 = taskAwaiter6;
                            taskAwaiter6  = default(TaskAwaiter <bool>);
                            int num11 = -1;
                            num  = -1;
                            num2 = num11;
                            goto IL_569;
                        }

                        default:
                            genum = (GEnum2)5;
                            if (Class130.string_3 != null && Class130.string_3.Length > 5)
                            {
                                if (bool_0)
                                {
                                    task         = Task.Run <GEnum2>(new Func <Task <GEnum2> >(Startup.Class135.class135_0.method_2));
                                    taskAwaiter7 = Task.WhenAny(new Task[]
                                    {
                                        task,
                                        startup.method_1("Authenticating license", "white")
                                    }).GetAwaiter();
                                    if (!taskAwaiter7.IsCompleted)
                                    {
                                        int num12 = 0;
                                        num          = 0;
                                        num2         = num12;
                                        taskAwaiter2 = taskAwaiter7;
                                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <Task>, Startup.Struct86>(ref taskAwaiter7, ref this);
                                        return;
                                    }
                                }
                                else
                                {
                                    taskAwaiter10 = startup.method_1("Authenticating license", "white").GetAwaiter();
                                    if (!taskAwaiter10.IsCompleted)
                                    {
                                        int num13 = 2;
                                        num          = 2;
                                        num2         = num13;
                                        taskAwaiter4 = taskAwaiter10;
                                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                                        return;
                                    }
                                    goto IL_2C4;
                                }
                            }
                            else
                            {
                                taskAwaiter10 = startup.method_1("Starting", "white").GetAwaiter();
                                if (!taskAwaiter10.IsCompleted)
                                {
                                    int num14 = 3;
                                    num          = 3;
                                    num2         = num14;
                                    taskAwaiter4 = taskAwaiter10;
                                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                                    return;
                                }
                                goto IL_2F0;
                            }
                            break;
                        }
                        taskAwaiter7.GetResult();
                        taskAwaiter8 = task.GetAwaiter();
                        if (!taskAwaiter8.IsCompleted)
                        {
                            int num15 = 1;
                            num  = 1;
                            num2 = num15;
                            TaskAwaiter <GEnum2> taskAwaiter9 = taskAwaiter8;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <GEnum2>, Startup.Struct86>(ref taskAwaiter8, ref this);
                            return;
                        }
IL_290:
                        GEnum2 genum2 = taskAwaiter8.GetResult();
                        genum         = genum2;
                        task          = null;
                        goto IL_2F7;
IL_2C4:
                        taskAwaiter10.GetResult();
                        genum = (GEnum2)0;
                        goto IL_2F7;
IL_2F0:
                        taskAwaiter10.GetResult();
IL_2F7:
                        genum2 = genum;
                        if (genum2 != (GEnum2)0)
                        {
                            if (genum2 == (GEnum2)4)
                            {
                                i = 10;
                                goto IL_48E;
                            }
                            taskAwaiter11 = Startup.taskCompletionSource_0.Task.GetAwaiter();
                            if (!taskAwaiter11.IsCompleted)
                            {
                                int num16 = 8;
                                num          = 8;
                                num2         = num16;
                                taskAwaiter6 = taskAwaiter11;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <bool>, Startup.Struct86>(ref taskAwaiter11, ref this);
                                return;
                            }
                            goto IL_569;
                        }
                        else
                        {
                            taskAwaiter10 = startup.method_2().GetAwaiter();
                            if (!taskAwaiter10.IsCompleted)
                            {
                                int num17 = 4;
                                num          = 4;
                                num2         = num17;
                                taskAwaiter4 = taskAwaiter10;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                                return;
                            }
                        }
IL_3A7:
                        taskAwaiter10.GetResult();
                        taskAwaiter10 = startup.method_1(string.Format("Welcome back {0}", (Licenser.class156_0.User != null) ? Licenser.class156_0.User.Split(new char[]
                        {
                            '#'
                        })[0] : string.Empty), "white").GetAwaiter();
                        if (!taskAwaiter10.IsCompleted)
                        {
                            int num18 = 5;
                            num          = 5;
                            num2         = num18;
                            taskAwaiter4 = taskAwaiter10;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                            return;
                        }
IL_440:
                        taskAwaiter10.GetResult();
                        new MainWindow();
                        goto IL_64D;
IL_48E:
                        if (i <= 0)
                        {
                            goto IL_A4;
                        }
                        taskAwaiter10 = startup.method_1(string.Format("Retrying in {0} seconds", i), "white").GetAwaiter();
                        if (!taskAwaiter10.IsCompleted)
                        {
                            int num19 = 6;
                            num          = 6;
                            num2         = num19;
                            taskAwaiter4 = taskAwaiter10;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                            return;
                        }
IL_4C6:
                        taskAwaiter10.GetResult();
                        taskAwaiter10 = Task.Delay(1000).GetAwaiter();
                        if (!taskAwaiter10.IsCompleted)
                        {
                            int num20 = 7;
                            num          = 7;
                            num2         = num20;
                            taskAwaiter4 = taskAwaiter10;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                            return;
                        }
IL_4E6:
                        taskAwaiter10.GetResult();
                        num21 = i;
                        i     = num21 - 1;
                        goto IL_48E;
IL_569:
                        taskAwaiter11.GetResult();
                        new Licenser();
                        goto IL_64D;
                    }
                    catch
                    {
                        num22 = 1;
                    }
                    if (num22 == 1)
                    {
                        i = 10;
                        goto IL_98;
                    }
                    goto IL_64D;

                case 9:
                {
                    taskAwaiter10 = taskAwaiter4;
                    taskAwaiter4  = default(TaskAwaiter);
                    int num23 = -1;
                    num  = -1;
                    num2 = num23;
                    goto IL_5C3;
                }

                case 10:
                {
                    taskAwaiter10 = taskAwaiter4;
                    taskAwaiter4  = default(TaskAwaiter);
                    int num24 = -1;
                    num  = -1;
                    num2 = num24;
                    break;
                }

                default:
                    goto IL_A4;
                }
IL_7F:
                taskAwaiter10.GetResult();
                num21 = i;
                i     = num21 - 1;
IL_98:
                if (i > 0)
                {
                    taskAwaiter10 = startup.method_1(string.Format("Retrying in {0} seconds", i), "white").GetAwaiter();
                    if (taskAwaiter10.IsCompleted)
                    {
                        goto IL_5C3;
                    }
                    int num25 = 9;
                    num          = 9;
                    num2         = num25;
                    taskAwaiter4 = taskAwaiter10;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                    return;
                }
IL_A4:
                num22 = 0;
                goto IL_5E8;
IL_5C3:
                taskAwaiter10.GetResult();
                taskAwaiter10 = Task.Delay(1000).GetAwaiter();
                if (!taskAwaiter10.IsCompleted)
                {
                    int num26 = 10;
                    num          = 10;
                    num2         = num26;
                    taskAwaiter4 = taskAwaiter10;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Startup.Struct86>(ref taskAwaiter10, ref this);
                    return;
                }
                goto IL_7F;
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
IL_64D:
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }