// Token: 0x06001999 RID: 6553 RVA: 0x00046448 File Offset: 0x00044648
 public Installing(Class96 patchData, Enum101 type, string username, Dictionary <string, string> variables)
 {
     this.object_0        = new object();
     this.InstallerResult = Enum42.const_0;
     this.class96_0       = patchData;
     this.string_20       = username;
     this.dictionary_0    = variables;
     this.ServerType      = type;
     this.InitializeComponent();
     base.FormClosing += this.Installing_FormClosing;
 }
        // Token: 0x0600199A RID: 6554 RVA: 0x000464A4 File Offset: 0x000446A4
        private void Installing_FormClosing(object sender, FormClosingEventArgs e)
        {
            CloseReason closeReason = e.CloseReason;

            if (closeReason != CloseReason.WindowsShutDown)
            {
                Enum42 installerResult = this.InstallerResult;
                if (installerResult != Enum42.const_0)
                {
                    return;
                }
                e.Cancel = true;
                this.method_1();
            }
        }
 // 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();
     }
 }