// Token: 0x0600009E RID: 158 RVA: 0x000043EC File Offset: 0x000025EC
 public static bool IsOneExist(List <string> regList)
 {
     using (List <string> .Enumerator enumerator = regList.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             if (RegSystem.IsExist(enumerator.Current))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
 // Token: 0x0600009A RID: 154 RVA: 0x000040A0 File Offset: 0x000022A0
 internal static bool isExistWithFormat(string regExp)
 {
     regExp = RegSystem.ReplaceWithSpecialConstants(regExp);
     if (regExp == null)
     {
         return(false);
     }
     if (regExp.Contains("$"))
     {
         string[] array = regExp.Split(new char[]
         {
             '$'
         });
         string dir         = array[0];
         string subDirRegex = array[1];
         return(RegSystem.isExistSubDirWithRegex("HKCRU", dir, subDirRegex) || RegSystem.isExistSubDirWithRegex("HKLM", dir, subDirRegex) || RegSystem.isExistSubDirWithRegex("HKCLR", dir, subDirRegex) || RegSystem.isExistSubDirWithRegex("HKUSERS", dir, subDirRegex) || RegSystem.isExistSubDirWithRegex("HKCUCO", dir, subDirRegex));
     }
     if (regExp.Contains("&"))
     {
         string[] array2 = regExp.Split(new char[]
         {
             '&'
         });
         string str = array2[0];
         if (!array2[1].Contains("%"))
         {
             string regKey = array2[1];
             return(RegSystem.GetValue("HKEY_CURRENT_USER\\" + str, regKey) != null || RegSystem.GetValue("HKEY_LOCAL_MACHINE\\" + str, regKey) != null || RegSystem.GetValue("HKEY_USERS\\" + str, regKey) != null || RegSystem.GetValue("HKEY_CURRENT_CONFIG\\" + str, regKey) != null || RegSystem.GetValue("HKEY_CLASSES_ROOT\\" + str, regKey) != null);
         }
         string[] array3 = array2[1].Split(new char[]
         {
             '%'
         });
         string regKey2 = array3[0];
         string text    = array3[1];
         if (text.StartsWith("="))
         {
             text = text.Replace("=", "");
             text = text.Trim();
             string value = RegSystem.GetValue("HKEY_CURRENT_USER\\" + str, regKey2);
             if (value == null)
             {
                 value = RegSystem.GetValue("HKEY_LOCAL_MACHINE\\" + str, regKey2);
                 if (value == null)
                 {
                     value = RegSystem.GetValue("HKEY_USERS\\" + str, regKey2);
                     if (value == null)
                     {
                         value = RegSystem.GetValue("HKEY_CURRENT_CONFIG\\" + str, regKey2);
                         if (value == null)
                         {
                             value = RegSystem.GetValue("HKEY_CLASSES_ROOT\\" + str, regKey2);
                             if (value == null)
                             {
                                 return(false);
                             }
                         }
                     }
                 }
             }
             return(text.Equals(value));
         }
     }
     else if (RegSystem.IsExist(regExp))
     {
         return(true);
     }
     return(false);
 }