// Token: 0x06000099 RID: 153 RVA: 0x00004054 File Offset: 0x00002254 internal static string ReplaceWithSpecialConstants(string str) { if (str.ToUpper().Contains("{GB_UMDEK}")) { string[] registrySubDirs = RegSystem.GetRegistrySubDirs("HKCRU", "Software\\Cisco"); if (registrySubDirs == null) { return(null); } str = str.Replace("{GB_UMDEK}", registrySubDirs[0].ToUpper()); } return(str); }
// Token: 0x0600009B RID: 155 RVA: 0x000042B4 File Offset: 0x000024B4 internal static bool isExistSubDirWithRegex(string root, string dir, string subDirRegex) { string[] registrySubDirs = RegSystem.GetRegistrySubDirs(root, dir); if (registrySubDirs == null) { return(false); } string[] array = registrySubDirs; for (int i = 0; i < array.Length; i++) { if (Regex.IsMatch(array[i], subDirRegex, RegexOptions.IgnoreCase)) { return(true); } } return(false); }