public static extern bool EnumWindows(Class265.Delegate174 lpEnumFunc, IntPtr lParam);
 // Token: 0x060019A8 RID: 6568 RVA: 0x000469D8 File Offset: 0x00044BD8
 private void timer_0_Tick(object sender, EventArgs e)
 {
     try
     {
         Installing.Class193 @class = new Installing.Class193();
         @class.class141_0 = this.class142_0.ToonTownProcess;
         if (!this.class142_0.ToonTownProcess.ProcessOpen)
         {
             this.timer_0.Enabled = false;
             this.InstallerResult = Enum42.const_5;
             base.Close();
         }
         else
         {
             Class265.Delegate174 @delegate = null;
             Installing.Class194  class2    = new Installing.Class194();
             class2.class193_0 = @class;
             class2.bool_0     = (!string.IsNullOrEmpty(@class.class141_0.MainWindowTitle) || @class.class141_0.MainWindowHandle != IntPtr.Zero);
             if (!class2.bool_0)
             {
                 using (Process processById = Process.GetProcessById(@class.class141_0.Process.Id))
                 {
                     class2.bool_0 = (!string.IsNullOrEmpty(processById.smethod_1()) || processById.smethod_0() != IntPtr.Zero);
                 }
             }
             if (!class2.bool_0 && this.int_2 > 6)
             {
                 try
                 {
                     if (@delegate == null)
                     {
                         @delegate = new Class265.Delegate174(class2.method_0);
                     }
                     Class265.EnumWindows(@delegate, IntPtr.Zero);
                 }
                 catch (Exception ex)
                 {
                     ex.smethod_0();
                 }
             }
             if (class2.bool_0)
             {
                 this.timer_0.Enabled = false;
                 int num = (1 << Environment.ProcessorCount) - 1;
                 try
                 {
                     @class.class141_0.Process.ProcessorAffinity = new IntPtr(num);
                 }
                 catch (Exception ex2)
                 {
                     ex2.smethod_1(new object[]
                     {
                         string.Format(Installing.string_13, num)
                     });
                 }
                 if (this.class142_0 != null)
                 {
                     this.class142_0.method_4();
                 }
                 this.InstallerResult = Enum42.const_2;
                 base.Close();
             }
         }
         this.int_2++;
     }
     catch (Exception ex3)
     {
         ex3.smethod_0();
         this.timer_0.Enabled = false;
         this.InstallerResult = Enum42.const_4;
         base.Close();
     }
 }