Пример #1
0
        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);
                }
            }
        }