private static bool smethod_4( Attribute0 productAttribute, out DateTime firstUsedDate, out DateTime lastUsedDate) { firstUsedDate = DateTime.MinValue; lastUsedDate = DateTime.MinValue; RegistryKey registryKey1 = Registry.CurrentUser.OpenSubKey("Software", true); if (registryKey1 == null) { return(false); } RegistryKey registryKey2 = registryKey1.OpenSubKey("WW", true); if (registryKey2 == null) { return(false); } RegistryKey registryKey3 = registryKey2.OpenSubKey("{F07847F9-0CED-4e2f-8771-9BEA3D1D10CC}"); if (registryKey3 == null) { return(false); } string s1 = (string)registryKey3.GetValue(productAttribute.RegistryKey); if (s1 != null) { if (!(s1 == string.Empty)) { string str; try { str = Encoding.Unicode.GetString(Class98.smethod_1(Class98.smethod_3(s1))); } catch (Exception ex) { return(false); } string[] strArray = str.Split(','); if (strArray == null || strArray.Length != 3) { return(false); } string version1 = strArray[0]; if (version1 == null || version1 == string.Empty) { return(false); } Version version2 = new Version(version1); string s2 = strArray[1]; if (s2 == null || s2 == string.Empty) { return(false); } firstUsedDate = DateTime.Parse(s2, (IFormatProvider)CultureInfo.InvariantCulture); string s3 = strArray[2]; if (s3 == null || s3 == string.Empty) { return(false); } lastUsedDate = DateTime.Parse(s3, (IFormatProvider)CultureInfo.InvariantCulture); Version version3 = Assembly.GetExecutingAssembly().GetName().Version; return(new Version(version3.Major, version3.Minor, version3.Build).CompareTo(new Version(version2.Major, version2.Minor, version2.Build)) <= 0); } } return(false); }