public static byte[] smethod_4(string string_1) { if (GClass88.smethod_1(string_1)) { return(File.ReadAllBytes(GClass88.smethod_11(string_1))); } return((byte[])null); }
public static void smethod_0(string string_1) { if (!GClass88.smethod_1(string_1)) { return; } GClass6.smethod_6(GClass88.smethod_11(string_1)); }
internal static string smethod_12(string string_1) { if (GClass88.smethod_1(string_1)) { return(File.ReadAllText(GClass88.smethod_11(string_1))); } return((string)null); }
public static string[] smethod_7(string string_1) { if (GClass88.smethod_1(string_1)) { return(File.ReadAllLines(GClass88.smethod_11(string_1))); } return((string[])null); }
public static void smethod_0() { GClass30.list_0 = new List <string>(); if (!GClass88.smethod_1("installed")) { return; } GClass30.list_0.AddRange((IEnumerable <string>)GClass88.smethod_7("installed")); }
public byte[] method_4(string string_0, int int_1) { string string_1 = GClass88.smethod_8(string_0); if (GClass88.smethod_1(string_1)) { if ((DateTime.Now - GClass88.smethod_6(string_1)).TotalHours <= (double)int_1) { return(GClass88.smethod_4(string_1)); } byte[] byte_1 = new WebClient().UploadValues(string.Format("{0}/requestZipHash.php", (object)Class67.String_0), new NameValueCollection() { { "url", Convert.ToBase64String(Encoding.UTF8.GetBytes(string_0)) } }); using (MD5 md5 = MD5.Create()) { byte[] buffer = GClass88.smethod_4(string_1); if (GClass27.smethod_1(md5.ComputeHash(buffer), byte_1)) { return(buffer); } } } using (MemoryStream memoryStream = new MemoryStream(this.method_2(string.Format("{0}/zipProxy.php?url=", (object)Class67.String_0) + Convert.ToBase64String(Encoding.UTF8.GetBytes(string_0))))) { using (ZipArchive zipArchive = new ZipArchive((Stream)memoryStream)) { ZipArchiveEntry entry = zipArchive.GetEntry("content"); byte[] numArray = new byte[entry.Length]; using (Stream stream = entry.Open()) stream.Read(numArray, 0, numArray.Length); GClass88.smethod_9(new Uri(string_0), numArray); return(numArray); } } }
public static void smethod_0(string string_4, string string_5, string string_6, string string_7, string string_8, string string_9, bool bool_0, byte[] byte_0, byte[] byte_1, byte[] byte_2, GStruct2 gstruct2_0, Action <int> action_0 = null) { ServicePointManager.ServerCertificateValidationCallback += (RemoteCertificateValidationCallback)((object_0, x509Certificate_0, x509Chain_0, sslPolicyErrors_0) => true); ServicePointManager.DefaultConnectionLimit = 8; GClass26.string_0 = string_5; GClass26.string_1 = string_6; GClass26.string_2 = string_7; GClass88.smethod_13(GClass26.string_0); Directory.CreateDirectory(GClass17.string_0); Class67.RootDomain = string_8; GClass28.string_5 = Class67.smethod_22(); GClass28.list_2 = Class67.smethod_2(); GClass28.string_4 = string_4; GClass28.dictionary_0.Clear(); GClass28.list_6.Clear(); GClass28.dictionary_3.Clear(); GClass28.dictionary_1.Clear(); GClass28.dictionary_2.Clear(); GClass30.smethod_0(); Class67.smethod_13(); Class67.smethod_20("out/games.json"); Class67.smethod_20("out/customs.json"); Class67.smethod_20("out/injections.json"); Class67.smethod_20("out/games3ds.json"); Class67.smethod_20("out/gamesWii.json"); Class67.smethod_21("out/updates.json"); Class67.smethod_21("out/updates3ds.json"); Class67.smethod_19("out/dlcs.json"); Class67.smethod_19("out/dlcs3ds.json"); if (!bool_0) { try { GClass26.smethod_5(byte_0); } catch { Settings.Default.TicketsPath = ""; Settings.Default.TicketsPath3DS = ""; Settings.Default.TicketsPathWii = ""; int num = (int)RadMessageBox.Show("The application was unable to parse the specified archive. The app will now restart. Please specify another archive or use the title key site instead (recommended)"); Settings.Default.Save(); Application.Restart(); return; } } else { string string_4_1 = ""; string string_5_1 = ""; string string_6_1 = ""; if (byte_0 != null) { string_4_1 = Encoding.UTF8.GetString(byte_0); } if (byte_1 != null) { string_5_1 = Encoding.UTF8.GetString(byte_1); } if (byte_2 != null) { string_6_1 = Encoding.UTF8.GetString(byte_2); } GClass26.smethod_6(string_4_1, string_5_1, string_6_1); } if (GClass28.dictionary_0.Count == 0) { throw new Exception("No titles available. Please check your ticket source."); } foreach (GClass32 gclass32 in GClass28.dictionary_0.Values) { foreach (GClass31 gclass31 in GClass28.list_6) { if (!(gclass32.TitleId.High != gclass31.TitleId.High) && gclass32.System == gclass31.System) { gclass31.Name = gclass32.Name; gclass32.Dlc = gclass31; break; } } } if (GClass88.smethod_1("lasttitles")) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method GClass28.NewTitles = GClass28.dictionary_0.Values.Where <GClass32>(new Func <GClass32, bool>(new GClass26.Class34() { string_0 = GClass88.smethod_7("lasttitles") }.method_0)).ToList <GClass32>(); } GClass88.smethod_10("lasttitles", GClass28.dictionary_0.Values.Select <GClass32, string>((Func <GClass32, string>)(gclass32_0 => gclass32_0.TitleId.IdRaw)).ToArray <string>()); if (GClass88.smethod_1("lastUpdates")) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method GClass28.NewUpdates = GClass28.dictionary_0.Values.Where <GClass32>((Func <GClass32, bool>)(gclass32_0 => { if (gclass32_0.Boolean_5) { return(gclass32_0.Boolean_3); } return(false); })).Select <GClass32, GClass33>((Func <GClass32, GClass33>)(gclass32_0 => gclass32_0.Updates.Last <GClass33>())).Where <GClass33>(new Func <GClass33, bool>(new GClass26.Class35() { string_0 = GClass88.smethod_7("lastUpdates") }.method_0)).ToList <GClass33>(); } GClass88.smethod_10("lastUpdates", GClass28.dictionary_0.Values.Where <GClass32>((Func <GClass32, bool>)(gclass32_0 => { if (!gclass32_0.Boolean_3) { return(false); } if (!gclass32_0.Boolean_5) { return(gclass32_0.Boolean_1); } return(true); })).Select <GClass32, string>((Func <GClass32, string>)(gclass32_0 => gclass32_0.Updates.Last <GClass33>().ToString())).ToArray <string>()); try { GClass26.smethod_3((IEnumerable <DirectoryInfo>) new DirectoryInfo(Path.Combine(string_4, "DATA_3DS")).GetDirectories("*.*", System.IO.SearchOption.AllDirectories)); } catch { } GClass26.smethod_1("http://wiiu.titlekeys.gq/rss"); GClass26.smethod_1("http://3ds.titlekeys.gq/rss"); GClass3.smethod_4(); GClass28.dictionary_1.Clear(); GClass28.dictionary_2.Clear(); GClass28.dictionary_3.Clear(); GClass28.string_5 = (string[])null; }