Beispiel #1
0
        // Token: 0x06000522 RID: 1314 RVA: 0x0002BE5C File Offset: 0x0002A05C
        void IAsyncStateMachine.MoveNext()
        {
            int    num2;
            int    num   = num2;
            GForm5 gform = this;

            try
            {
                for (;;)
                {
                    try
                    {
                        string a;
                        TaskAwaiter <string> taskAwaiter3;
                        if (num != 0)
                        {
                            if (gform.string_1 != null)
                            {
                                a = gform.string_1;
                                goto IL_E7;
                            }
                            if (GClass0.string_2 == null || GClass0.string_2.Length <= 5)
                            {
                                gform.method_5(Class185.smethod_0(537721779), Class185.smethod_0(537721735));
                                a = Class185.smethod_0(537721762);
                                goto IL_E7;
                            }
                            gform.method_5(Class185.smethod_0(537721754), Class185.smethod_0(537721735));
                            taskAwaiter3 = GForm3.smethod_11(GClass0.string_2, true, false).GetAwaiter();
                            if (!taskAwaiter3.IsCompleted)
                            {
                                int num3 = 0;
                                num          = 0;
                                num2         = num3;
                                taskAwaiter2 = taskAwaiter3;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, GForm5.Struct41>(ref taskAwaiter3, ref this);
                                return;
                            }
                        }
                        else
                        {
                            taskAwaiter3 = taskAwaiter2;
                            taskAwaiter2 = default(TaskAwaiter <string>);
                            int num4 = -1;
                            num  = -1;
                            num2 = num4;
                        }
                        a = taskAwaiter3.GetResult();
IL_E7:
                        if (a == Class185.smethod_0(537706979))
                        {
                            gform.method_6();
                            Thread.Sleep(500);
                            gform.method_5(string.Format(Class185.smethod_0(537721821), GForm3.string_0.Split(new char[]
                            {
                                '#'
                            })[0]), Class185.smethod_0(537721735));
                            GForm1.smethod_0(new EventHandler(gform.method_3));
                            new GForm1().Show();
                        }
                        else
                        {
                            if (a == Class185.smethod_0(537710733))
                            {
                                for (int i = 10; i > 0; i--)
                                {
                                    gform.method_5(string.Format(Class185.smethod_0(537721796), i), Class185.smethod_0(537721735));
                                    Thread.Sleep(1000);
                                }
                                continue;
                            }
                            GForm3.smethod_0(new EventHandler(gform.method_3));
                            new GForm3();
                        }
                    }
                    catch
                    {
                        for (int j = 10; j > 0; j--)
                        {
                            gform.method_5(string.Format(Class185.smethod_0(537721796), j), Class185.smethod_0(537721735));
                            Thread.Sleep(1000);
                        }
                        continue;
                    }
                    break;
                }
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }
Beispiel #2
0
 // Token: 0x0600051D RID: 1309 RVA: 0x0002BD14 File Offset: 0x00029F14
 public async void method_7(object sender, EventArgs e)
 {
     for (;;)
     {
         try
         {
             string a;
             if (this.string_1 == null)
             {
                 if (GClass0.string_2 != null && GClass0.string_2.Length > 5)
                 {
                     this.method_5(Class185.smethod_0(537721754), Class185.smethod_0(537721735));
                     TaskAwaiter <string> taskAwaiter = GForm3.smethod_11(GClass0.string_2, true, false).GetAwaiter();
                     if (!taskAwaiter.IsCompleted)
                     {
                         await taskAwaiter;
                         TaskAwaiter <string> taskAwaiter2;
                         taskAwaiter  = taskAwaiter2;
                         taskAwaiter2 = default(TaskAwaiter <string>);
                     }
                     a = taskAwaiter.GetResult();
                 }
                 else
                 {
                     this.method_5(Class185.smethod_0(537721779), Class185.smethod_0(537721735));
                     a = Class185.smethod_0(537721762);
                 }
             }
             else
             {
                 a = this.string_1;
             }
             if (a == Class185.smethod_0(537706979))
             {
                 this.method_6();
                 Thread.Sleep(500);
                 this.method_5(string.Format(Class185.smethod_0(537721821), GForm3.string_0.Split(new char[]
                 {
                     '#'
                 })[0]), Class185.smethod_0(537721735));
                 GForm1.smethod_0(new EventHandler(this.method_3));
                 new GForm1().Show();
             }
             else
             {
                 if (a == Class185.smethod_0(537710733))
                 {
                     for (int i = 10; i > 0; i--)
                     {
                         this.method_5(string.Format(Class185.smethod_0(537721796), i), Class185.smethod_0(537721735));
                         Thread.Sleep(1000);
                     }
                     continue;
                 }
                 GForm3.smethod_0(new EventHandler(this.method_3));
                 new GForm3();
             }
         }
         catch
         {
             for (int j = 10; j > 0; j--)
             {
                 this.method_5(string.Format(Class185.smethod_0(537721796), j), Class185.smethod_0(537721735));
                 Thread.Sleep(1000);
             }
             continue;
         }
         break;
     }
 }