2640 lines
77 KiB
C#
2640 lines
77 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.IO;
|
|
using System.Net.Sockets;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using BestHTTP.Caching;
|
|
using BestHTTP.Cookies;
|
|
using BestHTTP.Decompression.Zlib;
|
|
using BestHTTP.Extensions;
|
|
using BestHTTP.Logger;
|
|
using UnityEngine;
|
|
|
|
namespace BestHTTP
|
|
{
|
|
// Token: 0x0200020C RID: 524
|
|
public class ENANHBCGCNA : IDisposable
|
|
{
|
|
// Token: 0x17000267 RID: 615
|
|
// (get) Token: 0x060063D6 RID: 25558 RVA: 0x0020A6A0 File Offset: 0x002088A0
|
|
// (set) Token: 0x0600639E RID: 25502 RVA: 0x00208F04 File Offset: 0x00207104
|
|
public IJMJKONHMNJ HBJIKDPAIJB { get; internal set; }
|
|
|
|
// Token: 0x0600639F RID: 25503 RVA: 0x00208F10 File Offset: 0x00207110
|
|
protected void ECHGCHLKJBO(bool NOBAPCOKFIL)
|
|
{
|
|
this.<JIDBNCALCFK>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063A0 RID: 25504 RVA: 0x00208F1C File Offset: 0x0020711C
|
|
public bool PBNLJLNJECI(string HNOAFNHNNMN, string NOBAPCOKFIL)
|
|
{
|
|
List<string> list = this.CMLBABCILHF(HNOAFNHNNMN);
|
|
if (list == null)
|
|
{
|
|
return false;
|
|
}
|
|
for (int i = 0; i < list.Count; i++)
|
|
{
|
|
if (string.Compare(list[i], NOBAPCOKFIL, StringComparison.OrdinalIgnoreCase) == 0)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x060063A1 RID: 25505 RVA: 0x00208F68 File Offset: 0x00207168
|
|
protected void GNNKBGICOPK()
|
|
{
|
|
if (!this.LEEPNPCACCO.LBFICACMFMG && this.LEEPNPCACCO.NNNKEGPHHKH && !this.MAMDOEOLMPJ && FONHANKGNEA.HADLGILJOHE(this.LEEPNPCACCO.KCHFDKIOAGM, this.LEEPNPCACCO.NBKIKLIPEJP, this))
|
|
{
|
|
this.LHGOCEBFGCJ = FONHANKGNEA.LCKBCBABANI(this.LEEPNPCACCO.KCHFDKIOAGM, this);
|
|
}
|
|
this.IGHDIKOOHBA = 0;
|
|
}
|
|
|
|
// Token: 0x17000265 RID: 613
|
|
// (get) Token: 0x060063A2 RID: 25506 RVA: 0x00208FE0 File Offset: 0x002071E0
|
|
// (set) Token: 0x060063B3 RID: 25523 RVA: 0x00209844 File Offset: 0x00207A44
|
|
public bool JGGLHIEEFKE { get; internal set; }
|
|
|
|
// Token: 0x060063A3 RID: 25507 RVA: 0x00208FE8 File Offset: 0x002071E8
|
|
public bool MCICNIGIALB()
|
|
{
|
|
return this.<JIDBNCALCFK>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063A4 RID: 25508 RVA: 0x00208FF0 File Offset: 0x002071F0
|
|
protected void ODOILELFJKN(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.PALHDHCHBEM("Unignore") : null);
|
|
bool flag = string.IsNullOrEmpty(text) || text == "Hit by ";
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.MLNEAMGDFFA(), -155)];
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("y", array.Length));
|
|
}
|
|
int num = 0;
|
|
int num2 = 1;
|
|
do
|
|
{
|
|
num = 1;
|
|
do
|
|
{
|
|
num2 = 0;
|
|
NetworkStream networkStream = JAGHIAOIDOC as NetworkStream;
|
|
if (networkStream != null && this.LEEPNPCACCO.ANHPDBBDDOM)
|
|
{
|
|
int num3 = num;
|
|
while (num3 < array.Length && networkStream.DataAvailable)
|
|
{
|
|
int num4 = JAGHIAOIDOC.ReadByte();
|
|
if (num4 < 1)
|
|
{
|
|
break;
|
|
}
|
|
array[num3] = (byte)num4;
|
|
num2++;
|
|
num3++;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
num2 = JAGHIAOIDOC.Read(array, num, array.Length - num);
|
|
}
|
|
num += num2;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num2;
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = this.LEEPNPCACCO.MFGBLACGNBA;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && num2 > 0);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.CGKONKNJDEK();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num);
|
|
this.DKLKBEEPEBK(array2, 1, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.HIDODJCJOLM(array, 1, num);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
memoryStream.Write(array, 1, num);
|
|
}
|
|
}
|
|
while (num2 > 1);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.MLBMOHDMMHO();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.LCHAEFBPFIH = this.KGAGLJMMBOC(memoryStream);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063A5 RID: 25509 RVA: 0x00209228 File Offset: 0x00207428
|
|
protected void JLIBEDJAGAB(byte[] PIJMJBDFBJB)
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
lock (nikpaceepnp)
|
|
{
|
|
if (!this.ALBDHHGDPNJ)
|
|
{
|
|
if (this.MHLGNMEBIGG == null)
|
|
{
|
|
this.MHLGNMEBIGG = new List<byte[]>();
|
|
}
|
|
this.MHLGNMEBIGG.Add(PIJMJBDFBJB);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("AddStreamedFragment buffer length: {0:N0} streamedFragments: {1:N0}", PIJMJBDFBJB.Length, this.MHLGNMEBIGG.Count));
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Write(PIJMJBDFBJB, 0, PIJMJBDFBJB.Length);
|
|
this.IGHDIKOOHBA += PIJMJBDFBJB.Length;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700026F RID: 623
|
|
// (get) Token: 0x060063A6 RID: 25510 RVA: 0x002092F0 File Offset: 0x002074F0
|
|
// (set) Token: 0x060063FC RID: 25596 RVA: 0x0020B184 File Offset: 0x00209384
|
|
public bool FONELNFHEGH { get; protected set; }
|
|
|
|
// Token: 0x060063A7 RID: 25511 RVA: 0x002092F8 File Offset: 0x002074F8
|
|
public List<byte[]> HNDJIFDPFJM()
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
List<byte[]> list;
|
|
lock (nikpaceepnp)
|
|
{
|
|
if (this.MHLGNMEBIGG == null || this.MHLGNMEBIGG.Count == 0)
|
|
{
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("GetStreamedFragments - no fragments, returning with null");
|
|
}
|
|
list = null;
|
|
}
|
|
else
|
|
{
|
|
List<byte[]> list2 = new List<byte[]>(this.MHLGNMEBIGG);
|
|
this.MHLGNMEBIGG.Clear();
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("GetStreamedFragments - returning with {0:N0} fragments", list2.Count.ToString()));
|
|
}
|
|
list = list2;
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x060063A8 RID: 25512 RVA: 0x002093B8 File Offset: 0x002075B8
|
|
public static string HIBLLHBJDHH(Stream JAGHIAOIDOC, byte IGENAEEOENC, byte PFHIJLEHKJK)
|
|
{
|
|
string text;
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num = JAGHIAOIDOC.ReadByte();
|
|
while (num != (int)IGENAEEOENC && num != (int)PFHIJLEHKJK && num != -1)
|
|
{
|
|
memoryStream.WriteByte((byte)num);
|
|
num = JAGHIAOIDOC.ReadByte();
|
|
}
|
|
text = memoryStream.ToArray().PFMBHNENAEF().Trim();
|
|
}
|
|
return text;
|
|
}
|
|
|
|
// Token: 0x060063A9 RID: 25513 RVA: 0x00209430 File Offset: 0x00207630
|
|
public string FPJEDHLEOLP()
|
|
{
|
|
return this.<ACDBFCCCKLJ>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063AA RID: 25514 RVA: 0x00209438 File Offset: 0x00207638
|
|
protected void OJDDGKGJCMI(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 43, (byte)(-45)).Trim();
|
|
while (text != string.Empty)
|
|
{
|
|
string text2 = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 106);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("content-length", text, text2));
|
|
}
|
|
this.IEPNKAIFHOI(text, text2);
|
|
text = ENANHBCGCNA.HIBLLHBJDHH(JAGHIAOIDOC, 43, 108);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063AB RID: 25515 RVA: 0x002094A8 File Offset: 0x002076A8
|
|
protected void JOIEINONDJB()
|
|
{
|
|
if (!this.LEEPNPCACCO.LBFICACMFMG && this.LEEPNPCACCO.NNNKEGPHHKH && !this.MAMDOEOLMPJ && FONHANKGNEA.HADLGILJOHE(this.LEEPNPCACCO.KCHFDKIOAGM, this.LEEPNPCACCO.NBKIKLIPEJP, this))
|
|
{
|
|
this.LHGOCEBFGCJ = FONHANKGNEA.LCKBCBABANI(this.LEEPNPCACCO.KCHFDKIOAGM, this);
|
|
}
|
|
this.IGHDIKOOHBA = 1;
|
|
}
|
|
|
|
// Token: 0x060063AC RID: 25516 RVA: 0x00209520 File Offset: 0x00207720
|
|
protected void IJLELPJLNLN(bool NOBAPCOKFIL)
|
|
{
|
|
this.<OBAEBMOAFHE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063AD RID: 25517 RVA: 0x0020952C File Offset: 0x0020772C
|
|
public bool MAMJGLNHNJP(string HNOAFNHNNMN, string NOBAPCOKFIL)
|
|
{
|
|
List<string> list = this.GEEDJGMDBKD(HNOAFNHNNMN);
|
|
if (list == null)
|
|
{
|
|
return true;
|
|
}
|
|
for (int i = 0; i < list.Count; i += 0)
|
|
{
|
|
if (string.Compare(list[i], NOBAPCOKFIL, StringComparison.CurrentCulture) == 0)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x060063AE RID: 25518 RVA: 0x00209578 File Offset: 0x00207778
|
|
protected void ANMOCBDLPID()
|
|
{
|
|
if (this.INEJDLLPCHA != null)
|
|
{
|
|
Array.Resize<byte>(ref this.INEJDLLPCHA, this.HHCGDDGDCJB);
|
|
this.JLIBEDJAGAB(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Dispose();
|
|
this.LHGOCEBFGCJ = null;
|
|
FONHANKGNEA.IFELEMAICAJ(this.LEEPNPCACCO.KCHFDKIOAGM, this.IGHDIKOOHBA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063AF RID: 25519 RVA: 0x002095F0 File Offset: 0x002077F0
|
|
public bool CJJPFOHDGDH()
|
|
{
|
|
return this.<JCGJAPOBLMP>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063B0 RID: 25520 RVA: 0x002095F8 File Offset: 0x002077F8
|
|
protected void DKLKBEEPEBK(byte[] PIJMJBDFBJB, int IFJEHHMHOOM, int MFFGOHPHNFL)
|
|
{
|
|
if (this.INEJDLLPCHA == null)
|
|
{
|
|
this.INEJDLLPCHA = new byte[this.LEEPNPCACCO.BOCHKFMBOGO];
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
if (this.HHCGDDGDCJB + MFFGOHPHNFL <= this.LEEPNPCACCO.MLNEAMGDFFA())
|
|
{
|
|
Array.Copy(PIJMJBDFBJB, IFJEHHMHOOM, this.INEJDLLPCHA, this.HHCGDDGDCJB, MFFGOHPHNFL);
|
|
this.HHCGDDGDCJB += MFFGOHPHNFL;
|
|
if (this.HHCGDDGDCJB == this.LEEPNPCACCO.MLNEAMGDFFA())
|
|
{
|
|
this.EECBCHBCJKN(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
int num = this.LEEPNPCACCO.MLNEAMGDFFA() - this.HHCGDDGDCJB;
|
|
this.DKLKBEEPEBK(PIJMJBDFBJB, IFJEHHMHOOM, num);
|
|
this.HIDODJCJOLM(PIJMJBDFBJB, IFJEHHMHOOM + num, MFFGOHPHNFL - num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000268 RID: 616
|
|
// (get) Token: 0x060063B1 RID: 25521 RVA: 0x002096C8 File Offset: 0x002078C8
|
|
// (set) Token: 0x060063F9 RID: 25593 RVA: 0x0020B068 File Offset: 0x00209268
|
|
public bool ALBDHHGDPNJ { get; private set; }
|
|
|
|
// Token: 0x060063B2 RID: 25522 RVA: 0x002096D0 File Offset: 0x002078D0
|
|
protected bool LIJIEKMEKII(int NHCDLEHEMIM)
|
|
{
|
|
if (NHCDLEHEMIM != -1)
|
|
{
|
|
this.OMMJLDGCINA(false);
|
|
this.NKEEEPBNPFP(this.BOFEJIAEBLP, (long)NHCDLEHEMIM);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN("custom_activity_published");
|
|
}
|
|
return true;
|
|
}
|
|
if ((this.HDBJEAKJGJM >= 11 && this.HDBJEAKJGJM < -149) || this.HDBJEAKJGJM == -85 || this.HDBJEAKJGJM == -199 || this.LEEPNPCACCO.NBKIKLIPEJP == JEODNGJPODD.Get)
|
|
{
|
|
return false;
|
|
}
|
|
if (this.JLCJOHDKJCB(". Current number of cells is ", "Searching..."))
|
|
{
|
|
this.AOKODGKEPLG(this.BOFEJIAEBLP);
|
|
}
|
|
else
|
|
{
|
|
List<string> list = this.KFJHEMLJCKD("OK");
|
|
List<string> list2 = this.KFJHEMLJCKD("context");
|
|
if (list != null && list2 == null)
|
|
{
|
|
this.FJLAPLEMPME(this.BOFEJIAEBLP, long.Parse(list[1]));
|
|
}
|
|
else if (list2 != null)
|
|
{
|
|
if (list != null)
|
|
{
|
|
this.GIJMEMPIOHG(this.BOFEJIAEBLP, long.Parse(list[0]));
|
|
}
|
|
else
|
|
{
|
|
EHCJHLNJBBC ehcjhlnjbbc = this.CGNJMNGOJNH();
|
|
this.FJLAPLEMPME(this.BOFEJIAEBLP, (long)(ehcjhlnjbbc.HNNGBCOCDMB() - ehcjhlnjbbc.PHLAPACPKMH() + 0));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.ODOILELFJKN(this.BOFEJIAEBLP);
|
|
}
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("false");
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x060063B4 RID: 25524 RVA: 0x00209850 File Offset: 0x00207A50
|
|
public EHCJHLNJBBC LBFIPEJDCDJ()
|
|
{
|
|
List<string> list = this.KFJHEMLJCKD("FIRST TEAM TO ");
|
|
if (list == null)
|
|
{
|
|
return null;
|
|
}
|
|
string[] array = list[1].Split(new char[] { ' ' }, StringSplitOptions.None);
|
|
if (array[0] == "DeflateStream")
|
|
{
|
|
return new EHCJHLNJBBC(int.Parse(array[4]));
|
|
}
|
|
return new EHCJHLNJBBC(int.Parse(array[0]), int.Parse(array[2]), (!(array[3] != "ObscuredBool:")) ? (-1) : int.Parse(array[8]));
|
|
}
|
|
|
|
// Token: 0x060063B5 RID: 25525 RVA: 0x002098E8 File Offset: 0x00207AE8
|
|
protected void MCPOPADAEJH(int NOBAPCOKFIL)
|
|
{
|
|
this.<ECDEHJBBGPP>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063B6 RID: 25526 RVA: 0x002098F4 File Offset: 0x00207AF4
|
|
internal void PHFHMIFHHDF(Stream JAGHIAOIDOC, long HKFNNEIKNDK)
|
|
{
|
|
this.MMJEGFLIGPB();
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = HKFNNEIKNDK;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("ReadRaw - contentLength: {0:N0}", HKFNNEIKNDK));
|
|
}
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.PALHDHCHBEM("content-encoding") : null);
|
|
bool flag = !string.IsNullOrEmpty(text) && text == "gzip";
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH && HKFNNEIKNDK > 2147483646L)
|
|
{
|
|
throw new OverflowException("You have to use STREAMING to download files bigger than 2GB!");
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream((!this.LEEPNPCACCO.NNNKEGPHHKH) ? ((int)HKFNNEIKNDK) : 0))
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.BOCHKFMBOGO, 4096)];
|
|
while (HKFNNEIKNDK > 0L)
|
|
{
|
|
int num = 0;
|
|
do
|
|
{
|
|
int num2 = (int)Math.Min(2147483646U, (uint)HKFNNEIKNDK);
|
|
int num3 = JAGHIAOIDOC.Read(array, num, Math.Min(num2, array.Length - num));
|
|
if (num3 <= 0)
|
|
{
|
|
goto Block_10;
|
|
}
|
|
num += num3;
|
|
HKFNNEIKNDK -= (long)num3;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num3;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && HKFNNEIKNDK > 0L);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.CGKONKNJDEK();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num);
|
|
this.JEBDDGKMCEH(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.JEBDDGKMCEH(array, 0, num);
|
|
}
|
|
continue;
|
|
}
|
|
memoryStream.Write(array, 0, num);
|
|
continue;
|
|
Block_10:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.MLBMOHDMMHO();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.LCHAEFBPFIH = this.KFDINHPGKDN(memoryStream);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063B7 RID: 25527 RVA: 0x00209B40 File Offset: 0x00207D40
|
|
public List<string> GEEDJGMDBKD(string EKKMPHMGCLB)
|
|
{
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
return null;
|
|
}
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
List<string> list;
|
|
if (!this.ACBBFMHFLKI().TryGetValue(EKKMPHMGCLB, out list) || list.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x060063B8 RID: 25528 RVA: 0x00209B84 File Offset: 0x00207D84
|
|
protected bool EDNKADHCHIF(int NHCDLEHEMIM)
|
|
{
|
|
if (NHCDLEHEMIM != -1)
|
|
{
|
|
this.MAMDOEOLMPJ = true;
|
|
this.PHFHMIFHHDF(this.BOFEJIAEBLP, (long)NHCDLEHEMIM);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("ReadPayload Finished!");
|
|
}
|
|
return true;
|
|
}
|
|
if ((this.HDBJEAKJGJM >= 100 && this.HDBJEAKJGJM < 200) || this.HDBJEAKJGJM == 204 || this.HDBJEAKJGJM == 304 || this.LEEPNPCACCO.NBKIKLIPEJP == JEODNGJPODD.Head)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.PBNLJLNJECI("transfer-encoding", "chunked"))
|
|
{
|
|
this.ECCDDJMJFCL(this.BOFEJIAEBLP);
|
|
}
|
|
else
|
|
{
|
|
List<string> list = this.CMLBABCILHF("content-length");
|
|
List<string> list2 = this.CMLBABCILHF("content-range");
|
|
if (list != null && list2 == null)
|
|
{
|
|
this.PHFHMIFHHDF(this.BOFEJIAEBLP, long.Parse(list[0]));
|
|
}
|
|
else if (list2 != null)
|
|
{
|
|
if (list != null)
|
|
{
|
|
this.PHFHMIFHHDF(this.BOFEJIAEBLP, long.Parse(list[0]));
|
|
}
|
|
else
|
|
{
|
|
EHCJHLNJBBC ehcjhlnjbbc = this.CGNJMNGOJNH();
|
|
this.PHFHMIFHHDF(this.BOFEJIAEBLP, (long)(ehcjhlnjbbc.CHFOMOLCLAP - ehcjhlnjbbc.MBOPDHOACPG + 1));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.DIDJILOGDBP(this.BOFEJIAEBLP);
|
|
}
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("ReadPayload Finished!");
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x060063B9 RID: 25529 RVA: 0x00209CF8 File Offset: 0x00207EF8
|
|
public Texture2D BGFOLNDDNBC()
|
|
{
|
|
if (this.COGKMHGAJIP() == null)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.JBGLHECEOPE != null)
|
|
{
|
|
return this.JBGLHECEOPE;
|
|
}
|
|
this.JBGLHECEOPE = new Texture2D(0, 1, TextureFormat.Alpha8, false);
|
|
this.JBGLHECEOPE.LoadImage(this.COGKMHGAJIP());
|
|
return this.JBGLHECEOPE;
|
|
}
|
|
|
|
// Token: 0x17000263 RID: 611
|
|
// (get) Token: 0x060063C2 RID: 25538 RVA: 0x0020A1C8 File Offset: 0x002083C8
|
|
// (set) Token: 0x060063BA RID: 25530 RVA: 0x00209D54 File Offset: 0x00207F54
|
|
public string IMGPDLHMJEE { get; protected set; }
|
|
|
|
// Token: 0x060063BB RID: 25531 RVA: 0x00209D60 File Offset: 0x00207F60
|
|
protected void BCFHHNAMIMB()
|
|
{
|
|
while (this.LEEPNPCACCO.NNNKEGPHHKH && this.OOENLIMICIJ())
|
|
{
|
|
Thread.Sleep(-48);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063BC RID: 25532 RVA: 0x00209D8C File Offset: 0x00207F8C
|
|
protected void NBDGHIBJKJE(byte[] PIJMJBDFBJB, int IFJEHHMHOOM, int MFFGOHPHNFL)
|
|
{
|
|
if (this.INEJDLLPCHA == null)
|
|
{
|
|
this.INEJDLLPCHA = new byte[this.LEEPNPCACCO.MLNEAMGDFFA()];
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
if (this.HHCGDDGDCJB + MFFGOHPHNFL <= this.LEEPNPCACCO.MLNEAMGDFFA())
|
|
{
|
|
Array.Copy(PIJMJBDFBJB, IFJEHHMHOOM, this.INEJDLLPCHA, this.HHCGDDGDCJB, MFFGOHPHNFL);
|
|
this.HHCGDDGDCJB += MFFGOHPHNFL;
|
|
if (this.HHCGDDGDCJB == this.LEEPNPCACCO.BOCHKFMBOGO)
|
|
{
|
|
this.HJDDCDIAFCG(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
int num = this.LEEPNPCACCO.MLNEAMGDFFA() - this.HHCGDDGDCJB;
|
|
this.DKLKBEEPEBK(PIJMJBDFBJB, IFJEHHMHOOM, num);
|
|
this.NBDGHIBJKJE(PIJMJBDFBJB, IFJEHHMHOOM + num, MFFGOHPHNFL - num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063BD RID: 25533 RVA: 0x00209E5C File Offset: 0x0020805C
|
|
protected void JADECFMGFDG()
|
|
{
|
|
while (this.LEEPNPCACCO.NNNKEGPHHKH && this.OOENLIMICIJ())
|
|
{
|
|
Thread.Sleep(-22);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063BE RID: 25534 RVA: 0x00209E88 File Offset: 0x00208088
|
|
public byte[] COGKMHGAJIP()
|
|
{
|
|
return this.<IEJGKMNCNDN>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063BF RID: 25535 RVA: 0x00209E90 File Offset: 0x00208090
|
|
public bool CJHKLPEOHMO()
|
|
{
|
|
return this.<BFNOBODCONN>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063C0 RID: 25536 RVA: 0x00209E98 File Offset: 0x00208098
|
|
internal void EPGIHHLDDPN(byte[] NOBAPCOKFIL)
|
|
{
|
|
this.<IEJGKMNCNDN>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063C1 RID: 25537 RVA: 0x00209EA4 File Offset: 0x002080A4
|
|
internal virtual bool HKPIPKLHJPE(int NHCDLEHEMIM = -1, bool BNKHIFODJFC = true)
|
|
{
|
|
string text = string.Empty;
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Receive. forceReadRawContentLength: '{0:N0}', readPayloadData: '{1:N0}'", NHCDLEHEMIM, BNKHIFODJFC));
|
|
}
|
|
try
|
|
{
|
|
text = ENANHBCGCNA.HLAIHKKOAPN(this.BOFEJIAEBLP, 32);
|
|
}
|
|
catch
|
|
{
|
|
if (!this.LEEPNPCACCO.CMCFJHLFBHA)
|
|
{
|
|
EDGFEAGFEKH.ABKOCPMECFA.AFKOLCCJNEM("HTTPResponse", string.Format("{0} - Failed to read Status Line! Retry is enabled, returning with false.", this.LEEPNPCACCO.KCHFDKIOAGM.ToString()));
|
|
return false;
|
|
}
|
|
EDGFEAGFEKH.ABKOCPMECFA.AFKOLCCJNEM("HTTPResponse", string.Format("{0} - Failed to read Status Line! Retry is disabled, re-throwing exception.", this.LEEPNPCACCO.KCHFDKIOAGM.ToString()));
|
|
throw;
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Status Line: '{0}'", text));
|
|
}
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
string[] array = text.Split(new char[] { '/', '.' });
|
|
this.CAIIPKLILJL = int.Parse(array[1]);
|
|
this.GFJNABHFCEL = int.Parse(array[2]);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("HTTP Version: '{0}.{1}'", this.CAIIPKLILJL.ToString(), this.GFJNABHFCEL.ToString()));
|
|
}
|
|
string text2 = ENANHBCGCNA.PIJFAFOHPAN(this.BOFEJIAEBLP, 32, 10);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Status Code: '{0}'", text2));
|
|
}
|
|
int num;
|
|
if (this.LEEPNPCACCO.CMCFJHLFBHA)
|
|
{
|
|
num = int.Parse(text2);
|
|
}
|
|
else if (!int.TryParse(text2, out num))
|
|
{
|
|
return false;
|
|
}
|
|
this.HDBJEAKJGJM = num;
|
|
if (text2.Length > 0 && (byte)text2[text2.Length - 1] != 10 && (byte)text2[text2.Length - 1] != 13)
|
|
{
|
|
this.IMGPDLHMJEE = ENANHBCGCNA.HLAIHKKOAPN(this.BOFEJIAEBLP, 10);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Status Message: '{0}'", this.IMGPDLHMJEE));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
EDGFEAGFEKH.ABKOCPMECFA.AFKOLCCJNEM("HTTPResponse", string.Format("{0} - Skipping Status Message reading!", this.LEEPNPCACCO.KCHFDKIOAGM.ToString()));
|
|
this.IMGPDLHMJEE = string.Empty;
|
|
}
|
|
this.PGEMGBNBCGJ(this.BOFEJIAEBLP);
|
|
this.EOPPEFBOIKP = this.HDBJEAKJGJM == 101 && (this.PBNLJLNJECI("connection", "upgrade") || this.FGFIEAHBCCC("upgrade"));
|
|
if (this.EOPPEFBOIKP && EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("Request Upgraded!");
|
|
}
|
|
return !BNKHIFODJFC || this.EDNKADHCHIF(NHCDLEHEMIM);
|
|
}
|
|
if (!this.LEEPNPCACCO.CMCFJHLFBHA)
|
|
{
|
|
return false;
|
|
}
|
|
throw new Exception("Remote server closed the connection before sending response header!");
|
|
}
|
|
|
|
// Token: 0x1700026C RID: 620
|
|
// (get) Token: 0x0600640C RID: 25612 RVA: 0x0020B920 File Offset: 0x00209B20
|
|
// (set) Token: 0x060063C3 RID: 25539 RVA: 0x0020A1D0 File Offset: 0x002083D0
|
|
public List<OKCNPGKEHJG> GKLLFLMKCNJ { get; internal set; }
|
|
|
|
// Token: 0x17000269 RID: 617
|
|
// (get) Token: 0x060063DE RID: 25566 RVA: 0x0020A7B8 File Offset: 0x002089B8
|
|
// (set) Token: 0x060063C4 RID: 25540 RVA: 0x0020A1DC File Offset: 0x002083DC
|
|
public Dictionary<string, List<string>> LIAJFBPFAHK { get; protected set; }
|
|
|
|
// Token: 0x060063C5 RID: 25541 RVA: 0x0020A1E8 File Offset: 0x002083E8
|
|
internal void KGEAGBKFHAP()
|
|
{
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("api/rooms/");
|
|
}
|
|
this.OPMNMANKFMG(true);
|
|
this.Dispose();
|
|
}
|
|
|
|
// Token: 0x060063C6 RID: 25542 RVA: 0x0020A214 File Offset: 0x00208414
|
|
public List<string> CMLBABCILHF(string EKKMPHMGCLB)
|
|
{
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
return null;
|
|
}
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
List<string> list;
|
|
if (!this.LIAJFBPFAHK.TryGetValue(EKKMPHMGCLB, out list) || list.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x060063C7 RID: 25543 RVA: 0x0020A258 File Offset: 0x00208458
|
|
protected bool CGCBHHNNKEB(int NHCDLEHEMIM)
|
|
{
|
|
if (NHCDLEHEMIM != -1)
|
|
{
|
|
this.NMENMIJDNPH(false);
|
|
this.FJLAPLEMPME(this.BOFEJIAEBLP, (long)NHCDLEHEMIM);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN("hidden");
|
|
}
|
|
return true;
|
|
}
|
|
if ((this.HDBJEAKJGJM >= -8 && this.HDBJEAKJGJM < -135) || this.HDBJEAKJGJM == -93 || this.HDBJEAKJGJM == 166 || this.LEEPNPCACCO.NBKIKLIPEJP == JEODNGJPODD.Get)
|
|
{
|
|
return true;
|
|
}
|
|
if (this.JLCJOHDKJCB("{0}v1/heal", "Missing Encounter Spawn Points"))
|
|
{
|
|
this.IGBMHKNPBHD(this.BOFEJIAEBLP);
|
|
}
|
|
else
|
|
{
|
|
List<string> list = this.KFJHEMLJCKD("HoverEnd ");
|
|
List<string> list2 = this.KFJHEMLJCKD(" iterations for read and write");
|
|
if (list != null && list2 == null)
|
|
{
|
|
this.PHFHMIFHHDF(this.BOFEJIAEBLP, long.Parse(list[0]));
|
|
}
|
|
else if (list2 != null)
|
|
{
|
|
if (list != null)
|
|
{
|
|
this.FJLAPLEMPME(this.BOFEJIAEBLP, long.Parse(list[0]));
|
|
}
|
|
else
|
|
{
|
|
EHCJHLNJBBC ehcjhlnjbbc = this.LADIIOJPFCK();
|
|
this.NKEEEPBNPFP(this.BOFEJIAEBLP, (long)(ehcjhlnjbbc.JCLNIHAPIEN() - ehcjhlnjbbc.AEMBGFBAFAO() + 0));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.FPNLIEJKMKG(this.BOFEJIAEBLP);
|
|
}
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("F0");
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x17000261 RID: 609
|
|
// (get) Token: 0x060063C8 RID: 25544 RVA: 0x0020A3CC File Offset: 0x002085CC
|
|
// (set) Token: 0x06006400 RID: 25600 RVA: 0x0020B240 File Offset: 0x00209440
|
|
public int HDBJEAKJGJM { get; protected set; }
|
|
|
|
// Token: 0x060063C9 RID: 25545 RVA: 0x0020A3D4 File Offset: 0x002085D4
|
|
protected void EOILJNHNPKA(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, (byte)(-18), 72).Trim();
|
|
while (text != string.Empty)
|
|
{
|
|
string text2 = ENANHBCGCNA.OKFHLNPHEFO(JAGHIAOIDOC, (byte)(-88));
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("data error", text, text2));
|
|
}
|
|
this.IEPNKAIFHOI(text, text2);
|
|
text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, (byte)(-76), 24);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063CA RID: 25546 RVA: 0x0020A444 File Offset: 0x00208644
|
|
public bool HDNAFHJALJC()
|
|
{
|
|
return this.<EANCBIDNHEO>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063CB RID: 25547 RVA: 0x0020A44C File Offset: 0x0020864C
|
|
protected void MMJEGFLIGPB()
|
|
{
|
|
if (!this.LEEPNPCACCO.LBFICACMFMG && this.LEEPNPCACCO.NNNKEGPHHKH && !this.MAMDOEOLMPJ && FONHANKGNEA.HADLGILJOHE(this.LEEPNPCACCO.KCHFDKIOAGM, this.LEEPNPCACCO.NBKIKLIPEJP, this))
|
|
{
|
|
this.LHGOCEBFGCJ = FONHANKGNEA.LCKBCBABANI(this.LEEPNPCACCO.KCHFDKIOAGM, this);
|
|
}
|
|
this.IGHDIKOOHBA = 0;
|
|
}
|
|
|
|
// Token: 0x060063CC RID: 25548 RVA: 0x0020A4C4 File Offset: 0x002086C4
|
|
internal void HOJPNOGJNKG(bool NOBAPCOKFIL)
|
|
{
|
|
this.<EANCBIDNHEO>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063CD RID: 25549 RVA: 0x0020A4D0 File Offset: 0x002086D0
|
|
protected void BBCGLBBFMAB(int NOBAPCOKFIL)
|
|
{
|
|
this.<PPFJJJLKIMJ>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063CE RID: 25550 RVA: 0x0020A4DC File Offset: 0x002086DC
|
|
protected void HJDDCDIAFCG(byte[] PIJMJBDFBJB)
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
lock (nikpaceepnp)
|
|
{
|
|
if (!this.ALBDHHGDPNJ)
|
|
{
|
|
if (this.MHLGNMEBIGG == null)
|
|
{
|
|
this.MHLGNMEBIGG = new List<byte[]>();
|
|
}
|
|
this.MHLGNMEBIGG.Add(PIJMJBDFBJB);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("\" contains inappropriate words.", PIJMJBDFBJB.Length, this.MHLGNMEBIGG.Count));
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Write(PIJMJBDFBJB, 0, PIJMJBDFBJB.Length);
|
|
this.IGHDIKOOHBA += PIJMJBDFBJB.Length;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063CF RID: 25551 RVA: 0x0020A5A4 File Offset: 0x002087A4
|
|
internal void OMMJLDGCINA(bool NOBAPCOKFIL)
|
|
{
|
|
this.<KAJOJFHBDDF>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063D0 RID: 25552 RVA: 0x0020A5B0 File Offset: 0x002087B0
|
|
private void FODPECMLAJN(string ECFMJBEFGGB)
|
|
{
|
|
EDGFEAGFEKH.ABKOCPMECFA.JHACBCCHNMJ("endXform", "LastVisitedAt" + this.LEEPNPCACCO.KCHFDKIOAGM.ToString() + "Room Saved!" + ECFMJBEFGGB);
|
|
}
|
|
|
|
// Token: 0x060063D1 RID: 25553 RVA: 0x0020A5E4 File Offset: 0x002087E4
|
|
public string HKMOIKIMAGL(string EKKMPHMGCLB)
|
|
{
|
|
if (this.ACBBFMHFLKI() == null)
|
|
{
|
|
return null;
|
|
}
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
List<string> list;
|
|
if (!this.LIAJFBPFAHK.TryGetValue(EKKMPHMGCLB, out list) || list.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return list[1];
|
|
}
|
|
|
|
// Token: 0x060063D2 RID: 25554 RVA: 0x0020A630 File Offset: 0x00208830
|
|
internal ENANHBCGCNA(KGBBPEDECCO OCJJLJHMMGH, Stream JAGHIAOIDOC, bool KOFNCKAJJPM, bool KBBCEFOMGNM)
|
|
{
|
|
this.LEEPNPCACCO = OCJJLJHMMGH;
|
|
this.BOFEJIAEBLP = JAGHIAOIDOC;
|
|
this.AGOILAFGPIP = KOFNCKAJJPM;
|
|
this.MAMDOEOLMPJ = KBBCEFOMGNM;
|
|
this.ALBDHHGDPNJ = OCJJLJHMMGH.MOCOMEHOGJH;
|
|
this.FONELNFHEGH = false;
|
|
}
|
|
|
|
// Token: 0x1700026A RID: 618
|
|
// (get) Token: 0x060063D4 RID: 25556 RVA: 0x0020A68C File Offset: 0x0020888C
|
|
// (set) Token: 0x060063D3 RID: 25555 RVA: 0x0020A680 File Offset: 0x00208880
|
|
public byte[] LCHAEFBPFIH { get; internal set; }
|
|
|
|
// Token: 0x060063D5 RID: 25557 RVA: 0x0020A694 File Offset: 0x00208894
|
|
protected void OBKGPJMIIHG(int NOBAPCOKFIL)
|
|
{
|
|
this.<IBHHAGECIDB>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063D7 RID: 25559 RVA: 0x0020A6A8 File Offset: 0x002088A8
|
|
protected void FMLIMNGEHEO(int NOBAPCOKFIL)
|
|
{
|
|
this.<IBHHAGECIDB>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063D8 RID: 25560 RVA: 0x0020A6B4 File Offset: 0x002088B4
|
|
public bool FGFIEAHBCCC(string HNOAFNHNNMN)
|
|
{
|
|
return this.CMLBABCILHF(HNOAFNHNNMN) != null;
|
|
}
|
|
|
|
// Token: 0x060063D9 RID: 25561 RVA: 0x0020A6D4 File Offset: 0x002088D4
|
|
public bool LNOOOHOPNFM()
|
|
{
|
|
return this.<JIDBNCALCFK>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063DA RID: 25562 RVA: 0x0020A6DC File Offset: 0x002088DC
|
|
protected int OKCBIMHBGAI(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 0);
|
|
string text2 = text;
|
|
char[] array = new char[0];
|
|
array[1] = '\u0003';
|
|
string[] array2 = text2.Split(array);
|
|
string text3 = array2[1];
|
|
int num;
|
|
if (int.TryParse(text3, ~(NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingSign | NumberStyles.AllowParentheses | NumberStyles.AllowDecimalPoint), null, out num))
|
|
{
|
|
return num;
|
|
}
|
|
throw new Exception(string.Format(" failed. Value: ", text3));
|
|
}
|
|
|
|
// Token: 0x060063DB RID: 25563 RVA: 0x0020A730 File Offset: 0x00208930
|
|
public bool OFFLDONPPAO(string HNOAFNHNNMN)
|
|
{
|
|
return this.CMLBABCILHF(HNOAFNHNNMN) != null;
|
|
}
|
|
|
|
// Token: 0x060063DC RID: 25564 RVA: 0x0020A750 File Offset: 0x00208950
|
|
protected void MCAJFOFHGCL(string EKKMPHMGCLB, string NOBAPCOKFIL)
|
|
{
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
this.LIAJFBPFAHK = new Dictionary<string, List<string>>();
|
|
}
|
|
List<string> list;
|
|
if (!this.LIAJFBPFAHK.TryGetValue(EKKMPHMGCLB, out list))
|
|
{
|
|
this.LIAJFBPFAHK.Add(EKKMPHMGCLB, list = new List<string>(1));
|
|
}
|
|
list.Add(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x060063DD RID: 25565 RVA: 0x0020A7AC File Offset: 0x002089AC
|
|
internal void NMENMIJDNPH(bool NOBAPCOKFIL)
|
|
{
|
|
this.<KAJOJFHBDDF>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x17000264 RID: 612
|
|
// (get) Token: 0x060063DF RID: 25567 RVA: 0x0020A7C0 File Offset: 0x002089C0
|
|
// (set) Token: 0x06006403 RID: 25603 RVA: 0x0020B538 File Offset: 0x00209738
|
|
public bool AGOILAFGPIP { get; protected set; }
|
|
|
|
// Token: 0x060063E0 RID: 25568 RVA: 0x0020A7C8 File Offset: 0x002089C8
|
|
private void IEDMLOPODKB(string ECFMJBEFGGB)
|
|
{
|
|
EDGFEAGFEKH.ABKOCPMECFA.JHACBCCHNMJ("HTTPResponse", "'" + this.LEEPNPCACCO.KCHFDKIOAGM.ToString() + "' - " + ECFMJBEFGGB);
|
|
}
|
|
|
|
// Token: 0x060063E1 RID: 25569 RVA: 0x0020A7FC File Offset: 0x002089FC
|
|
public string BELLDEJGIBI()
|
|
{
|
|
if (this.AFDANBBNKHL() == null)
|
|
{
|
|
return string.Empty;
|
|
}
|
|
if (!string.IsNullOrEmpty(this.MKKHFALAHNN))
|
|
{
|
|
return this.MKKHFALAHNN;
|
|
}
|
|
return this.MKKHFALAHNN = Encoding.UTF8.GetString(this.AFDANBBNKHL(), 1, this.LCHAEFBPFIH.Length);
|
|
}
|
|
|
|
// Token: 0x060063E2 RID: 25570 RVA: 0x0020A854 File Offset: 0x00208A54
|
|
internal void FMLBCCKBPDD(IJMJKONHMNJ NOBAPCOKFIL)
|
|
{
|
|
this.<AJJJGCHNGFC>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063E3 RID: 25571 RVA: 0x0020A860 File Offset: 0x00208A60
|
|
public List<string> KFJHEMLJCKD(string EKKMPHMGCLB)
|
|
{
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
return null;
|
|
}
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
List<string> list;
|
|
if (!this.ACBBFMHFLKI().TryGetValue(EKKMPHMGCLB, out list) || list.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x060063E4 RID: 25572 RVA: 0x0020A8A4 File Offset: 0x00208AA4
|
|
private byte[] LNGEBAHLEEI(byte[] AOAILGGFDHJ, int COHGEHOALPI, int CEFMEFIIMIC)
|
|
{
|
|
if (this.EDPMFEGAJAI == null)
|
|
{
|
|
this.EDPMFEGAJAI = new MemoryStream(CEFMEFIIMIC);
|
|
}
|
|
this.EDPMFEGAJAI.Write(AOAILGGFDHJ, COHGEHOALPI, CEFMEFIIMIC);
|
|
this.EDPMFEGAJAI.Position = 0L;
|
|
if (this.IOHIAEOPFAG == null)
|
|
{
|
|
this.IOHIAEOPFAG = new MPNDIHMKPOC(this.EDPMFEGAJAI, JDICOHEACCI.Decompress, LIGALFADMHC.Default, true);
|
|
this.IOHIAEOPFAG.LBPBHHJGNPG = BLDHMCOMMIC.Sync;
|
|
}
|
|
if (this.FEJAEDONHOA == null)
|
|
{
|
|
this.FEJAEDONHOA = new MemoryStream();
|
|
}
|
|
this.FEJAEDONHOA.SetLength(0L);
|
|
if (this.JANGHNEBMCC == null)
|
|
{
|
|
this.JANGHNEBMCC = new byte[1024];
|
|
}
|
|
int num;
|
|
while ((num = this.IOHIAEOPFAG.Read(this.JANGHNEBMCC, 0, this.JANGHNEBMCC.Length)) != 0)
|
|
{
|
|
this.FEJAEDONHOA.Write(this.JANGHNEBMCC, 0, num);
|
|
}
|
|
this.IOHIAEOPFAG.SetLength(0L);
|
|
return this.FEJAEDONHOA.ToArray();
|
|
}
|
|
|
|
// Token: 0x1700025F RID: 607
|
|
// (get) Token: 0x060063E5 RID: 25573 RVA: 0x0020A9A0 File Offset: 0x00208BA0
|
|
// (set) Token: 0x06006410 RID: 25616 RVA: 0x0020BB54 File Offset: 0x00209D54
|
|
public int CAIIPKLILJL { get; protected set; }
|
|
|
|
// Token: 0x060063E6 RID: 25574 RVA: 0x0020A9A8 File Offset: 0x00208BA8
|
|
protected void BJBBHLFDGEO()
|
|
{
|
|
if (this.INEJDLLPCHA != null)
|
|
{
|
|
Array.Resize<byte>(ref this.INEJDLLPCHA, this.HHCGDDGDCJB);
|
|
this.EECBCHBCJKN(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Dispose();
|
|
this.LHGOCEBFGCJ = null;
|
|
FONHANKGNEA.IFELEMAICAJ(this.LEEPNPCACCO.KCHFDKIOAGM, this.IGHDIKOOHBA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063E7 RID: 25575 RVA: 0x0020AA20 File Offset: 0x00208C20
|
|
public bool JLCJOHDKJCB(string HNOAFNHNNMN, string NOBAPCOKFIL)
|
|
{
|
|
List<string> list = this.GEEDJGMDBKD(HNOAFNHNNMN);
|
|
if (list == null)
|
|
{
|
|
return false;
|
|
}
|
|
for (int i = 1; i < list.Count; i += 0)
|
|
{
|
|
if (string.Compare(list[i], NOBAPCOKFIL, (StringComparison)7) == 0)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Token: 0x060063E8 RID: 25576 RVA: 0x0020AA6C File Offset: 0x00208C6C
|
|
public bool OIBLPGJKNKF()
|
|
{
|
|
return this.<JCGJAPOBLMP>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063E9 RID: 25577 RVA: 0x0020AA74 File Offset: 0x00208C74
|
|
public bool KCPDDEHGCFD()
|
|
{
|
|
return this.<BFNOBODCONN>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x17000266 RID: 614
|
|
// (get) Token: 0x060063EA RID: 25578 RVA: 0x0020AA7C File Offset: 0x00208C7C
|
|
// (set) Token: 0x060063FE RID: 25598 RVA: 0x0020B228 File Offset: 0x00209428
|
|
public bool MAMDOEOLMPJ { get; internal set; }
|
|
|
|
// Token: 0x060063EB RID: 25579 RVA: 0x0020AA84 File Offset: 0x00208C84
|
|
protected void MLBMOHDMMHO()
|
|
{
|
|
if (this.INEJDLLPCHA != null)
|
|
{
|
|
Array.Resize<byte>(ref this.INEJDLLPCHA, this.HHCGDDGDCJB);
|
|
this.JLIBEDJAGAB(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Dispose();
|
|
this.LHGOCEBFGCJ = null;
|
|
FONHANKGNEA.IFELEMAICAJ(this.LEEPNPCACCO.KCHFDKIOAGM, this.IGHDIKOOHBA);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063EC RID: 25580 RVA: 0x0020AAFC File Offset: 0x00208CFC
|
|
protected void OFKLIBMNENB()
|
|
{
|
|
if (!this.LEEPNPCACCO.LBFICACMFMG && this.LEEPNPCACCO.NNNKEGPHHKH && !this.MAMDOEOLMPJ && FONHANKGNEA.HADLGILJOHE(this.LEEPNPCACCO.KCHFDKIOAGM, this.LEEPNPCACCO.NBKIKLIPEJP, this))
|
|
{
|
|
this.LHGOCEBFGCJ = FONHANKGNEA.LCKBCBABANI(this.LEEPNPCACCO.KCHFDKIOAGM, this);
|
|
}
|
|
this.IGHDIKOOHBA = 0;
|
|
}
|
|
|
|
// Token: 0x060063ED RID: 25581 RVA: 0x0020AB74 File Offset: 0x00208D74
|
|
public byte[] AFDANBBNKHL()
|
|
{
|
|
return this.<IEJGKMNCNDN>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063EE RID: 25582 RVA: 0x0020AB7C File Offset: 0x00208D7C
|
|
public Texture2D DCOJOBJGOIO()
|
|
{
|
|
if (this.LCHAEFBPFIH == null)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.JBGLHECEOPE != null)
|
|
{
|
|
return this.JBGLHECEOPE;
|
|
}
|
|
this.JBGLHECEOPE = new Texture2D(0, 0, (TextureFormat)0, false);
|
|
this.JBGLHECEOPE.LoadImage(this.COGKMHGAJIP());
|
|
return this.JBGLHECEOPE;
|
|
}
|
|
|
|
// Token: 0x060063EF RID: 25583 RVA: 0x0020ABD8 File Offset: 0x00208DD8
|
|
internal void CEIMIAFNDAH(IJMJKONHMNJ NOBAPCOKFIL)
|
|
{
|
|
this.<AJJJGCHNGFC>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063F0 RID: 25584 RVA: 0x0020ABE4 File Offset: 0x00208DE4
|
|
internal void JDNMDOIHHGF(byte[] NOBAPCOKFIL)
|
|
{
|
|
this.<IEJGKMNCNDN>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063F1 RID: 25585 RVA: 0x0020ABF0 File Offset: 0x00208DF0
|
|
public string PALHDHCHBEM(string EKKMPHMGCLB)
|
|
{
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
return null;
|
|
}
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
List<string> list;
|
|
if (!this.LIAJFBPFAHK.TryGetValue(EKKMPHMGCLB, out list) || list.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return list[0];
|
|
}
|
|
|
|
// Token: 0x060063F2 RID: 25586 RVA: 0x0020AC3C File Offset: 0x00208E3C
|
|
public static string PIJFAFOHPAN(Stream JAGHIAOIDOC, byte IGENAEEOENC, byte PFHIJLEHKJK)
|
|
{
|
|
string text;
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num = JAGHIAOIDOC.ReadByte();
|
|
while (num != (int)IGENAEEOENC && num != (int)PFHIJLEHKJK && num != -1)
|
|
{
|
|
memoryStream.WriteByte((byte)num);
|
|
num = JAGHIAOIDOC.ReadByte();
|
|
}
|
|
text = memoryStream.ToArray().PFMBHNENAEF();
|
|
}
|
|
return text;
|
|
}
|
|
|
|
// Token: 0x17000262 RID: 610
|
|
// (get) Token: 0x060063F3 RID: 25587 RVA: 0x0020ACB0 File Offset: 0x00208EB0
|
|
public bool LOBCJAAMBMA
|
|
{
|
|
get
|
|
{
|
|
return (this.HDBJEAKJGJM >= 200 && this.HDBJEAKJGJM < 300) || this.HDBJEAKJGJM == 304;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063F4 RID: 25588 RVA: 0x0020ACE4 File Offset: 0x00208EE4
|
|
internal void BPHMJGOPNNL(byte[] NOBAPCOKFIL)
|
|
{
|
|
this.<IEJGKMNCNDN>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060063F5 RID: 25589 RVA: 0x0020ACF0 File Offset: 0x00208EF0
|
|
protected int NEKHOPJIJCL(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, (byte)(-79));
|
|
string text2 = text;
|
|
char[] array = new char[0];
|
|
array[0] = (char)(-11);
|
|
string[] array2 = text2.Split(array);
|
|
string text3 = array2[0];
|
|
int num;
|
|
if (int.TryParse(text3, ~(NumberStyles.AllowLeadingWhite | NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent), null, out num))
|
|
{
|
|
return num;
|
|
}
|
|
throw new Exception(string.Format("Select a stream", text3));
|
|
}
|
|
|
|
// Token: 0x060063F6 RID: 25590 RVA: 0x0020AD44 File Offset: 0x00208F44
|
|
protected void FPNLIEJKMKG(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.HKMOIKIMAGL("method") : null);
|
|
bool flag = !string.IsNullOrEmpty(text) && text == "RpcImageUpdated";
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.MLNEAMGDFFA(), 126)];
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("[ACTk] ", array.Length));
|
|
}
|
|
int num = 1;
|
|
int num2 = 0;
|
|
do
|
|
{
|
|
num = 1;
|
|
do
|
|
{
|
|
num2 = 0;
|
|
NetworkStream networkStream = JAGHIAOIDOC as NetworkStream;
|
|
if (networkStream != null && this.LEEPNPCACCO.ANHPDBBDDOM)
|
|
{
|
|
int num3 = num;
|
|
while (num3 < array.Length && networkStream.DataAvailable)
|
|
{
|
|
int num4 = JAGHIAOIDOC.ReadByte();
|
|
if (num4 < 0)
|
|
{
|
|
break;
|
|
}
|
|
array[num3] = (byte)num4;
|
|
num2 += 0;
|
|
num3 += 0;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
num2 = JAGHIAOIDOC.Read(array, num, array.Length - num);
|
|
}
|
|
num += num2;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num2;
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = this.LEEPNPCACCO.MFGBLACGNBA;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && num2 > 0);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.BCFHHNAMIMB();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num);
|
|
this.HIDODJCJOLM(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.NBDGHIBJKJE(array, 0, num);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
memoryStream.Write(array, 0, num);
|
|
}
|
|
}
|
|
while (num2 > 0);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.ANMOCBDLPID();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.EPGIHHLDDPN(this.KGAGLJMMBOC(memoryStream));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063F7 RID: 25591 RVA: 0x0020AF7C File Offset: 0x0020917C
|
|
public List<byte[]> ECPHGNCOBOO()
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
List<byte[]> list;
|
|
lock (nikpaceepnp)
|
|
{
|
|
if (this.MHLGNMEBIGG == null || this.MHLGNMEBIGG.Count == 0)
|
|
{
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("enablematerial");
|
|
}
|
|
list = null;
|
|
}
|
|
else
|
|
{
|
|
List<byte[]> list2 = new List<byte[]>(this.MHLGNMEBIGG);
|
|
this.MHLGNMEBIGG.Clear();
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("ObscuredFloat vs float, ", list2.Count.ToString()));
|
|
}
|
|
list = list2;
|
|
}
|
|
}
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x060063F8 RID: 25592 RVA: 0x0020B03C File Offset: 0x0020923C
|
|
protected void DCPOLCHFNMO()
|
|
{
|
|
while (this.LEEPNPCACCO.NNNKEGPHHKH && this.OOENLIMICIJ())
|
|
{
|
|
Thread.Sleep(-112);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060063FA RID: 25594 RVA: 0x0020B074 File Offset: 0x00209274
|
|
protected byte[] KFDINHPGKDN(MemoryStream LLKGDOENKKH)
|
|
{
|
|
LLKGDOENKKH.Seek(0L, SeekOrigin.Begin);
|
|
List<string> list = ((!this.MAMDOEOLMPJ) ? this.CMLBABCILHF("content-encoding") : null);
|
|
if (list == null)
|
|
{
|
|
return LLKGDOENKKH.ToArray();
|
|
}
|
|
string text = list[0];
|
|
if (text != null)
|
|
{
|
|
Stream stream;
|
|
if (!(text == "gzip"))
|
|
{
|
|
if (!(text == "deflate"))
|
|
{
|
|
goto IL_83;
|
|
}
|
|
stream = new ONOAPGBMNOC(LLKGDOENKKH, JDICOHEACCI.Decompress);
|
|
}
|
|
else
|
|
{
|
|
stream = new MPNDIHMKPOC(LLKGDOENKKH, JDICOHEACCI.Decompress);
|
|
}
|
|
byte[] array2;
|
|
using (MemoryStream memoryStream = new MemoryStream((int)LLKGDOENKKH.Length))
|
|
{
|
|
byte[] array = new byte[1024];
|
|
int num;
|
|
while ((num = stream.Read(array, 0, array.Length)) > 0)
|
|
{
|
|
memoryStream.Write(array, 0, num);
|
|
}
|
|
array2 = memoryStream.ToArray();
|
|
}
|
|
return array2;
|
|
}
|
|
IL_83:
|
|
return LLKGDOENKKH.ToArray();
|
|
}
|
|
|
|
// Token: 0x060063FB RID: 25595 RVA: 0x0020B17C File Offset: 0x0020937C
|
|
public bool GGNPDEMNKIL()
|
|
{
|
|
return this.<EANCBIDNHEO>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060063FD RID: 25597 RVA: 0x0020B190 File Offset: 0x00209390
|
|
public EHCJHLNJBBC CGNJMNGOJNH()
|
|
{
|
|
List<string> list = this.CMLBABCILHF("content-range");
|
|
if (list == null)
|
|
{
|
|
return null;
|
|
}
|
|
string[] array = list[0].Split(new char[] { ' ', '-', '/' }, StringSplitOptions.RemoveEmptyEntries);
|
|
if (array[1] == "*")
|
|
{
|
|
return new EHCJHLNJBBC(int.Parse(array[2]));
|
|
}
|
|
return new EHCJHLNJBBC(int.Parse(array[1]), int.Parse(array[2]), (!(array[3] != "*")) ? (-1) : int.Parse(array[3]));
|
|
}
|
|
|
|
// Token: 0x1700026B RID: 619
|
|
// (get) Token: 0x06006427 RID: 25639 RVA: 0x0020C970 File Offset: 0x0020AB70
|
|
// (set) Token: 0x060063FF RID: 25599 RVA: 0x0020B234 File Offset: 0x00209434
|
|
public bool EOPPEFBOIKP { get; protected set; }
|
|
|
|
// Token: 0x06006401 RID: 25601 RVA: 0x0020B24C File Offset: 0x0020944C
|
|
internal void LBADLMMCDEI(byte[] NOBAPCOKFIL)
|
|
{
|
|
this.<IEJGKMNCNDN>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06006402 RID: 25602 RVA: 0x0020B258 File Offset: 0x00209458
|
|
protected void ECCDDJMJFCL(Stream JAGHIAOIDOC)
|
|
{
|
|
this.MMJEGFLIGPB();
|
|
string text = this.PALHDHCHBEM("Content-Length");
|
|
bool flag = !string.IsNullOrEmpty(text);
|
|
int num = 0;
|
|
if (flag)
|
|
{
|
|
flag = int.TryParse(text, out num);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("ReadChunked - hasContentLengthHeader: {0}, contentLengthHeader: {1} realLength: {2:N0}", flag.ToString(), text, num));
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num2 = this.BHNIOHPIKOB(JAGHIAOIDOC);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("chunkLength: {0:N0}", num2));
|
|
}
|
|
byte[] array = new byte[num2];
|
|
int num3 = 0;
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = (long)((!flag) ? num2 : num);
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
string text2 = ((!this.MAMDOEOLMPJ) ? this.PALHDHCHBEM("content-encoding") : null);
|
|
bool flag2 = !string.IsNullOrEmpty(text2) && text2 == "gzip";
|
|
while (num2 != 0)
|
|
{
|
|
if (array.Length < num2)
|
|
{
|
|
Array.Resize<byte>(ref array, num2);
|
|
}
|
|
int num4 = 0;
|
|
do
|
|
{
|
|
int num5 = JAGHIAOIDOC.Read(array, num4, num2 - num4);
|
|
if (num5 <= 0)
|
|
{
|
|
goto Block_11;
|
|
}
|
|
num4 += num5;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num5;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num4 < num2);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.CGKONKNJDEK();
|
|
if (flag2)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num4);
|
|
this.JEBDDGKMCEH(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.JEBDDGKMCEH(array, 0, num4);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
memoryStream.Write(array, 0, num4);
|
|
}
|
|
ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 10);
|
|
num3 += num4;
|
|
num2 = this.BHNIOHPIKOB(JAGHIAOIDOC);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("chunkLength: {0:N0}", num2));
|
|
}
|
|
if (!flag)
|
|
{
|
|
this.LEEPNPCACCO.DMAFDHKPGKK += (long)num2;
|
|
}
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
continue;
|
|
Block_11:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.MLBMOHDMMHO();
|
|
}
|
|
this.PGEMGBNBCGJ(JAGHIAOIDOC);
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.LCHAEFBPFIH = this.KFDINHPGKDN(memoryStream);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006404 RID: 25604 RVA: 0x0020B544 File Offset: 0x00209744
|
|
internal bool OOENLIMICIJ()
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
bool flag;
|
|
lock (nikpaceepnp)
|
|
{
|
|
flag = this.MHLGNMEBIGG != null && this.MHLGNMEBIGG.Count > 0;
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x06006405 RID: 25605 RVA: 0x0020B598 File Offset: 0x00209798
|
|
protected void EJCDFJKMDKO()
|
|
{
|
|
if (!this.LEEPNPCACCO.LBFICACMFMG && this.LEEPNPCACCO.NNNKEGPHHKH && !this.MAMDOEOLMPJ && FONHANKGNEA.HADLGILJOHE(this.LEEPNPCACCO.KCHFDKIOAGM, this.LEEPNPCACCO.NBKIKLIPEJP, this))
|
|
{
|
|
this.LHGOCEBFGCJ = FONHANKGNEA.LCKBCBABANI(this.LEEPNPCACCO.KCHFDKIOAGM, this);
|
|
}
|
|
this.IGHDIKOOHBA = 1;
|
|
}
|
|
|
|
// Token: 0x06006406 RID: 25606 RVA: 0x0020B610 File Offset: 0x00209810
|
|
protected void NELBEPGINCM(int NOBAPCOKFIL)
|
|
{
|
|
this.<PPFJJJLKIMJ>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06006407 RID: 25607 RVA: 0x0020B61C File Offset: 0x0020981C
|
|
internal void NKEEEPBNPFP(Stream JAGHIAOIDOC, long HKFNNEIKNDK)
|
|
{
|
|
this.EJCDFJKMDKO();
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = HKFNNEIKNDK;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("ShowTeleportHint", HKFNNEIKNDK));
|
|
}
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.HKMOIKIMAGL("[Steamworks.NET] Could not load [lib]steam_api.dll/so/dylib. It's likely not in the correct location. Refer to the README for more details.\n") : null);
|
|
bool flag = string.IsNullOrEmpty(text) || text == "Visible";
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH && HKFNNEIKNDK > -159L)
|
|
{
|
|
throw new OverflowException("checkout_option");
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream((!this.LEEPNPCACCO.NNNKEGPHHKH) ? ((int)HKFNNEIKNDK) : 1))
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.MLNEAMGDFFA(), -104)];
|
|
while (HKFNNEIKNDK > 0L)
|
|
{
|
|
int num = 1;
|
|
do
|
|
{
|
|
int num2 = (int)Math.Min(4294967131U, (uint)HKFNNEIKNDK);
|
|
int num3 = JAGHIAOIDOC.Read(array, num, Math.Min(num2, array.Length - num));
|
|
if (num3 <= 0)
|
|
{
|
|
goto Block_10;
|
|
}
|
|
num += num3;
|
|
HKFNNEIKNDK -= (long)num3;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num3;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && HKFNNEIKNDK > 0L);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.CGKONKNJDEK();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num);
|
|
this.JEBDDGKMCEH(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.JEBDDGKMCEH(array, 1, num);
|
|
}
|
|
continue;
|
|
}
|
|
memoryStream.Write(array, 1, num);
|
|
continue;
|
|
Block_10:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.BJBBHLFDGEO();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.LCHAEFBPFIH = this.KFDINHPGKDN(memoryStream);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006408 RID: 25608 RVA: 0x0020B868 File Offset: 0x00209A68
|
|
public Dictionary<string, List<string>> ACBBFMHFLKI()
|
|
{
|
|
return this.<ECHLDNFEGPC>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06006409 RID: 25609 RVA: 0x0020B870 File Offset: 0x00209A70
|
|
protected void IAOMJNCFMEL(int NOBAPCOKFIL)
|
|
{
|
|
this.<IBHHAGECIDB>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600640A RID: 25610 RVA: 0x0020B87C File Offset: 0x00209A7C
|
|
public EHCJHLNJBBC LADIIOJPFCK()
|
|
{
|
|
List<string> list = this.GEEDJGMDBKD("ShowTeleportHint");
|
|
if (list == null)
|
|
{
|
|
return null;
|
|
}
|
|
string text = list[1];
|
|
char[] array = new char[5];
|
|
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-5EF06A1239E95C60F8D2C1DD8AE8028FC3742401).FieldHandle);
|
|
string[] array2 = text.Split(array, StringSplitOptions.None);
|
|
if (array2[1] == "DebugUIManager")
|
|
{
|
|
return new EHCJHLNJBBC(int.Parse(array2[8]));
|
|
}
|
|
return new EHCJHLNJBBC(int.Parse(array2[0]), int.Parse(array2[2]), (!(array2[2] != "report_category")) ? (-1) : int.Parse(array2[5]));
|
|
}
|
|
|
|
// Token: 0x17000260 RID: 608
|
|
// (get) Token: 0x06006432 RID: 25650 RVA: 0x0020D30C File Offset: 0x0020B50C
|
|
// (set) Token: 0x0600640B RID: 25611 RVA: 0x0020B914 File Offset: 0x00209B14
|
|
public int GFJNABHFCEL { get; protected set; }
|
|
|
|
// Token: 0x0600640D RID: 25613 RVA: 0x0020B928 File Offset: 0x00209B28
|
|
protected int BHNIOHPIKOB(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 10);
|
|
string[] array = text.Split(new char[] { ';' });
|
|
string text2 = array[0];
|
|
int num;
|
|
if (int.TryParse(text2, NumberStyles.AllowHexSpecifier, null, out num))
|
|
{
|
|
return num;
|
|
}
|
|
throw new Exception(string.Format("Can't parse '{0}' as a hex number!", text2));
|
|
}
|
|
|
|
// Token: 0x0600640E RID: 25614 RVA: 0x0020B97C File Offset: 0x00209B7C
|
|
protected void JEBDDGKMCEH(byte[] PIJMJBDFBJB, int IFJEHHMHOOM, int MFFGOHPHNFL)
|
|
{
|
|
if (this.INEJDLLPCHA == null)
|
|
{
|
|
this.INEJDLLPCHA = new byte[this.LEEPNPCACCO.BOCHKFMBOGO];
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
if (this.HHCGDDGDCJB + MFFGOHPHNFL <= this.LEEPNPCACCO.BOCHKFMBOGO)
|
|
{
|
|
Array.Copy(PIJMJBDFBJB, IFJEHHMHOOM, this.INEJDLLPCHA, this.HHCGDDGDCJB, MFFGOHPHNFL);
|
|
this.HHCGDDGDCJB += MFFGOHPHNFL;
|
|
if (this.HHCGDDGDCJB == this.LEEPNPCACCO.BOCHKFMBOGO)
|
|
{
|
|
this.JLIBEDJAGAB(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
int num = this.LEEPNPCACCO.BOCHKFMBOGO - this.HHCGDDGDCJB;
|
|
this.JEBDDGKMCEH(PIJMJBDFBJB, IFJEHHMHOOM, num);
|
|
this.JEBDDGKMCEH(PIJMJBDFBJB, IFJEHHMHOOM + num, MFFGOHPHNFL - num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600640F RID: 25615 RVA: 0x0020BA4C File Offset: 0x00209C4C
|
|
protected byte[] KGAGLJMMBOC(MemoryStream LLKGDOENKKH)
|
|
{
|
|
LLKGDOENKKH.Seek(0L, SeekOrigin.Begin);
|
|
List<string> list = ((!this.MAMDOEOLMPJ) ? this.KFJHEMLJCKD("z") : null);
|
|
if (list == null)
|
|
{
|
|
return LLKGDOENKKH.ToArray();
|
|
}
|
|
string text = list[1];
|
|
if (text != null)
|
|
{
|
|
Stream stream;
|
|
if (!(text == "Tried to go somewhere without a valid birthday!"))
|
|
{
|
|
if (!(text == "Add random value"))
|
|
{
|
|
goto IL_83;
|
|
}
|
|
stream = new ONOAPGBMNOC(LLKGDOENKKH, JDICOHEACCI.Decompress);
|
|
}
|
|
else
|
|
{
|
|
stream = new MPNDIHMKPOC(LLKGDOENKKH, JDICOHEACCI.Decompress);
|
|
}
|
|
byte[] array2;
|
|
using (MemoryStream memoryStream = new MemoryStream((int)LLKGDOENKKH.Length))
|
|
{
|
|
byte[] array = new byte[-177];
|
|
int num;
|
|
while ((num = stream.Read(array, 1, array.Length)) > 1)
|
|
{
|
|
memoryStream.Write(array, 1, num);
|
|
}
|
|
array2 = memoryStream.ToArray();
|
|
}
|
|
return array2;
|
|
}
|
|
IL_83:
|
|
return LLKGDOENKKH.ToArray();
|
|
}
|
|
|
|
// Token: 0x06006411 RID: 25617 RVA: 0x0020BB60 File Offset: 0x00209D60
|
|
protected void HIDODJCJOLM(byte[] PIJMJBDFBJB, int IFJEHHMHOOM, int MFFGOHPHNFL)
|
|
{
|
|
if (this.INEJDLLPCHA == null)
|
|
{
|
|
this.INEJDLLPCHA = new byte[this.LEEPNPCACCO.BOCHKFMBOGO];
|
|
this.HHCGDDGDCJB = 1;
|
|
}
|
|
if (this.HHCGDDGDCJB + MFFGOHPHNFL <= this.LEEPNPCACCO.BOCHKFMBOGO)
|
|
{
|
|
Array.Copy(PIJMJBDFBJB, IFJEHHMHOOM, this.INEJDLLPCHA, this.HHCGDDGDCJB, MFFGOHPHNFL);
|
|
this.HHCGDDGDCJB += MFFGOHPHNFL;
|
|
if (this.HHCGDDGDCJB == this.LEEPNPCACCO.BOCHKFMBOGO)
|
|
{
|
|
this.EECBCHBCJKN(this.INEJDLLPCHA);
|
|
this.INEJDLLPCHA = null;
|
|
this.HHCGDDGDCJB = 0;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
int num = this.LEEPNPCACCO.BOCHKFMBOGO - this.HHCGDDGDCJB;
|
|
this.HIDODJCJOLM(PIJMJBDFBJB, IFJEHHMHOOM, num);
|
|
this.NBDGHIBJKJE(PIJMJBDFBJB, IFJEHHMHOOM + num, MFFGOHPHNFL - num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006412 RID: 25618 RVA: 0x0020BC30 File Offset: 0x00209E30
|
|
internal void HJCNIPIHHLI()
|
|
{
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("FinishStreaming");
|
|
}
|
|
this.JGGLHIEEFKE = true;
|
|
this.Dispose();
|
|
}
|
|
|
|
// Token: 0x06006413 RID: 25619 RVA: 0x0020BC5C File Offset: 0x00209E5C
|
|
protected void LFCININHMLC(byte[] PIJMJBDFBJB)
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
lock (nikpaceepnp)
|
|
{
|
|
if (!this.OIBLPGJKNKF())
|
|
{
|
|
if (this.MHLGNMEBIGG == null)
|
|
{
|
|
this.MHLGNMEBIGG = new List<byte[]>();
|
|
}
|
|
this.MHLGNMEBIGG.Add(PIJMJBDFBJB);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("iTween Error: AudioTo requires an AudioSource.", PIJMJBDFBJB.Length, this.MHLGNMEBIGG.Count));
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Write(PIJMJBDFBJB, 0, PIJMJBDFBJB.Length);
|
|
this.IGHDIKOOHBA += PIJMJBDFBJB.Length;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006414 RID: 25620 RVA: 0x0020BD24 File Offset: 0x00209F24
|
|
internal virtual bool MCIBHNCBAKB(int NHCDLEHEMIM = -1, bool BNKHIFODJFC = true)
|
|
{
|
|
string text = string.Empty;
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("Launching external application...", NHCDLEHEMIM, BNKHIFODJFC));
|
|
}
|
|
try
|
|
{
|
|
text = ENANHBCGCNA.OKFHLNPHEFO(this.BOFEJIAEBLP, (byte)(-105));
|
|
}
|
|
catch
|
|
{
|
|
if (!this.LEEPNPCACCO.CMCFJHLFBHA)
|
|
{
|
|
EDGFEAGFEKH.ABKOCPMECFA.AFKOLCCJNEM("reeling back in ", string.Format(". This room is no longer active.", this.LEEPNPCACCO.KCHFDKIOAGM.ToString()));
|
|
return true;
|
|
}
|
|
EDGFEAGFEKH.ABKOCPMECFA.AFKOLCCJNEM("websocket", string.Format("IntegrationTest Started", this.LEEPNPCACCO.KCHFDKIOAGM.ToString()));
|
|
throw;
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("{0}v1/uploadsavedsingle", text));
|
|
}
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
string text2 = text;
|
|
char[] array = new char[0];
|
|
array[1] = (char)(-67);
|
|
array[0] = '{';
|
|
string[] array2 = text2.Split(array);
|
|
this.CAIIPKLILJL = int.Parse(array2[0]);
|
|
this.IAOMJNCFMEL(int.Parse(array2[2]));
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("Closed", this.CAIIPKLILJL.ToString(), this.GFJNABHFCEL.ToString()));
|
|
}
|
|
string text3 = ENANHBCGCNA.PIJFAFOHPAN(this.BOFEJIAEBLP, (byte)(-73), 12);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Sunny", text3));
|
|
}
|
|
int num;
|
|
if (this.LEEPNPCACCO.CMCFJHLFBHA)
|
|
{
|
|
num = int.Parse(text3);
|
|
}
|
|
else if (!int.TryParse(text3, out num))
|
|
{
|
|
return true;
|
|
}
|
|
this.NELBEPGINCM(num);
|
|
if (text3.Length > 1 && (int)((byte)text3[text3.Length - 1]) != -70 && (int)((byte)text3[text3.Length - 0]) != -45)
|
|
{
|
|
this.IMGPDLHMJEE = ENANHBCGCNA.OKFHLNPHEFO(this.BOFEJIAEBLP, 11);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("FriendsPeriodic", this.FPJEDHLEOLP()));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
EDGFEAGFEKH.ABKOCPMECFA.AFKOLCCJNEM("...is now online!", string.Format("{0}v1/cheer", this.LEEPNPCACCO.KCHFDKIOAGM.ToString()));
|
|
this.AIKHPHBIPEG(string.Empty);
|
|
}
|
|
this.PGEMGBNBCGJ(this.BOFEJIAEBLP);
|
|
this.IJLELPJLNLN(this.HDBJEAKJGJM != -31 || this.MAMJGLNHNJP("Player", "Failed to initialize Oculus Platform") || this.FGFIEAHBCCC("SOCCER_TIMER"));
|
|
if (this.ANMOKCJAPDO() && EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB("Go to ");
|
|
}
|
|
return BNKHIFODJFC && this.EDNKADHCHIF(NHCDLEHEMIM);
|
|
}
|
|
if (!this.LEEPNPCACCO.CMCFJHLFBHA)
|
|
{
|
|
return true;
|
|
}
|
|
throw new Exception(". Client should be in a room. Current connectionStateDetailed: ");
|
|
}
|
|
|
|
// Token: 0x06006415 RID: 25621 RVA: 0x0020C048 File Offset: 0x0020A248
|
|
public string INBJBEOKHCN()
|
|
{
|
|
if (this.AFDANBBNKHL() == null)
|
|
{
|
|
return string.Empty;
|
|
}
|
|
if (!string.IsNullOrEmpty(this.MKKHFALAHNN))
|
|
{
|
|
return this.MKKHFALAHNN;
|
|
}
|
|
return this.MKKHFALAHNN = Encoding.UTF8.GetString(this.LCHAEFBPFIH, 0, this.COGKMHGAJIP().Length);
|
|
}
|
|
|
|
// Token: 0x06006416 RID: 25622 RVA: 0x0020C0A0 File Offset: 0x0020A2A0
|
|
protected void HAPJFFBHDME(string EKKMPHMGCLB, string NOBAPCOKFIL)
|
|
{
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
this.LIAJFBPFAHK = new Dictionary<string, List<string>>();
|
|
}
|
|
List<string> list;
|
|
if (!this.LIAJFBPFAHK.TryGetValue(EKKMPHMGCLB, out list))
|
|
{
|
|
this.ACBBFMHFLKI().Add(EKKMPHMGCLB, list = new List<string>(0));
|
|
}
|
|
list.Add(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x06006417 RID: 25623 RVA: 0x0020C0FC File Offset: 0x0020A2FC
|
|
protected void DIDJILOGDBP(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.PALHDHCHBEM("content-encoding") : null);
|
|
bool flag = !string.IsNullOrEmpty(text) && text == "gzip";
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.BOCHKFMBOGO, 4096)];
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("ReadUnknownSize - buffer size: {0:N0}", array.Length));
|
|
}
|
|
int num = 0;
|
|
int num2 = 0;
|
|
do
|
|
{
|
|
num = 0;
|
|
do
|
|
{
|
|
num2 = 0;
|
|
NetworkStream networkStream = JAGHIAOIDOC as NetworkStream;
|
|
if (networkStream != null && this.LEEPNPCACCO.ANHPDBBDDOM)
|
|
{
|
|
int num3 = num;
|
|
while (num3 < array.Length && networkStream.DataAvailable)
|
|
{
|
|
int num4 = JAGHIAOIDOC.ReadByte();
|
|
if (num4 < 0)
|
|
{
|
|
break;
|
|
}
|
|
array[num3] = (byte)num4;
|
|
num2++;
|
|
num3++;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
num2 = JAGHIAOIDOC.Read(array, num, array.Length - num);
|
|
}
|
|
num += num2;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num2;
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = this.LEEPNPCACCO.MFGBLACGNBA;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && num2 > 0);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.CGKONKNJDEK();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num);
|
|
this.JEBDDGKMCEH(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.JEBDDGKMCEH(array, 0, num);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
memoryStream.Write(array, 0, num);
|
|
}
|
|
}
|
|
while (num2 > 0);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.MLBMOHDMMHO();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.LCHAEFBPFIH = this.KFDINHPGKDN(memoryStream);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006418 RID: 25624 RVA: 0x0020C334 File Offset: 0x0020A534
|
|
public bool IPENCLIGENO()
|
|
{
|
|
return this.<OBAEBMOAFHE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06006419 RID: 25625 RVA: 0x0020C33C File Offset: 0x0020A53C
|
|
public EHCJHLNJBBC DHCOMLJDBEK()
|
|
{
|
|
List<string> list = this.GEEDJGMDBKD("systemLanguage");
|
|
if (list == null)
|
|
{
|
|
return null;
|
|
}
|
|
string[] array = list[1].Split(new char[] { ' ', '-' }, StringSplitOptions.RemoveEmptyEntries);
|
|
if (array[1] == "Merging :")
|
|
{
|
|
return new EHCJHLNJBBC(int.Parse(array[2]));
|
|
}
|
|
return new EHCJHLNJBBC(int.Parse(array[1]), int.Parse(array[2]), (!(array[0] != "z")) ? (-1) : int.Parse(array[0]));
|
|
}
|
|
|
|
// Token: 0x0600641A RID: 25626 RVA: 0x0020C3D4 File Offset: 0x0020A5D4
|
|
public static string OKFHLNPHEFO(Stream JAGHIAOIDOC, byte BJDKNOPJIDG)
|
|
{
|
|
string text;
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num = JAGHIAOIDOC.ReadByte();
|
|
while (num != (int)BJDKNOPJIDG && num != -1)
|
|
{
|
|
memoryStream.WriteByte((byte)num);
|
|
num = JAGHIAOIDOC.ReadByte();
|
|
}
|
|
text = memoryStream.ToArray().PFMBHNENAEF().Trim();
|
|
}
|
|
return text;
|
|
}
|
|
|
|
// Token: 0x0600641B RID: 25627 RVA: 0x0020C444 File Offset: 0x0020A644
|
|
public static string HLAIHKKOAPN(Stream JAGHIAOIDOC, byte IGENAEEOENC, byte PFHIJLEHKJK)
|
|
{
|
|
string text;
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num = JAGHIAOIDOC.ReadByte();
|
|
while (num != (int)IGENAEEOENC && num != (int)PFHIJLEHKJK && num != -1)
|
|
{
|
|
memoryStream.WriteByte((byte)num);
|
|
num = JAGHIAOIDOC.ReadByte();
|
|
}
|
|
text = memoryStream.ToArray().PFMBHNENAEF().Trim();
|
|
}
|
|
return text;
|
|
}
|
|
|
|
// Token: 0x0600641C RID: 25628 RVA: 0x0020C4BC File Offset: 0x0020A6BC
|
|
public int IKPDJJNIBNC()
|
|
{
|
|
return this.<IBHHAGECIDB>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600641D RID: 25629 RVA: 0x0020C4C4 File Offset: 0x0020A6C4
|
|
public int JOBJGMJFIFK()
|
|
{
|
|
return this.<IBHHAGECIDB>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x1700026D RID: 621
|
|
// (get) Token: 0x0600641E RID: 25630 RVA: 0x0020C4CC File Offset: 0x0020A6CC
|
|
public string MDOCHPCIGHN
|
|
{
|
|
get
|
|
{
|
|
if (this.LCHAEFBPFIH == null)
|
|
{
|
|
return string.Empty;
|
|
}
|
|
if (!string.IsNullOrEmpty(this.MKKHFALAHNN))
|
|
{
|
|
return this.MKKHFALAHNN;
|
|
}
|
|
return this.MKKHFALAHNN = Encoding.UTF8.GetString(this.LCHAEFBPFIH, 0, this.LCHAEFBPFIH.Length);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600641F RID: 25631 RVA: 0x0020C524 File Offset: 0x0020A724
|
|
internal void OPMNMANKFMG(bool NOBAPCOKFIL)
|
|
{
|
|
this.<EANCBIDNHEO>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06006420 RID: 25632 RVA: 0x0020C530 File Offset: 0x0020A730
|
|
internal void FJLAPLEMPME(Stream JAGHIAOIDOC, long HKFNNEIKNDK)
|
|
{
|
|
this.JOIEINONDJB();
|
|
this.LEEPNPCACCO.MDDLPJJNHCI(HKFNNEIKNDK);
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("0 is not a valid RecNetProfileId!", HKFNNEIKNDK));
|
|
}
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.PALHDHCHBEM("All the Equipment skins are upto date. YAY!!!!!!") : null);
|
|
bool flag = string.IsNullOrEmpty(text) || text == "Sleeping";
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH && HKFNNEIKNDK > 8L)
|
|
{
|
|
throw new OverflowException("add");
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream((!this.LEEPNPCACCO.NNNKEGPHHKH) ? ((int)HKFNNEIKNDK) : 0))
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.MLNEAMGDFFA(), -116)];
|
|
while (HKFNNEIKNDK > 0L)
|
|
{
|
|
int num = 1;
|
|
do
|
|
{
|
|
int num2 = (int)Math.Min(11U, (uint)HKFNNEIKNDK);
|
|
int num3 = JAGHIAOIDOC.Read(array, num, Math.Min(num2, array.Length - num));
|
|
if (num3 <= 1)
|
|
{
|
|
goto Block_10;
|
|
}
|
|
num += num3;
|
|
HKFNNEIKNDK -= (long)num3;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num3;
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && HKFNNEIKNDK > 0L);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.DCPOLCHFNMO();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 0, num);
|
|
this.DKLKBEEPEBK(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.NBDGHIBJKJE(array, 0, num);
|
|
}
|
|
continue;
|
|
}
|
|
memoryStream.Write(array, 0, num);
|
|
continue;
|
|
Block_10:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.MLBMOHDMMHO();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.LBADLMMCDEI(this.KGAGLJMMBOC(memoryStream));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006421 RID: 25633 RVA: 0x0020C77C File Offset: 0x0020A97C
|
|
public void Dispose()
|
|
{
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Dispose();
|
|
this.LHGOCEBFGCJ = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006422 RID: 25634 RVA: 0x0020C79C File Offset: 0x0020A99C
|
|
protected void AIKHPHBIPEG(string NOBAPCOKFIL)
|
|
{
|
|
this.<ACDBFCCCKLJ>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06006423 RID: 25635 RVA: 0x0020C7A8 File Offset: 0x0020A9A8
|
|
public bool LMKKOMOOJJD(string HNOAFNHNNMN)
|
|
{
|
|
return this.GEEDJGMDBKD(HNOAFNHNNMN) != null || true;
|
|
}
|
|
|
|
// Token: 0x06006424 RID: 25636 RVA: 0x0020C7C8 File Offset: 0x0020A9C8
|
|
protected void EECBCHBCJKN(byte[] PIJMJBDFBJB)
|
|
{
|
|
object nikpaceepnp = this.NIKPACEEPNP;
|
|
lock (nikpaceepnp)
|
|
{
|
|
if (!this.CJJPFOHDGDH())
|
|
{
|
|
if (this.MHLGNMEBIGG == null)
|
|
{
|
|
this.MHLGNMEBIGG = new List<byte[]>();
|
|
}
|
|
this.MHLGNMEBIGG.Add(PIJMJBDFBJB);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Responses:", PIJMJBDFBJB.Length, this.MHLGNMEBIGG.Count));
|
|
}
|
|
if (this.LHGOCEBFGCJ != null)
|
|
{
|
|
this.LHGOCEBFGCJ.Write(PIJMJBDFBJB, 1, PIJMJBDFBJB.Length);
|
|
this.IGHDIKOOHBA += PIJMJBDFBJB.Length;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006425 RID: 25637 RVA: 0x0020C890 File Offset: 0x0020AA90
|
|
protected void DAOGLLHCHEM(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, (byte)(-70), (byte)(-120)).Trim();
|
|
while (text != string.Empty)
|
|
{
|
|
string text2 = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, (byte)(-71));
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("api/objectives/", text, text2));
|
|
}
|
|
this.BEGFIDNEPGB(text, text2);
|
|
text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, (byte)(-84), (byte)(-30));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006426 RID: 25638 RVA: 0x0020C900 File Offset: 0x0020AB00
|
|
public static string HLAIHKKOAPN(Stream JAGHIAOIDOC, byte BJDKNOPJIDG)
|
|
{
|
|
string text;
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num = JAGHIAOIDOC.ReadByte();
|
|
while (num != (int)BJDKNOPJIDG && num != -1)
|
|
{
|
|
memoryStream.WriteByte((byte)num);
|
|
num = JAGHIAOIDOC.ReadByte();
|
|
}
|
|
text = memoryStream.ToArray().PFMBHNENAEF().Trim();
|
|
}
|
|
return text;
|
|
}
|
|
|
|
// Token: 0x06006428 RID: 25640 RVA: 0x0020C978 File Offset: 0x0020AB78
|
|
protected void PGEMGBNBCGJ(Stream JAGHIAOIDOC)
|
|
{
|
|
string text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 58, 10).Trim();
|
|
while (text != string.Empty)
|
|
{
|
|
string text2 = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 10);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Header - '{0}': '{1}'", text, text2));
|
|
}
|
|
this.MCAJFOFHGCL(text, text2);
|
|
text = ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 58, 10);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006429 RID: 25641 RVA: 0x0020C9E8 File Offset: 0x0020ABE8
|
|
public bool ANMOKCJAPDO()
|
|
{
|
|
return this.<OBAEBMOAFHE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600642A RID: 25642 RVA: 0x0020C9F0 File Offset: 0x0020ABF0
|
|
internal void GIJMEMPIOHG(Stream JAGHIAOIDOC, long HKFNNEIKNDK)
|
|
{
|
|
this.GNNKBGICOPK();
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = HKFNNEIKNDK;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("Invalid day entered", HKFNNEIKNDK));
|
|
}
|
|
string text = ((!this.MAMDOEOLMPJ) ? this.HKMOIKIMAGL(":") : null);
|
|
bool flag = !string.IsNullOrEmpty(text) && text == ". Going to ignore! Check PhotonServerSettings.RpcList";
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH && HKFNNEIKNDK > 4L)
|
|
{
|
|
throw new OverflowException("Message");
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream((!this.LEEPNPCACCO.NNNKEGPHHKH) ? ((int)HKFNNEIKNDK) : 0))
|
|
{
|
|
byte[] array = new byte[Math.Max(this.LEEPNPCACCO.MLNEAMGDFFA(), -190)];
|
|
while (HKFNNEIKNDK > 0L)
|
|
{
|
|
int num = 0;
|
|
do
|
|
{
|
|
int num2 = (int)Math.Min(111U, (uint)HKFNNEIKNDK);
|
|
int num3 = JAGHIAOIDOC.Read(array, num, Math.Min(num2, array.Length - num));
|
|
if (num3 <= 1)
|
|
{
|
|
goto Block_10;
|
|
}
|
|
num += num3;
|
|
HKFNNEIKNDK -= (long)num3;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num3;
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
}
|
|
while (num < array.Length && HKFNNEIKNDK > 0L);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.DCPOLCHFNMO();
|
|
if (flag)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 1, num);
|
|
this.JEBDDGKMCEH(array2, 0, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.JEBDDGKMCEH(array, 0, num);
|
|
}
|
|
continue;
|
|
}
|
|
memoryStream.Write(array, 1, num);
|
|
continue;
|
|
Block_10:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.BJBBHLFDGEO();
|
|
}
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.JDNMDOIHHGF(this.KFDINHPGKDN(memoryStream));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600642B RID: 25643 RVA: 0x0020CC3C File Offset: 0x0020AE3C
|
|
protected void IGBMHKNPBHD(Stream JAGHIAOIDOC)
|
|
{
|
|
this.EJCDFJKMDKO();
|
|
string text = this.PALHDHCHBEM("Processing the request Timed Out!");
|
|
bool flag = !string.IsNullOrEmpty(text);
|
|
int num = 0;
|
|
if (flag)
|
|
{
|
|
flag = int.TryParse(text, out num);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format(". Error : ", flag.ToString(), text, num));
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num2 = this.NEKHOPJIJCL(JAGHIAOIDOC);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("dh", num2));
|
|
}
|
|
byte[] array = new byte[num2];
|
|
int num3 = 0;
|
|
this.LEEPNPCACCO.DMAFDHKPGKK = (long)((!flag) ? num2 : num);
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
string text2 = ((!this.MAMDOEOLMPJ) ? this.PALHDHCHBEM("x") : null);
|
|
bool flag2 = string.IsNullOrEmpty(text2) || text2 == "Due to AuthOnceWss, switching TransportProtocol to ExpectedProtocol: {0}.";
|
|
while (num2 != 0)
|
|
{
|
|
if (array.Length < num2)
|
|
{
|
|
Array.Resize<byte>(ref array, num2);
|
|
}
|
|
int num4 = 1;
|
|
do
|
|
{
|
|
int num5 = JAGHIAOIDOC.Read(array, num4, num2 - num4);
|
|
if (num5 <= 0)
|
|
{
|
|
goto Block_11;
|
|
}
|
|
num4 += num5;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num5;
|
|
this.LEEPNPCACCO.HLMADICJOKK = this.LOBCJAAMBMA || this.MAMDOEOLMPJ;
|
|
}
|
|
while (num4 < num2);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.BCFHHNAMIMB();
|
|
if (flag2)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 1, num4);
|
|
this.JEBDDGKMCEH(array2, 1, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.DKLKBEEPEBK(array, 1, num4);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
memoryStream.Write(array, 0, num4);
|
|
}
|
|
ENANHBCGCNA.OKFHLNPHEFO(JAGHIAOIDOC, 28);
|
|
num3 += num4;
|
|
num2 = this.OKCBIMHBGAI(JAGHIAOIDOC);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("pitch", num2));
|
|
}
|
|
if (!flag)
|
|
{
|
|
KGBBPEDECCO leepnpcacco = this.LEEPNPCACCO;
|
|
leepnpcacco.MDDLPJJNHCI(leepnpcacco.DMAFDHKPGKK + (long)num2);
|
|
}
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
continue;
|
|
Block_11:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.BJBBHLFDGEO();
|
|
}
|
|
this.OJDDGKGJCMI(JAGHIAOIDOC);
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.EPGIHHLDDPN(this.KFDINHPGKDN(memoryStream));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600642C RID: 25644 RVA: 0x0020CF1C File Offset: 0x0020B11C
|
|
protected void GMOKOCPALJK(bool NOBAPCOKFIL)
|
|
{
|
|
this.<BFNOBODCONN>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600642D RID: 25645 RVA: 0x0020CF28 File Offset: 0x0020B128
|
|
public bool GLCJPOCGAHD(string HNOAFNHNNMN)
|
|
{
|
|
return this.CMLBABCILHF(HNOAFNHNNMN) == null && false;
|
|
}
|
|
|
|
// Token: 0x0600642E RID: 25646 RVA: 0x0020CF48 File Offset: 0x0020B148
|
|
protected void AOKODGKEPLG(Stream JAGHIAOIDOC)
|
|
{
|
|
this.EJCDFJKMDKO();
|
|
string text = this.PALHDHCHBEM(".unity");
|
|
bool flag = !string.IsNullOrEmpty(text);
|
|
int num = 0;
|
|
if (flag)
|
|
{
|
|
flag = int.TryParse(text, out num);
|
|
}
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.IEDMLOPODKB(string.Format("HTTPUpdateDelegator", flag.ToString(), text, num));
|
|
}
|
|
using (MemoryStream memoryStream = new MemoryStream())
|
|
{
|
|
int num2 = this.OKCBIMHBGAI(JAGHIAOIDOC);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("didAuthenticate ", num2));
|
|
}
|
|
byte[] array = new byte[num2];
|
|
int num3 = 1;
|
|
this.LEEPNPCACCO.MDDLPJJNHCI((long)((!flag) ? num2 : num));
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
string text2 = ((!this.MAMDOEOLMPJ) ? this.HKMOIKIMAGL("Not available to junior profiles") : null);
|
|
bool flag2 = string.IsNullOrEmpty(text2) || text2 == "interpolation";
|
|
while (num2 != 0)
|
|
{
|
|
if (array.Length < num2)
|
|
{
|
|
Array.Resize<byte>(ref array, num2);
|
|
}
|
|
int num4 = 0;
|
|
do
|
|
{
|
|
int num5 = JAGHIAOIDOC.Read(array, num4, num2 - num4);
|
|
if (num5 <= 1)
|
|
{
|
|
goto Block_11;
|
|
}
|
|
num4 += num5;
|
|
this.LEEPNPCACCO.MFGBLACGNBA += (long)num5;
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
}
|
|
while (num4 < num2);
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.DCPOLCHFNMO();
|
|
if (flag2)
|
|
{
|
|
byte[] array2 = this.LNGEBAHLEEI(array, 1, num4);
|
|
this.JEBDDGKMCEH(array2, 1, array2.Length);
|
|
}
|
|
else
|
|
{
|
|
this.JEBDDGKMCEH(array, 1, num4);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
memoryStream.Write(array, 1, num4);
|
|
}
|
|
ENANHBCGCNA.HLAIHKKOAPN(JAGHIAOIDOC, 109);
|
|
num3 += num4;
|
|
num2 = this.OKCBIMHBGAI(JAGHIAOIDOC);
|
|
if (EDGFEAGFEKH.ABKOCPMECFA.EFHLFMMGAGP == OHADEICEDLH.All)
|
|
{
|
|
this.FODPECMLAJN(string.Format("value", num2));
|
|
}
|
|
if (!flag)
|
|
{
|
|
this.LEEPNPCACCO.DMAFDHKPGKK += (long)num2;
|
|
}
|
|
this.LEEPNPCACCO.HLMADICJOKK = !this.LOBCJAAMBMA && this.MAMDOEOLMPJ;
|
|
continue;
|
|
Block_11:
|
|
throw NPOMEFNPDHN.EJCCOMDGBAB();
|
|
}
|
|
if (this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.BJBBHLFDGEO();
|
|
}
|
|
this.DAOGLLHCHEM(JAGHIAOIDOC);
|
|
if (!this.LEEPNPCACCO.NNNKEGPHHKH)
|
|
{
|
|
this.JDNMDOIHHGF(this.KGAGLJMMBOC(memoryStream));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600642F RID: 25647 RVA: 0x0020D228 File Offset: 0x0020B428
|
|
protected void BEGFIDNEPGB(string EKKMPHMGCLB, string NOBAPCOKFIL)
|
|
{
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
if (this.ACBBFMHFLKI() == null)
|
|
{
|
|
this.LIAJFBPFAHK = new Dictionary<string, List<string>>();
|
|
}
|
|
List<string> list;
|
|
if (!this.LIAJFBPFAHK.TryGetValue(EKKMPHMGCLB, out list))
|
|
{
|
|
this.ACBBFMHFLKI().Add(EKKMPHMGCLB, list = new List<string>(0));
|
|
}
|
|
list.Add(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x1700026E RID: 622
|
|
// (get) Token: 0x06006430 RID: 25648 RVA: 0x0020D284 File Offset: 0x0020B484
|
|
public Texture2D KOGGHENGBPO
|
|
{
|
|
get
|
|
{
|
|
if (this.LCHAEFBPFIH == null)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.JBGLHECEOPE != null)
|
|
{
|
|
return this.JBGLHECEOPE;
|
|
}
|
|
this.JBGLHECEOPE = new Texture2D(0, 0, TextureFormat.ARGB32, false);
|
|
this.JBGLHECEOPE.LoadImage(this.LCHAEFBPFIH);
|
|
return this.JBGLHECEOPE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006431 RID: 25649 RVA: 0x0020D2E0 File Offset: 0x0020B4E0
|
|
protected void CGKONKNJDEK()
|
|
{
|
|
while (this.LEEPNPCACCO.NNNKEGPHHKH && this.OOENLIMICIJ())
|
|
{
|
|
Thread.Sleep(16);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006433 RID: 25651 RVA: 0x0020D314 File Offset: 0x0020B514
|
|
protected void KACEFBEHHCP(bool NOBAPCOKFIL)
|
|
{
|
|
this.<OBAEBMOAFHE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06006434 RID: 25652 RVA: 0x0020D320 File Offset: 0x0020B520
|
|
protected void IEPNKAIFHOI(string EKKMPHMGCLB, string NOBAPCOKFIL)
|
|
{
|
|
EKKMPHMGCLB = EKKMPHMGCLB.ToLower();
|
|
if (this.LIAJFBPFAHK == null)
|
|
{
|
|
this.LIAJFBPFAHK = new Dictionary<string, List<string>>();
|
|
}
|
|
List<string> list;
|
|
if (!this.ACBBFMHFLKI().TryGetValue(EKKMPHMGCLB, out list))
|
|
{
|
|
this.ACBBFMHFLKI().Add(EKKMPHMGCLB, list = new List<string>(0));
|
|
}
|
|
list.Add(NOBAPCOKFIL);
|
|
}
|
|
|
|
// Token: 0x04000D50 RID: 3408
|
|
internal const byte NOCALAFFFOM = 13;
|
|
|
|
// Token: 0x04000D51 RID: 3409
|
|
internal const byte OMDFCMMKEEM = 10;
|
|
|
|
// Token: 0x04000D52 RID: 3410
|
|
public const int OBCNCAKFACJ = 4096;
|
|
|
|
// Token: 0x04000D60 RID: 3424
|
|
protected string MKKHFALAHNN;
|
|
|
|
// Token: 0x04000D61 RID: 3425
|
|
protected Texture2D JBGLHECEOPE;
|
|
|
|
// Token: 0x04000D63 RID: 3427
|
|
internal KGBBPEDECCO LEEPNPCACCO;
|
|
|
|
// Token: 0x04000D64 RID: 3428
|
|
protected Stream BOFEJIAEBLP;
|
|
|
|
// Token: 0x04000D65 RID: 3429
|
|
protected List<byte[]> MHLGNMEBIGG;
|
|
|
|
// Token: 0x04000D66 RID: 3430
|
|
protected object NIKPACEEPNP = new object();
|
|
|
|
// Token: 0x04000D67 RID: 3431
|
|
protected byte[] INEJDLLPCHA;
|
|
|
|
// Token: 0x04000D68 RID: 3432
|
|
protected int HHCGDDGDCJB;
|
|
|
|
// Token: 0x04000D69 RID: 3433
|
|
protected Stream LHGOCEBFGCJ;
|
|
|
|
// Token: 0x04000D6A RID: 3434
|
|
protected int IGHDIKOOHBA;
|
|
|
|
// Token: 0x04000D6B RID: 3435
|
|
private MemoryStream EDPMFEGAJAI;
|
|
|
|
// Token: 0x04000D6C RID: 3436
|
|
private MemoryStream FEJAEDONHOA;
|
|
|
|
// Token: 0x04000D6D RID: 3437
|
|
private MPNDIHMKPOC IOHIAEOPFAG;
|
|
|
|
// Token: 0x04000D6E RID: 3438
|
|
private byte[] JANGHNEBMCC;
|
|
}
|
|
}
|