示例#1
0
        private void FrmCheckey_Load(object sender, EventArgs e)
        {
            string str = null;

            this.method_0(Class13.string_0, Class13.smethod_5(Application.StartupPath.Substring(0, 1)), ref str);
            this.lblHDDserial.Text = str;
            this.method_0(Class13.string_0, this.lblHDDserial.Text, ref str);
            RegistryKey key = null;

            key = Registry.CurrentUser.OpenSubKey("Software", true).CreateSubKey(this.string_0);
            key = Registry.CurrentUser.OpenSubKey(@"Software\\" + this.string_0);
            string str2 = key.GetValue("USERNAME", "").ToString();
            string str3 = key.GetValue("COMPANY", "").ToString();
            string str4 = key.GetValue("ComputerID", "").ToString();

            key.Close();
            if (this.method_5(str, str4))
            {
                this.txtUserName.Enabled = false;
                this.txtCompany.Enabled  = false;
                this.txtCompany.Text     = str3;
                this.txtUserName.Text    = str2;
                this.Tx1.Enabled         = false;
                this.Tx2.Enabled         = false;
                this.Tx3.Enabled         = false;
                this.Tx4.Enabled         = false;
                this.IipWvDcZu.Enabled   = false;
                string[] strArray  = null;
                char[]   separator = new char[] { '-' };
                strArray      = Class7.smethod_14("m_serial").ToString().Split(separator);
                this.Tx1.Text = strArray[0];
                this.Tx2.Text = strArray[1];
                this.Tx3.Text = strArray[2];
                this.Tx4.Text = strArray[3];
            }
        }
示例#2
0
    // Token: 0x060003F7 RID: 1015 RVA: 0x00017BF8 File Offset: 0x00015DF8
    public static bool smethod_5()
    {
        string            text = GClass0.String_0;
        ServiceController serviceController = new ServiceController(text);
        string            text2             = "";
        bool result = false;

        try
        {
            string left = Class13.smethod_6(AppDomain.CurrentDomain.BaseDirectory + "\\es\\wAirCut.resources.dll");
            if (Operators.CompareString(left, "908576645D406E5D543E1F16428FCFDB", false) != 0)
            {
                MessageBox.Show("Resorce file is wrong", "Waircut", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return(false);
            }
            left = Class13.smethod_6(AppDomain.CurrentDomain.BaseDirectory + "\\ru\\wAirCut.resources.dll");
            if (Operators.CompareString(left, "C994E6B19DB5C8A8E4D0549F79CE32A5", false) != 0)
            {
                MessageBox.Show("Resorce file is wrong", "Waircut", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return(false);
            }
            left = Class13.smethod_6(AppDomain.CurrentDomain.BaseDirectory + "\\fr\\wAirCut.resources.dll");
            if (Operators.CompareString(left, "BF000AC77F51D507E038272A8E998290", false) != 0)
            {
                MessageBox.Show("Resorce file is wrong", "Waircut", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return(false);
            }
            if (serviceController.DisplayName != null)
            {
                RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Services");
                if (registryKey != null)
                {
                    Class13.smethod_2(text);
                    registryKey.OpenSubKey(text).GetValue("ImagePath");
                    text2 = Path.GetDirectoryName(registryKey.OpenSubKey(text).GetValue("ImagePath").ToString());
                }
                if (Operators.CompareString(text2, "", false) != 0)
                {
                    left = Class13.smethod_6(text2 + "\\jswscsup.dll");
                    if (Operators.CompareString(left, "1FB6E3E894EDDFF1B2277235BAB769E9", false) == 0)
                    {
                        result = true;
                    }
                    else
                    {
                        GClass4 gclass = new GClass4(left);
                        byte[]  byte_  = GClass0.Byte_0;
                        byte[]  array  = gclass.method_2(ref byte_);
                        left = Class13.smethod_7(array);
                        if (Operators.CompareString(left, "1FB6E3E894EDDFF1B2277235BAB769E9", false) != 0)
                        {
                            MessageBox.Show(Class10.String_56, "Jumpstart Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            return(false);
                        }
                        DateTime lastWriteTime = File.GetLastWriteTime(text2 + "\\jswscsup.dll");
                        DateTime creationTime  = File.GetCreationTime(text2 + "\\jswscsup.dll");
                        if (Class6.Class5_0.FileSystem.FileExists(text2 + "\\jswscsup-tmp.dll"))
                        {
                            Class6.Class5_0.FileSystem.DeleteFile(text2 + "\\jswscsup-tmp.dll");
                        }
                        Class6.Class5_0.FileSystem.RenameFile(text2 + "\\jswscsup.dll", "jswscsup-tmp.dll");
                        File.WriteAllBytes(text2 + "\\jswscsup.dll", array);
                        File.SetLastWriteTime(text2 + "\\jswscsup.dll", lastWriteTime);
                        File.SetCreationTime(text2 + "\\jswscsup.dll", creationTime);
                        if (Class6.Class5_0.FileSystem.FileExists(text2 + "\\jswscsup-tmp.dll"))
                        {
                            Class6.Class5_0.FileSystem.DeleteFile(text2 + "\\jswscsup-tmp.dll");
                        }
                        result = Class13.smethod_5();
                    }
                }
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(Class10.String_57, "Jumpstart Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
        }
        return(result);
    }