// Token: 0x06000875 RID: 2165 RVA: 0x0004C97C File Offset: 0x0004AB7C internal void method_1(long long_0) { if (Assembly.GetCallingAssembly() != typeof(Class179.Class187).Assembly) { return; } if (!Class179.smethod_2()) { return; } int[] array = new int[4]; array[1] = -1820440729; array[0] = -705570316; array[2] = -236152097; array[3] = 582780343; int num = -1640531527; int num2 = (int)long_0; int num3 = (int)(long_0 >> 32); int num4 = 0; for (int num5 = 0; num5 != 32; num5++) { num2 += ((num3 << 4 ^ num3 >> 5) + num3 ^ num4 + array[num4 & 3]); num4 += num; num3 += ((num2 << 4 ^ num2 >> 5) + num2 ^ num4 + array[num4 >> 11 & 3]); } for (int num6 = 0; num6 != 4; num6++) { array[num6] = 0; } this.int_0 = num2; this.int_1 = num3; }
// Token: 0x06001030 RID: 4144 RVA: 0x00048BF4 File Offset: 0x00046DF4 public void imethod_7(Interface6 interface6_0) { Class179 @class = (Class179)interface6_0; this.method_1().Add(@class.imjghrpgVE()); this.list_1 = null; }
// Token: 0x06000860 RID: 2144 RVA: 0x0004C59C File Offset: 0x0004A79C internal static void smethod_1(byte[] byte_0) { if (Assembly.GetCallingAssembly() == typeof(Class179).Assembly && Class179.smethod_2()) { long num = Class179.smethod_0(); byte[] array = new byte[] { (byte)num, (byte)(num >> 40), (byte)(num >> 56), (byte)(num >> 48), (byte)(num >> 32), (byte)(num >> 24), (byte)(num >> 16), (byte)(num >> 8) }; int num2 = byte_0.Length; for (int num3 = 0; num3 != num2; num3++) { int num4 = num3; byte_0[num4] ^= (byte)((int)array[num3 & 7] + num3); } return; } }
private Class179 <string, string> method_0(Type type_0) { Class179 <string, string> class2; Class179 <string, string> class3; if (this.dictionary_0.TryGetValue(type_0, out class2)) { return(class2); } lock (this.dictionary_0) { if (!this.dictionary_0.TryGetValue(type_0, out class2)) { class2 = new Class179 <string, string>(StringComparer.OrdinalIgnoreCase, StringComparer.OrdinalIgnoreCase); foreach (FieldInfo info in type_0.GetFields()) { string str3; string name = info.Name; if (func_0 == null) { func_0 = new Func <EnumMemberAttribute, string>(StringEnumConverter.smethod_1); } string str2 = info.GetCustomAttributes(typeof(EnumMemberAttribute), true).Cast <EnumMemberAttribute>().Select <EnumMemberAttribute, string>(func_0).SingleOrDefault <string>() ?? info.Name; if (class2.method_2(str2, out str3)) { throw new InvalidOperationException("Enum name '{0}' already exists on enum '{1}'.".smethod_1(CultureInfo.InvariantCulture, str2, type_0.Name)); } class2.method_0(name, str2); } this.dictionary_0[type_0] = class2; } return(class2); } return(class3); }
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { if (value == null) { writer.WriteNull(); } else { Enum enum2 = (Enum)value; string str = enum2.ToString("G"); if (!char.IsNumber(str[0]) && (str[0] != '-')) { Class179 <string, string> class2 = this.method_0(enum2.GetType()); string[] strArray = str.Split(new char[] { ',' }); for (int i = 0; i < strArray.Length; i++) { string str3; string str2 = strArray[i].Trim(); class2.method_1(str2, out str3); str3 = str3 ?? str2; if (this.CamelCaseText) { str3 = Class198.smethod_10(str3); } strArray[i] = str3; } string str4 = string.Join(", ", strArray); writer.WriteValue(str4); } else { writer.WriteValue(value); } } }
private static string smethod_0(Class179 <string, string> class179_0, string string_0) { string str; class179_0.method_2(string_0, out str); return(str ?? string_0); }
// Token: 0x0600050C RID: 1292 RVA: 0x00028D9C File Offset: 0x00026F9C public string method_1() { string text; if (this.method_0(out text)) { return(text); } object obj = Struct42.object_0; lock (obj) { if (this.method_0(out text)) { return(text); } Class179 class179_ = this.class58_0.class12_0.class179_0; object obj2 = class179_.object_0; byte[] byte_; bool bool_; lock (obj2) { byte_ = class179_.byte_0; bool_ = class179_.bool_0; if (class179_.bool_1) { if (byte_ == null) { throw new Exception("Unable to decrypt string data: encrypted value is null"); } } else { WeakReference weakReference_ = this.class58_0.class12_0.weakReference_1; string text2 = ((weakReference_ != null) ? weakReference_.Target : null) as string; if (text2 == null) { throw new Exception("Unable to obtain original string data"); } text = string.Copy(text2); Class120.smethod_3(text2); } class179_.bool_1 = true; } if (text == null) { text = Class120.smethod_2(byte_, bool_); } this.method_2(text); } return(text); }
public string GetReference(object context, object value) { string str; Class179 <string, object> class2 = this.method_0(context); if (!class2.method_2(value, out str)) { this.int_0++; str = this.int_0.ToString(CultureInfo.InvariantCulture); class2.method_0(str, value); } return(str); }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { bool flag; Type type = (flag = Class194.smethod_10(objectType)) ? Nullable.GetUnderlyingType(objectType) : objectType; if (reader.JsonToken_0 == JsonToken.Null) { if (!Class194.smethod_10(objectType)) { throw JsonSerializationException.smethod_1(reader, "Cannot convert null value to {0}.".smethod_0(CultureInfo.InvariantCulture, objectType)); } return(null); } try { if (reader.JsonToken_0 == JsonToken.String) { string str2; string str = reader.Object_0.ToString(); if ((str == string.Empty) && flag) { return(null); } Class179 <string, string> class2 = this.method_0(type); if (str.IndexOf(',') != -1) { string[] strArray = str.Split(new char[] { ',' }); for (int i = 0; i < strArray.Length; i++) { string str3 = strArray[i].Trim(); strArray[i] = smethod_0(class2, str3); } str2 = string.Join(", ", strArray); } else { str2 = smethod_0(class2, str); } return(Enum.Parse(type, str2, true)); } if (reader.JsonToken_0 == JsonToken.Integer) { return(Class181.smethod_10(reader.Object_0, CultureInfo.InvariantCulture, type)); } } catch (Exception exception) { throw JsonSerializationException.smethod_2(reader, "Error converting value {0} to type '{1}'.".smethod_1(CultureInfo.InvariantCulture, Class193.smethod_7(reader.Object_0), objectType), exception); } throw JsonSerializationException.smethod_1(reader, "Unexpected token when parsing enum. Expected String or Integer, got {0}.".smethod_0(CultureInfo.InvariantCulture, reader.JsonToken_0)); }
internal void method_26(BinaryReader A_0, int A_1) { for (int i = 0; i < A_1; i++) { Class171 class2; int num7 = A_0.ReadUInt16(); int num2 = num7 & 0x3fff; bool flag = (num7 & 0x8000) != 0; int num3 = A_0.ReadInt32(); if (flag) { switch ((num2 & -64)) { case 0x1c0: case 0x540: case 0x580: case 0x5c0: case 0x600: case 0x640: { int num9 = num3; class2 = smethod_0(num2, num9); goto Label_00A4; } } int num6 = num3; class2 = smethod_1(num2, num6); } else { class2 = new Class179(num2, num3); } Label_00A4: if (class2 != null) { this.method_23(class2); } } for (int j = 0; j < base.method_2(); j++) { Class171 class3 = (Class171)base.method_12(j); if (class3.vmethod_0()) { ((Class172)class3).vmethod_2(A_0); } } }
// Token: 0x06000874 RID: 2164 RVA: 0x0004C894 File Offset: 0x0004AA94 internal long method_0() { if (Assembly.GetCallingAssembly() != typeof(Class179.Class187).Assembly) { return(2918384L); } if (!Class179.smethod_2()) { return(2918384L); } int[] array = new int[] { 0, 0, 0, 582780343 }; array[1] = -1820440729; array[2] = -236152097; array[0] = -705570316; int num = this.int_0; int num2 = this.int_1; int num3 = -1640531527; int num4 = -957401312; for (int num5 = 0; num5 != 32; num5++) { num2 -= ((num << 4 ^ num >> 5) + num ^ num4 + array[num4 >> 11 & 3]); num4 -= num3; num -= ((num2 << 4 ^ num2 >> 5) + num2 ^ num4 + array[num4 & 3]); } for (int num6 = 0; num6 != 4; num6++) { array[num6] = 0; } ulong num7 = (ulong)((ulong)((long)num2) << 32); return((long)(num7 | (ulong)num)); }
// Token: 0x06000629 RID: 1577 RVA: 0x000369A0 File Offset: 0x00034BA0 private static byte[] smethod_9(byte[] byte_0) { string s = "wij18KVsARkE6h4Nvxgf+q+4Yq4Qr8u9A47G6G5ZKt7bf9CyysPXucMo8MtMiCv2iKuf9a+eXgwEUTBETmHfO+/0mNbUI0o="; byte[] array = Convert.FromBase64String(s); Class179.smethod_1(array); Class144.Class146 @class = new Class144.Class146(array); int num = byte_0.Length; byte b = 0; byte b2 = 121; byte[] array2 = new byte[] { 148, 68, 208, 52, 241, 93, 195, 220 }; for (int num2 = 0; num2 != num; num2++) { if (b == 0) { b2 = @class.method_1(); } b += 1; if (b == 32) { b = 0; } int num3 = num2; byte_0[num3] ^= (b2 ^ array2[num2 >> 2 & 3] ^ array2[(int)(b & 3)]); } return(byte_0); }
// Token: 0x0600085F RID: 2143 RVA: 0x0004C3B8 File Offset: 0x0004A5B8 internal static long smethod_0() { if (Assembly.GetCallingAssembly() == typeof(Class179).Assembly && Class179.smethod_2()) { long result; lock (Class179.class187_0) { long num = Class179.class187_0.method_0(); if (num == 0L) { Assembly executingAssembly = Assembly.GetExecutingAssembly(); List <byte> list = new List <byte>(); AssemblyName assemblyName; try { assemblyName = executingAssembly.GetName(); } catch { assemblyName = new AssemblyName(executingAssembly.FullName); } byte[] array = assemblyName.GetPublicKeyToken(); if (array != null && array.Length == 0) { array = null; } if (array != null) { list.AddRange(array); } list.AddRange(Encoding.Unicode.GetBytes(assemblyName.Name)); int num2 = Class179.smethod_4(typeof(Class179)); int num3 = Class179.Class180.smethod_0(); list.Add((byte)(num2 >> 8)); list.Add((byte)(num3 >> 8)); list.Add((byte)(num2 >> 16)); list.Add((byte)(num3 >> 16)); list.Add((byte)(num2 >> 24)); list.Add((byte)num3); list.Add((byte)num2); list.Add((byte)(num3 >> 24)); int count = list.Count; ulong num4 = 0UL; for (int num5 = 0; num5 != count; num5++) { num4 += (ulong)list[num5]; num4 += num4 << 20; num4 ^= num4 >> 12; list[num5] = 0; } num4 += num4 << 6; num4 ^= num4 >> 22; num4 += num4 << 30; num = (long)num4; num ^= 5431364615967954426L; Class179.class187_0.method_1(num); } result = num; } return(result); } return(0L); }
// Token: 0x06000337 RID: 823 RVA: 0x00004913 File Offset: 0x00002B13 public Class83(string string_1, Class12 class12_1, Class179 class179_1) { this.string_0 = string_1; this.class12_0 = class12_1; this.class179_0 = class179_1; }
// Token: 0x06000872 RID: 2162 RVA: 0x0004C814 File Offset: 0x0004AA14 internal static int smethod_0() { return(Class179.Class182.smethod_2(Class179.smethod_4(typeof(Class179.Class186)), Class179.Class182.smethod_0(Class179.smethod_4(typeof(Class179.Class180)), Class179.Class182.smethod_1(Class179.smethod_4(typeof(Class179.Class183)), Class179.Class182.smethod_2(Class179.smethod_4(typeof(Class179.Class181)), Class179.Class182.smethod_0(Class179.smethod_4(typeof(Class179.Class185)), Class179.smethod_4(typeof(Class179.Class184)))))))); }
// Token: 0x0600086E RID: 2158 RVA: 0x0004C7AC File Offset: 0x0004A9AC internal static int smethod_0() { return(Class179.Class182.smethod_0(Class179.smethod_4(typeof(Class179.Class184)), Class179.Class182.smethod_2(Class179.Class182.smethod_1(Class179.smethod_4(typeof(Class179.Class185)), Class179.smethod_4(typeof(Class179.Class180))), Class179.Class182.smethod_2(Class179.smethod_4(typeof(Class179.Class181)) ^ -1167500389, Class179.Class185.smethod_0())))); }
// Token: 0x06000867 RID: 2151 RVA: 0x0004C6F0 File Offset: 0x0004A8F0 internal static int smethod_0() { return(Class179.Class182.smethod_2(Class179.Class182.smethod_0(Class179.Class183.smethod_0() ^ 527758446, Class179.smethod_4(typeof(Class179.Class186))), Class179.Class182.smethod_1(Class179.smethod_4(typeof(Class179.Class180)) ^ Class179.smethod_4(typeof(Class179.Class184)), 1098920027))); }
// Token: 0x06000861 RID: 2145 RVA: 0x00006AB2 File Offset: 0x00004CB2 private static bool smethod_2() { return(Class179.smethod_3()); }
public abstract void Visit(Class179 c);
public override void Visit(Class179 c) { }