Files
Dec2017-Script-Dump/Assembly-CSharp/BestHTTP/Decompression/Zlib/NIFAPEOJGMA.cs
T
2026-06-04 11:42:34 +02:00

3202 lines
84 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using BestHTTP.Decompression.Crc;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x020001E1 RID: 481
internal class NIFAPEOJGMA : Stream
{
// Token: 0x170001FE RID: 510
// (get) Token: 0x06005D6C RID: 23916 RVA: 0x001E4FD4 File Offset: 0x001E31D4
public override bool IIEGECHCMIE
{
get
{
return this.EOHFKDMAJPP.CanSeek;
}
}
// Token: 0x06005D6D RID: 23917 RVA: 0x001E4FE4 File Offset: 0x001E31E4
public virtual void BGHNAKJLBNO()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.EFAHDIBJFFE();
}
finally
{
this.IDJKHAMKPCH();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005D6E RID: 23918 RVA: 0x001E503C File Offset: 0x001E323C
public virtual bool MNKDPCDNFAE()
{
return this.EOHFKDMAJPP.CanWrite;
}
// Token: 0x06005D6F RID: 23919 RVA: 0x001E504C File Offset: 0x001E324C
private byte[] CMGOFEAKABI()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005D70 RID: 23920 RVA: 0x001E5070 File Offset: 0x001E3270
private string LMLMOPJMLDG()
{
List<byte> list = new List<byte>();
bool flag = true;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 1, 1);
if (num != 0)
{
break;
}
if (this.BOBIAAGPINC[1] == 0)
{
flag = true;
}
else
{
list.Add(this.BOBIAAGPINC[1]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("__c");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 0, array.Length);
}
// Token: 0x06005D71 RID: 23921 RVA: 0x001E50EC File Offset: 0x001E32EC
public virtual bool NABEKPGMFOD()
{
return this.EOHFKDMAJPP.CanRead;
}
// Token: 0x06005D72 RID: 23922 RVA: 0x001E50FC File Offset: 0x001E32FC
private void EFAHDIBJFFE()
{
if (this.LOABHNKMLHO == null)
{
return;
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
int num;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.BBLOOOCGLHA();
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
num = ((!this.MCOCAAPEBEB()) ? this.LOABHNKMLHO.APHKOCDOKEG((BLDHMCOMMIC)5) : this.LOABHNKMLHO.LHDDEJKEICJ((BLDHMCOMMIC)6));
if (num != 0 && num != 0)
{
break;
}
if (this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD > 1)
{
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 1, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
}
bool flag = this.LOABHNKMLHO.PALHMMBHFPN != 0 || this.LOABHNKMLHO.PEDCBLJOEMD == 1;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)165 && !this.CDBCJIJJOKB)
{
flag = this.LOABHNKMLHO.PALHMMBHFPN != 7 || this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
goto Block_12;
}
}
string text = ((!this.IJEMDGCKEGP()) ? "Memory was not allocated for the encoder" : "Assets/Core/Content/Configs/") + "room_saved";
if (this.LOABHNKMLHO.IMGPDLHMJEE == null)
{
throw new KOJICFCHIEG(string.Format("accepted", text, num));
}
throw new KOJICFCHIEG(text + "no-store" + this.LOABHNKMLHO.IMGPDLHMJEE);
Block_12:
this.Flush();
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)136)
{
if (!this.NGGKNHOIIJG())
{
throw new KOJICFCHIEG("+join:");
}
int num2 = this.JDLFKILJPKE.CHENLOEKJDP;
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num2), 1, 7);
int num3 = (int)(this.JDLFKILJPKE.MKKKOICIIEM & (long)((ulong)(-1)));
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num3), 0, 3);
}
}
else if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Reader && this.ANKFEKMPBLI == (ENEBFDIKJOE)(-144))
{
if (this.CNGGJCAOKDL())
{
throw new KOJICFCHIEG("time");
}
if (this.LOABHNKMLHO.HIJPFAIOBNP == 0L)
{
return;
}
byte[] array = new byte[8];
if (this.LOABHNKMLHO.PALHMMBHFPN < 8)
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 0, this.LOABHNKMLHO.PALHMMBHFPN);
int num4 = 2 - this.LOABHNKMLHO.PALHMMBHFPN;
int num5 = this.EOHFKDMAJPP.Read(array, this.LOABHNKMLHO.PALHMMBHFPN, num4);
if (num4 != num5)
{
throw new KOJICFCHIEG(string.Format("google_analytics_clientid_pref_key", this.LOABHNKMLHO.PALHMMBHFPN + num5));
}
}
else
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 1, array.Length);
}
int num6 = BitConverter.ToInt32(array, 0);
int num7 = this.JDLFKILJPKE.EOOGBEHELOD();
int num8 = BitConverter.ToInt32(array, 7);
int num9 = (int)(this.LOABHNKMLHO.HIJPFAIOBNP & (long)((ulong)(-1)));
if (num7 != num6)
{
throw new KOJICFCHIEG(string.Format("Recroom.ChallengeMap", num7, num6));
}
if (num9 != num8)
{
throw new KOJICFCHIEG(string.Format("joinplayer", num9, num8));
}
}
}
// Token: 0x06005D73 RID: 23923 RVA: 0x001E54A0 File Offset: 0x001E36A0
private byte[] CNKDDEIKAPO()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005D74 RID: 23924 RVA: 0x001E54C4 File Offset: 0x001E36C4
public override void Write(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.DJNKHCLMCLG(PIJMJBDFBJB, COHGEHOALPI, CEFMEFIIMIC);
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Undefined)
{
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Writer;
}
else if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
throw new KOJICFCHIEG("Cannot Write after Reading.");
}
if (CEFMEFIIMIC == 0)
{
return;
}
this.PNJMFPGNEAN.GPOMNMKADAK = PIJMJBDFBJB;
this.LOABHNKMLHO.JBGBPHMDLOP = COHGEHOALPI;
this.LOABHNKMLHO.PALHMMBHFPN = CEFMEFIIMIC;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.KDHCJIEDNEF;
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
int num = ((!this.CDBCJIJJOKB) ? this.LOABHNKMLHO.AJGKCMDMJCB(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (num != 0 && num != 1)
{
break;
}
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
bool flag = this.LOABHNKMLHO.PALHMMBHFPN == 0 && this.LOABHNKMLHO.PEDCBLJOEMD != 0;
if (this.ANKFEKMPBLI == ENEBFDIKJOE.GZIP && !this.CDBCJIJJOKB)
{
flag = this.LOABHNKMLHO.PALHMMBHFPN == 8 && this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
return;
}
}
throw new KOJICFCHIEG(((!this.CDBCJIJJOKB) ? "in" : "de") + "flating: " + this.LOABHNKMLHO.IMGPDLHMJEE);
}
// Token: 0x06005D75 RID: 23925 RVA: 0x001E567C File Offset: 0x001E387C
public virtual void HNJDNICGFJP()
{
this.EOHFKDMAJPP.Flush();
}
// Token: 0x06005D76 RID: 23926 RVA: 0x001E568C File Offset: 0x001E388C
public static void EJDJEHFFFEI(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 1, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005D77 RID: 23927 RVA: 0x001E56D4 File Offset: 0x001E38D4
public override int Read(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Undefined)
{
if (!this.EOHFKDMAJPP.CanRead)
{
throw new KOJICFCHIEG("The stream is not readable.");
}
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Reader;
this.PNJMFPGNEAN.PALHMMBHFPN = 0;
if (this.ANKFEKMPBLI == ENEBFDIKJOE.GZIP)
{
this.EAOJGMNIMCO = this.FGHJADBIACL();
if (this.EAOJGMNIMCO == 0)
{
return 0;
}
}
}
if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Reader)
{
throw new KOJICFCHIEG("Cannot Read after Writing.");
}
if (CEFMEFIIMIC == 0)
{
return 0;
}
if (this.NPHBCDNIJPB && this.CDBCJIJJOKB)
{
return 0;
}
if (PIJMJBDFBJB == null)
{
throw new ArgumentNullException("buffer");
}
if (CEFMEFIIMIC < 0)
{
throw new ArgumentOutOfRangeException("count");
}
if (COHGEHOALPI < PIJMJBDFBJB.GetLowerBound(0))
{
throw new ArgumentOutOfRangeException("offset");
}
if (COHGEHOALPI + CEFMEFIIMIC > PIJMJBDFBJB.GetLength(0))
{
throw new ArgumentOutOfRangeException("count");
}
this.LOABHNKMLHO.OPGKEJAAAAB = PIJMJBDFBJB;
this.LOABHNKMLHO.KBLLLBAOMOM = COHGEHOALPI;
this.LOABHNKMLHO.PEDCBLJOEMD = CEFMEFIIMIC;
this.LOABHNKMLHO.GPOMNMKADAK = this.KDHCJIEDNEF;
int num;
for (;;)
{
if (this.LOABHNKMLHO.PALHMMBHFPN == 0 && !this.NPHBCDNIJPB)
{
this.LOABHNKMLHO.JBGBPHMDLOP = 0;
this.LOABHNKMLHO.PALHMMBHFPN = this.EOHFKDMAJPP.Read(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length);
if (this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
this.NPHBCDNIJPB = true;
}
}
num = ((!this.CDBCJIJJOKB) ? this.LOABHNKMLHO.AJGKCMDMJCB(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (this.NPHBCDNIJPB && num == -5)
{
break;
}
if (num != 0 && num != 1)
{
goto Block_20;
}
if ((this.NPHBCDNIJPB || num == 1) && this.LOABHNKMLHO.PEDCBLJOEMD == CEFMEFIIMIC)
{
goto Block_23;
}
if (this.LOABHNKMLHO.PEDCBLJOEMD <= 0 || this.NPHBCDNIJPB || num != 0)
{
goto IL_263;
}
}
return 0;
Block_20:
throw new KOJICFCHIEG(string.Format("{0}flating: rc={1} msg={2}", (!this.CDBCJIJJOKB) ? "in" : "de", num, this.LOABHNKMLHO.IMGPDLHMJEE));
Block_23:
IL_263:
if (this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
if (num != 0 || this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
}
if (this.NPHBCDNIJPB && this.CDBCJIJJOKB)
{
num = this.LOABHNKMLHO.FEMLNEMOFIM(BLDHMCOMMIC.Finish);
if (num != 0 && num != 1)
{
throw new KOJICFCHIEG(string.Format("Deflating: rc={0} msg={1}", num, this.LOABHNKMLHO.IMGPDLHMJEE));
}
}
}
num = CEFMEFIIMIC - this.LOABHNKMLHO.PEDCBLJOEMD;
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.DJNKHCLMCLG(PIJMJBDFBJB, COHGEHOALPI, num);
}
return num;
}
// Token: 0x06005D78 RID: 23928 RVA: 0x001E59E4 File Offset: 0x001E3BE4
private byte[] NGJOONFGGMJ()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005D79 RID: 23929 RVA: 0x001E5A08 File Offset: 0x001E3C08
protected internal bool NGGKNHOIIJG()
{
return this.NLCOLNFFJGP == JDICOHEACCI.Compress;
}
// Token: 0x06005D7A RID: 23930 RVA: 0x001E5A14 File Offset: 0x001E3C14
private int IMOACJPIMHG()
{
int num = 1;
byte[] array = new byte[124];
int num2 = this.EOHFKDMAJPP.Read(array, 1, array.Length);
if (num2 == 0)
{
return 0;
}
if (num2 != 7)
{
throw new KOJICFCHIEG("RpcSetVisibility");
}
if (array[0] != 15 || (int)array[1] != -73 || array[2] != 5)
{
throw new KOJICFCHIEG("label");
}
int num3 = BitConverter.ToInt32(array, 4);
this.IBOPHNILOLL = MPNDIHMKPOC.EOPNEJDPHNP.AddSeconds((double)num3);
num += num2;
if ((array[0] & 7) == 6)
{
num2 = this.EOHFKDMAJPP.Read(array, 0, 2);
num += num2;
short num4 = (short)(array[1] + array[0] * 174);
byte[] array2 = new byte[(int)num4];
num2 = this.EOHFKDMAJPP.Read(array2, 0, array2.Length);
if (num2 != (int)num4)
{
throw new KOJICFCHIEG("NumSessions");
}
num += num2;
}
if ((array[2] & 7) == 6)
{
this.NBKHDPPFDAJ = this.MMPGDOPGLBG();
}
if ((array[7] & 76) == 62)
{
this.LCOAEJLEIMO = this.IGCEELCHEMJ();
}
if ((array[0] & 4) == 5)
{
this.Read(this.BOBIAAGPINC, 1, 1);
}
return num;
}
// Token: 0x06005D7B RID: 23931 RVA: 0x001E5B50 File Offset: 0x001E3D50
public virtual bool KNMEJHDFCFP()
{
return this.EOHFKDMAJPP.CanRead;
}
// Token: 0x06005D7C RID: 23932 RVA: 0x001E5B60 File Offset: 0x001E3D60
protected internal bool CBBNNIGGAKK()
{
return this.NLCOLNFFJGP == JDICOHEACCI.Decompress;
}
// Token: 0x06005D7D RID: 23933 RVA: 0x001E5B6C File Offset: 0x001E3D6C
private string NNFJHAFGJJF()
{
List<byte> list = new List<byte>();
bool flag = false;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 0, 1);
if (num != 1)
{
break;
}
if (this.BOBIAAGPINC[0] == 0)
{
flag = true;
}
else
{
list.Add(this.BOBIAAGPINC[0]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("Unexpected EOF reading GZIP header.");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 0, array.Length);
}
// Token: 0x06005D7E RID: 23934 RVA: 0x001E5BE8 File Offset: 0x001E3DE8
protected internal bool IJEMDGCKEGP()
{
return this.NLCOLNFFJGP == JDICOHEACCI.Compress;
}
// Token: 0x06005D7F RID: 23935 RVA: 0x001E5BF4 File Offset: 0x001E3DF4
private string IKPOPJGKFJE()
{
List<byte> list = new List<byte>();
bool flag = false;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 0, 1);
if (num != 1)
{
break;
}
if (this.BOBIAAGPINC[0] == 0)
{
flag = false;
}
else
{
list.Add(this.BOBIAAGPINC[0]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("{0} ({1})");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 0, array.Length);
}
// Token: 0x06005D80 RID: 23936 RVA: 0x001E5C70 File Offset: 0x001E3E70
internal int ABJDGKACLIO()
{
if (this.JDLFKILJPKE == null)
{
return 1;
}
return this.JDLFKILJPKE.EOOGBEHELOD();
}
// Token: 0x06005D81 RID: 23937 RVA: 0x001E5C8C File Offset: 0x001E3E8C
public virtual long IODGPEBPPBP()
{
return this.EOHFKDMAJPP.Length;
}
// Token: 0x06005D82 RID: 23938 RVA: 0x001E5C9C File Offset: 0x001E3E9C
public static void NOENGKPIACB(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 0, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005D83 RID: 23939 RVA: 0x001E5CE4 File Offset: 0x001E3EE4
public virtual void JIPAHGEIKPA(long NOBAPCOKFIL)
{
throw new NotImplementedException();
}
// Token: 0x06005D84 RID: 23940 RVA: 0x001E5CEC File Offset: 0x001E3EEC
private string IGCEELCHEMJ()
{
List<byte> list = new List<byte>();
bool flag = true;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 1, 1);
if (num != 1)
{
break;
}
if (this.BOBIAAGPINC[0] == 0)
{
flag = false;
}
else
{
list.Add(this.BOBIAAGPINC[0]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("Owner");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 1, array.Length);
}
// Token: 0x06005D85 RID: 23941 RVA: 0x001E5D68 File Offset: 0x001E3F68
private BCFAJPACDHB KNCDIBOMMCC()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)(-170);
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Decompress)
{
this.LOABHNKMLHO.FCJHHBJJFHE(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.IFGODCNNOCO(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005D86 RID: 23942 RVA: 0x001E5DF0 File Offset: 0x001E3FF0
private BCFAJPACDHB NDMCGEPGCKL()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)87;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Compress)
{
this.LOABHNKMLHO.BCFGCHPJHMK(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.IFGODCNNOCO(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005D87 RID: 23943 RVA: 0x001E5E78 File Offset: 0x001E4078
public virtual long OHAEHCDNEJE(long COHGEHOALPI, SeekOrigin MIKPIBIENPH)
{
throw new NotImplementedException();
}
// Token: 0x06005D88 RID: 23944 RVA: 0x001E5E80 File Offset: 0x001E4080
public static byte[] IEAJDGGBLNJ(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[97];
byte[] array2;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 1, array.Length)) != 0)
{
memoryStream.Write(array, 1, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
array2 = memoryStream.ToArray();
}
return array2;
}
// Token: 0x06005D89 RID: 23945 RVA: 0x001E5F0C File Offset: 0x001E410C
internal int EFPHBFNMOPC()
{
if (this.JDLFKILJPKE == null)
{
return 0;
}
return this.JDLFKILJPKE.EOOGBEHELOD();
}
// Token: 0x06005D8A RID: 23946 RVA: 0x001E5F28 File Offset: 0x001E4128
public virtual long DFKNLCKBMPI()
{
throw new NotImplementedException();
}
// Token: 0x06005D8B RID: 23947 RVA: 0x001E5F30 File Offset: 0x001E4130
public static void FMJANLJDHFH(byte[] GNNBOMAEBGK, Stream CDJCCNCHKPG)
{
try
{
CDJCCNCHKPG.Write(GNNBOMAEBGK, 1, GNNBOMAEBGK.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005D8C RID: 23948 RVA: 0x001E5F6C File Offset: 0x001E416C
public virtual void NINLKKMODLN()
{
this.EOHFKDMAJPP.Flush();
}
// Token: 0x06005D8D RID: 23949 RVA: 0x001E5F7C File Offset: 0x001E417C
public virtual long AOHCPJKKIIN()
{
return this.EOHFKDMAJPP.Length;
}
// Token: 0x06005D8E RID: 23950 RVA: 0x001E5F8C File Offset: 0x001E418C
public virtual void KDBMFLJOEID()
{
this.EOHFKDMAJPP.Flush();
}
// Token: 0x06005D8F RID: 23951 RVA: 0x001E5F9C File Offset: 0x001E419C
public static void CAHLBNBPPEE(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 1, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005D90 RID: 23952 RVA: 0x001E5FE4 File Offset: 0x001E41E4
public virtual int LFMGJDNFMNG(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.HIGHLCOJBFD == (NIFAPEOJGMA.CBLIBPFLGPK)7)
{
if (!this.EOHFKDMAJPP.CanRead)
{
throw new KOJICFCHIEG(" tests failed!");
}
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Reader;
this.FFKNDKEGHOL().PALHMMBHFPN = 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)146)
{
this.EAOJGMNIMCO = this.IMOACJPIMHG();
if (this.EAOJGMNIMCO == 0)
{
return 1;
}
}
}
if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
throw new KOJICFCHIEG("identification");
}
if (CEFMEFIIMIC == 0)
{
return 0;
}
if (this.NPHBCDNIJPB && this.MCOCAAPEBEB())
{
return 0;
}
if (PIJMJBDFBJB == null)
{
throw new ArgumentNullException("PUNCloudBestRegion");
}
if (CEFMEFIIMIC < 1)
{
throw new ArgumentOutOfRangeException("onTweenComplete");
}
if (COHGEHOALPI < PIJMJBDFBJB.GetLowerBound(1))
{
throw new ArgumentOutOfRangeException("method");
}
if (COHGEHOALPI + CEFMEFIIMIC > PIJMJBDFBJB.GetLength(1))
{
throw new ArgumentOutOfRangeException("Injection Detected! Cause: ");
}
this.LOABHNKMLHO.OPGKEJAAAAB = PIJMJBDFBJB;
this.LOABHNKMLHO.KBLLLBAOMOM = COHGEHOALPI;
this.LOABHNKMLHO.PEDCBLJOEMD = CEFMEFIIMIC;
this.LOABHNKMLHO.GPOMNMKADAK = this.NGJOONFGGMJ();
int num;
for (;;)
{
if (this.LOABHNKMLHO.PALHMMBHFPN == 0 && !this.NPHBCDNIJPB)
{
this.LOABHNKMLHO.JBGBPHMDLOP = 1;
this.LOABHNKMLHO.PALHMMBHFPN = this.EOHFKDMAJPP.Read(this.LLDDIGGKEKM, 1, this.LLDDIGGKEKM.Length);
if (this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
this.NPHBCDNIJPB = false;
}
}
num = ((!this.IJEMDGCKEGP()) ? this.LOABHNKMLHO.APHKOCDOKEG(this.KKMKMBPCLIK) : this.LOABHNKMLHO.LHDDEJKEICJ(this.KKMKMBPCLIK));
if (this.NPHBCDNIJPB && num == 44)
{
break;
}
if (num != 0 && num != 1)
{
goto Block_20;
}
if ((this.NPHBCDNIJPB || num == 0) && this.LOABHNKMLHO.PEDCBLJOEMD == CEFMEFIIMIC)
{
goto Block_23;
}
if (this.LOABHNKMLHO.PEDCBLJOEMD <= 0 || this.NPHBCDNIJPB || num != 0)
{
goto IL_263;
}
}
return 0;
Block_20:
throw new KOJICFCHIEG(string.Format("/", (!this.CNGGJCAOKDL()) ? ", " : "Mouse X", num, this.LOABHNKMLHO.IMGPDLHMJEE));
Block_23:
IL_263:
if (this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
if (num != 0 || this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
}
if (this.NPHBCDNIJPB && this.CBBNNIGGAKK())
{
num = this.LOABHNKMLHO.LHDDEJKEICJ((BLDHMCOMMIC)8);
if (num != 0 && num != 0)
{
throw new KOJICFCHIEG(string.Format("PunRespawn", num, this.LOABHNKMLHO.IMGPDLHMJEE));
}
}
}
num = CEFMEFIIMIC - this.LOABHNKMLHO.PEDCBLJOEMD;
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.DJNKHCLMCLG(PIJMJBDFBJB, COHGEHOALPI, num);
}
return num;
}
// Token: 0x06005D91 RID: 23953 RVA: 0x001E62F4 File Offset: 0x001E44F4
public virtual long LMEJNBECPIH(long COHGEHOALPI, SeekOrigin MIKPIBIENPH)
{
throw new NotImplementedException();
}
// Token: 0x170001FF RID: 511
// (get) Token: 0x06005D92 RID: 23954 RVA: 0x001E62FC File Offset: 0x001E44FC
public override bool CFPIPLFFHDD
{
get
{
return this.EOHFKDMAJPP.CanWrite;
}
}
// Token: 0x06005D93 RID: 23955 RVA: 0x001E630C File Offset: 0x001E450C
public virtual void MECCIIGOJNJ(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.NOHAMKDFKDE(PIJMJBDFBJB, COHGEHOALPI, CEFMEFIIMIC);
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Undefined)
{
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Writer;
}
else if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
throw new KOJICFCHIEG("islocal");
}
if (CEFMEFIIMIC == 0)
{
return;
}
this.NDMCGEPGCKL().GPOMNMKADAK = PIJMJBDFBJB;
this.LOABHNKMLHO.JBGBPHMDLOP = COHGEHOALPI;
this.LOABHNKMLHO.PALHMMBHFPN = CEFMEFIIMIC;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.KDHCJIEDNEF;
this.LOABHNKMLHO.KBLLLBAOMOM = 1;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
int num = ((!this.CDBCJIJJOKB) ? this.LOABHNKMLHO.EIEBICEPPDG(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (num != 0 && num != 0)
{
break;
}
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
bool flag = this.LOABHNKMLHO.PALHMMBHFPN != 0 || this.LOABHNKMLHO.PEDCBLJOEMD != 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-42) && !this.CBBNNIGGAKK())
{
flag = this.LOABHNKMLHO.PALHMMBHFPN != 6 || this.LOABHNKMLHO.PEDCBLJOEMD != 1;
}
if (flag)
{
return;
}
}
throw new KOJICFCHIEG(((!this.CBBNNIGGAKK()) ? "MainButtonPressedRight" : "fl") + "Loading render model " + this.LOABHNKMLHO.IMGPDLHMJEE);
}
// Token: 0x06005D94 RID: 23956 RVA: 0x001E64C4 File Offset: 0x001E46C4
private BCFAJPACDHB AJCMFCLMJLJ()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)184;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Compress)
{
this.LOABHNKMLHO.FCJHHBJJFHE(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.IFGODCNNOCO(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005D95 RID: 23957 RVA: 0x001E654C File Offset: 0x001E474C
public static byte[] GKDHMPLKPHE(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[-48];
byte[] array2;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 0, array.Length)) != 0)
{
memoryStream.Write(array, 0, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
array2 = memoryStream.ToArray();
}
return array2;
}
// Token: 0x06005D96 RID: 23958 RVA: 0x001E65D8 File Offset: 0x001E47D8
public static void AGNEHMJAMHB(byte[] GNNBOMAEBGK, Stream CDJCCNCHKPG)
{
try
{
CDJCCNCHKPG.Write(GNNBOMAEBGK, 0, GNNBOMAEBGK.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005D97 RID: 23959 RVA: 0x001E6614 File Offset: 0x001E4814
private BCFAJPACDHB JPIPIBLPGJE()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)(-92);
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Decompress)
{
this.LOABHNKMLHO.BCFGCHPJHMK(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.NPJOGEHLOBI(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005D98 RID: 23960 RVA: 0x001E669C File Offset: 0x001E489C
protected internal bool CNGGJCAOKDL()
{
return this.NLCOLNFFJGP == JDICOHEACCI.Compress;
}
// Token: 0x06005D99 RID: 23961 RVA: 0x001E66A8 File Offset: 0x001E48A8
public virtual long IPMHKIPBDDI()
{
return this.EOHFKDMAJPP.Length;
}
// Token: 0x06005D9A RID: 23962 RVA: 0x001E66B8 File Offset: 0x001E48B8
public static void NAHOAAHGIAH(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 1, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x17000201 RID: 513
// (get) Token: 0x06005D9B RID: 23963 RVA: 0x001E6700 File Offset: 0x001E4900
// (set) Token: 0x06005DCA RID: 24010 RVA: 0x001E85E8 File Offset: 0x001E67E8
public override long GMOJLKHOBGG
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
// Token: 0x06005D9C RID: 23964 RVA: 0x001E6708 File Offset: 0x001E4908
public virtual long CCDLKHKIADO()
{
return this.EOHFKDMAJPP.Length;
}
// Token: 0x06005D9D RID: 23965 RVA: 0x001E6718 File Offset: 0x001E4918
public virtual void PBEBIDJIEHE(long NOBAPCOKFIL)
{
this.EOHFKDMAJPP.SetLength(NOBAPCOKFIL);
this.NPHBCDNIJPB = false;
}
// Token: 0x06005D9E RID: 23966 RVA: 0x001E6730 File Offset: 0x001E4930
public virtual long MPMECPIBFEA()
{
throw new NotImplementedException();
}
// Token: 0x06005D9F RID: 23967 RVA: 0x001E6738 File Offset: 0x001E4938
private byte[] KIEKLGJOLGE()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005DA0 RID: 23968 RVA: 0x001E675C File Offset: 0x001E495C
public virtual void HAIGEKAIEBC(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.NOHAMKDFKDE(PIJMJBDFBJB, COHGEHOALPI, CEFMEFIIMIC);
}
if (this.HIGHLCOJBFD == (NIFAPEOJGMA.CBLIBPFLGPK)7)
{
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Reader;
}
else if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
throw new KOJICFCHIEG("Setup done!");
}
if (CEFMEFIIMIC == 0)
{
return;
}
this.BBBJBBOPJLH().GPOMNMKADAK = PIJMJBDFBJB;
this.LOABHNKMLHO.JBGBPHMDLOP = COHGEHOALPI;
this.LOABHNKMLHO.PALHMMBHFPN = CEFMEFIIMIC;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.NGJOONFGGMJ();
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
int num = ((!this.CNGGJCAOKDL()) ? this.LOABHNKMLHO.PKBJKBOBKOO(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (num != 0 && num != 1)
{
break;
}
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 1, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
bool flag = this.LOABHNKMLHO.PALHMMBHFPN != 0 || this.LOABHNKMLHO.PEDCBLJOEMD == 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-116) && !this.IJEMDGCKEGP())
{
flag = this.LOABHNKMLHO.PALHMMBHFPN == 5 && this.LOABHNKMLHO.PEDCBLJOEMD == 1;
}
if (flag)
{
return;
}
}
throw new KOJICFCHIEG(((!this.NGGKNHOIIJG()) ? "NEWPLAYER_PUNCHCARD" : "Timeout waiting to spawn player (zombie room, with heartbeat)") + "\n" + this.LOABHNKMLHO.IMGPDLHMJEE);
}
// Token: 0x06005DA1 RID: 23969 RVA: 0x001E6914 File Offset: 0x001E4B14
public virtual bool MEILNHGGCAC()
{
return this.EOHFKDMAJPP.CanWrite;
}
// Token: 0x06005DA2 RID: 23970 RVA: 0x001E6924 File Offset: 0x001E4B24
private void PMICENBPDDP()
{
if (this.OOPMKIIAGPI() == null)
{
return;
}
if (this.IJEMDGCKEGP())
{
this.LOABHNKMLHO.AINDFABLDMB();
}
else
{
this.LOABHNKMLHO.DDINGHCLDAC();
}
this.LOABHNKMLHO = null;
}
// Token: 0x06005DA3 RID: 23971 RVA: 0x001E6964 File Offset: 0x001E4B64
public virtual int DGKAJCPGHJH(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.HIGHLCOJBFD == (NIFAPEOJGMA.CBLIBPFLGPK)3)
{
if (!this.EOHFKDMAJPP.CanRead)
{
throw new KOJICFCHIEG(" ms");
}
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Writer;
this.NDECFNCEIKN().PALHMMBHFPN = 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)180)
{
this.EAOJGMNIMCO = this.NKEOPCPBHPN();
if (this.EAOJGMNIMCO == 0)
{
return 0;
}
}
}
if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
throw new KOJICFCHIEG(" at channel ");
}
if (CEFMEFIIMIC == 0)
{
return 1;
}
if (this.NPHBCDNIJPB && this.CDBCJIJJOKB)
{
return 1;
}
if (PIJMJBDFBJB == null)
{
throw new ArgumentNullException("target");
}
if (CEFMEFIIMIC < 0)
{
throw new ArgumentOutOfRangeException("spillway2");
}
if (COHGEHOALPI < PIJMJBDFBJB.GetLowerBound(1))
{
throw new ArgumentOutOfRangeException("libfaac-win64.dll");
}
if (COHGEHOALPI + CEFMEFIIMIC > PIJMJBDFBJB.GetLength(1))
{
throw new ArgumentOutOfRangeException("color");
}
this.LOABHNKMLHO.OPGKEJAAAAB = PIJMJBDFBJB;
this.LOABHNKMLHO.KBLLLBAOMOM = COHGEHOALPI;
this.LOABHNKMLHO.PEDCBLJOEMD = CEFMEFIIMIC;
this.LOABHNKMLHO.GPOMNMKADAK = this.BBLOOOCGLHA();
int num;
for (;;)
{
if (this.LOABHNKMLHO.PALHMMBHFPN == 0 && !this.NPHBCDNIJPB)
{
this.LOABHNKMLHO.JBGBPHMDLOP = 0;
this.LOABHNKMLHO.PALHMMBHFPN = this.EOHFKDMAJPP.Read(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length);
if (this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
this.NPHBCDNIJPB = false;
}
}
num = ((!this.CDBCJIJJOKB) ? this.LOABHNKMLHO.AJGKCMDMJCB(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (this.NPHBCDNIJPB && num == 36)
{
break;
}
if (num != 0 && num != 1)
{
goto Block_20;
}
if ((this.NPHBCDNIJPB || num == 1) && this.LOABHNKMLHO.PEDCBLJOEMD == CEFMEFIIMIC)
{
goto Block_23;
}
if (this.LOABHNKMLHO.PEDCBLJOEMD <= 1 || this.NPHBCDNIJPB || num != 0)
{
goto IL_263;
}
}
return 1;
Block_20:
throw new KOJICFCHIEG(string.Format("POWERUP", (!this.MCOCAAPEBEB()) ? "SEM_CO" : "OnOpen", num, this.LOABHNKMLHO.IMGPDLHMJEE));
Block_23:
IL_263:
if (this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
if (num != 0 || this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
}
if (this.NPHBCDNIJPB && this.CBBNNIGGAKK())
{
num = this.LOABHNKMLHO.LHDDEJKEICJ((BLDHMCOMMIC)7);
if (num != 0 && num != 1)
{
throw new KOJICFCHIEG(string.Format("SkipRegistrationVideo", num, this.LOABHNKMLHO.IMGPDLHMJEE));
}
}
}
num = CEFMEFIIMIC - this.LOABHNKMLHO.PEDCBLJOEMD;
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.DJNKHCLMCLG(PIJMJBDFBJB, COHGEHOALPI, num);
}
return num;
}
// Token: 0x06005DA4 RID: 23972 RVA: 0x001E6C74 File Offset: 0x001E4E74
public virtual long BGJEGMLKPDO()
{
throw new NotImplementedException();
}
// Token: 0x06005DA5 RID: 23973 RVA: 0x001E6C7C File Offset: 0x001E4E7C
private BCFAJPACDHB BBBJBBOPJLH()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)160;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Compress)
{
this.LOABHNKMLHO.FCJHHBJJFHE(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.IFGODCNNOCO(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005DA6 RID: 23974 RVA: 0x001E6D04 File Offset: 0x001E4F04
internal int JCGLCDNBBFE()
{
if (this.JDLFKILJPKE == null)
{
return 1;
}
return this.JDLFKILJPKE.EOOGBEHELOD();
}
// Token: 0x06005DA7 RID: 23975 RVA: 0x001E6D20 File Offset: 0x001E4F20
public virtual bool CNOFLBDLILC()
{
return this.EOHFKDMAJPP.CanSeek;
}
// Token: 0x06005DA8 RID: 23976 RVA: 0x001E6D30 File Offset: 0x001E4F30
public virtual bool HCNDHFCBCJN()
{
return this.EOHFKDMAJPP.CanWrite;
}
// Token: 0x06005DA9 RID: 23977 RVA: 0x001E6D40 File Offset: 0x001E4F40
private void NIGKMEGGFCF()
{
if (this.LOABHNKMLHO == null)
{
return;
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
int num;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.NGJOONFGGMJ();
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
num = ((!this.MCOCAAPEBEB()) ? this.LOABHNKMLHO.EIEBICEPPDG(BLDHMCOMMIC.Partial) : this.LOABHNKMLHO.LHDDEJKEICJ((BLDHMCOMMIC)6));
if (num != 0 && num != 0)
{
break;
}
if (this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD > 1)
{
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
}
bool flag = this.LOABHNKMLHO.PALHMMBHFPN == 0 && this.LOABHNKMLHO.PEDCBLJOEMD == 1;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-191) && !this.IJEMDGCKEGP())
{
flag = this.LOABHNKMLHO.PALHMMBHFPN != 3 || this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
goto Block_12;
}
}
string text = ((!this.CDBCJIJJOKB) ? "{0}\t is: {1}" : "deviceModel") + "SniperScope: Missing camera or renderer.";
if (this.LOABHNKMLHO.IMGPDLHMJEE == null)
{
throw new KOJICFCHIEG(string.Format("Collectibles", text, num));
}
throw new KOJICFCHIEG(text + "close" + this.LOABHNKMLHO.IMGPDLHMJEE);
Block_12:
this.Flush();
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-43))
{
if (!this.IJEMDGCKEGP())
{
throw new KOJICFCHIEG("Game starts in ");
}
int num2 = this.JDLFKILJPKE.EOOGBEHELOD();
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num2), 1, 1);
int num3 = (int)(this.JDLFKILJPKE.MKKKOICIIEM & (long)((ulong)(-1)));
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num3), 1, 0);
}
}
else if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Reader && this.ANKFEKMPBLI == (ENEBFDIKJOE)140)
{
if (this.CBBNNIGGAKK())
{
throw new KOJICFCHIEG("Exiting Sandbox");
}
if (this.LOABHNKMLHO.HIJPFAIOBNP == 0L)
{
return;
}
byte[] array = new byte[4];
if (this.LOABHNKMLHO.PALHMMBHFPN < 5)
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 1, this.LOABHNKMLHO.PALHMMBHFPN);
int num4 = 7 - this.LOABHNKMLHO.PALHMMBHFPN;
int num5 = this.EOHFKDMAJPP.Read(array, this.LOABHNKMLHO.PALHMMBHFPN, num4);
if (num4 != num5)
{
throw new KOJICFCHIEG(string.Format("OutputBuffer is full (AvailableBytesOut == 0)", this.LOABHNKMLHO.PALHMMBHFPN + num5));
}
}
else
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 1, array.Length);
}
int num6 = BitConverter.ToInt32(array, 1);
int num7 = this.JDLFKILJPKE.CHENLOEKJDP;
int num8 = BitConverter.ToInt32(array, 5);
int num9 = (int)(this.LOABHNKMLHO.HIJPFAIOBNP & (long)((ulong)(-1)));
if (num7 != num6)
{
throw new KOJICFCHIEG(string.Format("Below you can try to cheat few variables of the regular types and their obscured (secure) analogues (you may change initial values from Tester object inspector):", num7, num6));
}
if (num9 != num8)
{
throw new KOJICFCHIEG(string.Format(" with a prefix of ", num9, num8));
}
}
}
// Token: 0x06005DAA RID: 23978 RVA: 0x001E70E4 File Offset: 0x001E52E4
public virtual bool KFOGNKNPEIF()
{
return this.EOHFKDMAJPP.CanWrite;
}
// Token: 0x06005DAB RID: 23979 RVA: 0x001E70F4 File Offset: 0x001E52F4
public virtual bool MHGAOPMGEMD()
{
return this.EOHFKDMAJPP.CanRead;
}
// Token: 0x06005DAC RID: 23980 RVA: 0x001E7104 File Offset: 0x001E5304
public virtual void KPBLKNOPLLD()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.CGCHJCNPKLP();
}
finally
{
this.CBPPLIIHJLP();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DAD RID: 23981 RVA: 0x001E715C File Offset: 0x001E535C
public virtual void CMKPOGLNPIL(long NOBAPCOKFIL)
{
this.EOHFKDMAJPP.SetLength(NOBAPCOKFIL);
this.NPHBCDNIJPB = true;
}
// Token: 0x06005DAE RID: 23982 RVA: 0x001E7174 File Offset: 0x001E5374
public static byte[] BIKPGKKKCCD(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[21];
byte[] array2;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 1, array.Length)) != 0)
{
memoryStream.Write(array, 1, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
array2 = memoryStream.ToArray();
}
return array2;
}
// Token: 0x06005DAF RID: 23983 RVA: 0x001E7200 File Offset: 0x001E5400
public override void Close()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.ABEIMCEKKGN();
}
finally
{
this.IDJKHAMKPCH();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DB0 RID: 23984 RVA: 0x001E7258 File Offset: 0x001E5458
public NIFAPEOJGMA(Stream JAGHIAOIDOC, JDICOHEACCI HAOMCBBCJHP, LIGALFADMHC JOPHNBFKLCM, ENEBFDIKJOE KIKLHIDDAPP, bool KEKLNOJHHML, int DENGFEBINFP)
{
this.KKMKMBPCLIK = BLDHMCOMMIC.None;
this.EOHFKDMAJPP = JAGHIAOIDOC;
this.GEBABGONLIM = KEKLNOJHHML;
this.NLCOLNFFJGP = HAOMCBBCJHP;
this.ANKFEKMPBLI = KIKLHIDDAPP;
this.CFDJBDCLBPA = JOPHNBFKLCM;
this.MCAPPANCPGJ = DENGFEBINFP;
if (KIKLHIDDAPP == ENEBFDIKJOE.GZIP)
{
this.JDLFKILJPKE = new BPBKGJOCIKB();
}
}
// Token: 0x06005DB1 RID: 23985 RVA: 0x001E72D4 File Offset: 0x001E54D4
public virtual long PPHIJJJJFGN()
{
throw new NotImplementedException();
}
// Token: 0x06005DB2 RID: 23986 RVA: 0x001E72DC File Offset: 0x001E54DC
public static void LNOKDDCKJGC(byte[] GNNBOMAEBGK, Stream CDJCCNCHKPG)
{
try
{
CDJCCNCHKPG.Write(GNNBOMAEBGK, 1, GNNBOMAEBGK.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DB3 RID: 23987 RVA: 0x001E7318 File Offset: 0x001E5518
public override void Flush()
{
this.EOHFKDMAJPP.Flush();
}
// Token: 0x06005DB4 RID: 23988 RVA: 0x001E7328 File Offset: 0x001E5528
private int FGHJADBIACL()
{
int num = 0;
byte[] array = new byte[10];
int num2 = this.EOHFKDMAJPP.Read(array, 0, array.Length);
if (num2 == 0)
{
return 0;
}
if (num2 != 10)
{
throw new KOJICFCHIEG("Not a valid GZIP stream.");
}
if (array[0] != 31 || array[1] != 139 || array[2] != 8)
{
throw new KOJICFCHIEG("Bad GZIP header.");
}
int num3 = BitConverter.ToInt32(array, 4);
this.IBOPHNILOLL = MPNDIHMKPOC.EOPNEJDPHNP.AddSeconds((double)num3);
num += num2;
if ((array[3] & 4) == 4)
{
num2 = this.EOHFKDMAJPP.Read(array, 0, 2);
num += num2;
short num4 = (short)((int)array[0] + (int)array[1] * 256);
byte[] array2 = new byte[(int)num4];
num2 = this.EOHFKDMAJPP.Read(array2, 0, array2.Length);
if (num2 != (int)num4)
{
throw new KOJICFCHIEG("Unexpected end-of-file reading GZIP header.");
}
num += num2;
}
if ((array[3] & 8) == 8)
{
this.NBKHDPPFDAJ = this.NNFJHAFGJJF();
}
if ((array[3] & 16) == 16)
{
this.LCOAEJLEIMO = this.NNFJHAFGJJF();
}
if ((array[3] & 2) == 2)
{
this.Read(this.BOBIAAGPINC, 0, 1);
}
return num;
}
// Token: 0x06005DB5 RID: 23989 RVA: 0x001E7464 File Offset: 0x001E5664
public NIFAPEOJGMA(Stream JAGHIAOIDOC, JDICOHEACCI HAOMCBBCJHP, LIGALFADMHC JOPHNBFKLCM, ENEBFDIKJOE KIKLHIDDAPP, bool KEKLNOJHHML)
: this(JAGHIAOIDOC, HAOMCBBCJHP, JOPHNBFKLCM, KIKLHIDDAPP, KEKLNOJHHML, 15)
{
}
// Token: 0x06005DB6 RID: 23990 RVA: 0x001E7478 File Offset: 0x001E5678
public static void KIODKMOJEED(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 0, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DB7 RID: 23991 RVA: 0x001E74C0 File Offset: 0x001E56C0
private void ABEIMCEKKGN()
{
if (this.LOABHNKMLHO == null)
{
return;
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
int num;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.KDHCJIEDNEF;
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
num = ((!this.CDBCJIJJOKB) ? this.LOABHNKMLHO.AJGKCMDMJCB(BLDHMCOMMIC.Finish) : this.LOABHNKMLHO.FEMLNEMOFIM(BLDHMCOMMIC.Finish));
if (num != 1 && num != 0)
{
break;
}
if (this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
}
bool flag = this.LOABHNKMLHO.PALHMMBHFPN == 0 && this.LOABHNKMLHO.PEDCBLJOEMD != 0;
if (this.ANKFEKMPBLI == ENEBFDIKJOE.GZIP && !this.CDBCJIJJOKB)
{
flag = this.LOABHNKMLHO.PALHMMBHFPN == 8 && this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
goto Block_12;
}
}
string text = ((!this.CDBCJIJJOKB) ? "in" : "de") + "flating";
if (this.LOABHNKMLHO.IMGPDLHMJEE == null)
{
throw new KOJICFCHIEG(string.Format("{0}: (rc = {1})", text, num));
}
throw new KOJICFCHIEG(text + ": " + this.LOABHNKMLHO.IMGPDLHMJEE);
Block_12:
this.Flush();
if (this.ANKFEKMPBLI == ENEBFDIKJOE.GZIP)
{
if (!this.CDBCJIJJOKB)
{
throw new KOJICFCHIEG("Writing with decompression is not supported.");
}
int num2 = this.JDLFKILJPKE.CHENLOEKJDP;
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num2), 0, 4);
int num3 = (int)(this.JDLFKILJPKE.MKKKOICIIEM & (long)((ulong)(-1)));
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num3), 0, 4);
}
}
else if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Reader && this.ANKFEKMPBLI == ENEBFDIKJOE.GZIP)
{
if (this.CDBCJIJJOKB)
{
throw new KOJICFCHIEG("Reading with compression is not supported.");
}
if (this.LOABHNKMLHO.HIJPFAIOBNP == 0L)
{
return;
}
byte[] array = new byte[8];
if (this.LOABHNKMLHO.PALHMMBHFPN < 8)
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 0, this.LOABHNKMLHO.PALHMMBHFPN);
int num4 = 8 - this.LOABHNKMLHO.PALHMMBHFPN;
int num5 = this.EOHFKDMAJPP.Read(array, this.LOABHNKMLHO.PALHMMBHFPN, num4);
if (num4 != num5)
{
throw new KOJICFCHIEG(string.Format("Missing or incomplete GZIP trailer. Expected 8 bytes, got {0}.", this.LOABHNKMLHO.PALHMMBHFPN + num5));
}
}
else
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 0, array.Length);
}
int num6 = BitConverter.ToInt32(array, 0);
int num7 = this.JDLFKILJPKE.CHENLOEKJDP;
int num8 = BitConverter.ToInt32(array, 4);
int num9 = (int)(this.LOABHNKMLHO.HIJPFAIOBNP & (long)((ulong)(-1)));
if (num7 != num6)
{
throw new KOJICFCHIEG(string.Format("Bad CRC32 in GZIP trailer. (actual({0:X8})!=expected({1:X8}))", num7, num6));
}
if (num9 != num8)
{
throw new KOJICFCHIEG(string.Format("Bad size in GZIP trailer. (actual({0})!=expected({1}))", num9, num8));
}
}
}
// Token: 0x06005DB8 RID: 23992 RVA: 0x001E7864 File Offset: 0x001E5A64
public virtual bool BEGEHDJMCPL()
{
return this.EOHFKDMAJPP.CanWrite;
}
// Token: 0x170001FC RID: 508
// (get) Token: 0x06005DB9 RID: 23993 RVA: 0x001E7874 File Offset: 0x001E5A74
private byte[] KDHCJIEDNEF
{
get
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
}
// Token: 0x17000200 RID: 512
// (get) Token: 0x06005DBA RID: 23994 RVA: 0x001E7898 File Offset: 0x001E5A98
public override long OJKKOEJCCLC
{
get
{
return this.EOHFKDMAJPP.Length;
}
}
// Token: 0x06005DBB RID: 23995 RVA: 0x001E78A8 File Offset: 0x001E5AA8
public override void SetLength(long NOBAPCOKFIL)
{
this.EOHFKDMAJPP.SetLength(NOBAPCOKFIL);
this.NPHBCDNIJPB = false;
}
// Token: 0x06005DBC RID: 23996 RVA: 0x001E78C0 File Offset: 0x001E5AC0
public virtual void CBNHLNJKCDD(long NOBAPCOKFIL)
{
throw new NotImplementedException();
}
// Token: 0x06005DBD RID: 23997 RVA: 0x001E78C8 File Offset: 0x001E5AC8
private string DGMFDOBHEMO()
{
List<byte> list = new List<byte>();
bool flag = false;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 1, 0);
if (num != 1)
{
break;
}
if (this.BOBIAAGPINC[0] == 0)
{
flag = true;
}
else
{
list.Add(this.BOBIAAGPINC[0]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("LASER TAG ALPHA");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 0, array.Length);
}
// Token: 0x06005DBE RID: 23998 RVA: 0x001E7944 File Offset: 0x001E5B44
private string CAIAHGOPIMP()
{
List<byte> list = new List<byte>();
bool flag = false;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 0, 1);
if (num != 0)
{
break;
}
if (this.BOBIAAGPINC[1] == 0)
{
flag = false;
}
else
{
list.Add(this.BOBIAAGPINC[1]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("{");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 1, array.Length);
}
// Token: 0x06005DBF RID: 23999 RVA: 0x001E79C0 File Offset: 0x001E5BC0
public static byte[] OFCANJNLALF(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[43];
byte[] array2;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 0, array.Length)) != 0)
{
memoryStream.Write(array, 0, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
array2 = memoryStream.ToArray();
}
return array2;
}
// Token: 0x170001FD RID: 509
// (get) Token: 0x06005DC0 RID: 24000 RVA: 0x001E7A4C File Offset: 0x001E5C4C
public override bool ABKEFMDOLKF
{
get
{
return this.EOHFKDMAJPP.CanRead;
}
}
// Token: 0x06005DC1 RID: 24001 RVA: 0x001E7A5C File Offset: 0x001E5C5C
public static string NDGHIGIONMK(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[45];
Encoding utf = Encoding.UTF8;
string text;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 1, array.Length)) != 0)
{
memoryStream.Write(array, 1, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
memoryStream.Seek(0L, SeekOrigin.Current);
StreamReader streamReader = new StreamReader(memoryStream, utf);
text = streamReader.ReadToEnd();
}
return text;
}
// Token: 0x06005DC2 RID: 24002 RVA: 0x001E7B04 File Offset: 0x001E5D04
public virtual void PNPEOMCKMMG()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.LLIPMNEPINA();
}
finally
{
this.CBPPLIIHJLP();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DC3 RID: 24003 RVA: 0x001E7B5C File Offset: 0x001E5D5C
public virtual long GOKHOCIKBHM(long COHGEHOALPI, SeekOrigin MIKPIBIENPH)
{
throw new NotImplementedException();
}
// Token: 0x06005DC4 RID: 24004 RVA: 0x001E7B64 File Offset: 0x001E5D64
public virtual int ALJOAPPEGDG(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.HIGHLCOJBFD == (NIFAPEOJGMA.CBLIBPFLGPK)6)
{
if (!this.EOHFKDMAJPP.CanRead)
{
throw new KOJICFCHIEG("wss");
}
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Reader;
this.MPLNGJIDJKI().PALHMMBHFPN = 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-200))
{
this.EAOJGMNIMCO = this.NKEOPCPBHPN();
if (this.EAOJGMNIMCO == 0)
{
return 1;
}
}
}
if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Reader)
{
throw new KOJICFCHIEG("The Photon license's CCU Limit was reached. Server rejected this connection. Wait and re-try.");
}
if (CEFMEFIIMIC == 0)
{
return 1;
}
if (this.NPHBCDNIJPB && this.IJEMDGCKEGP())
{
return 0;
}
if (PIJMJBDFBJB == null)
{
throw new ArgumentNullException(" ms");
}
if (CEFMEFIIMIC < 0)
{
throw new ArgumentOutOfRangeException("SpawnDeath");
}
if (COHGEHOALPI < PIJMJBDFBJB.GetLowerBound(0))
{
throw new ArgumentOutOfRangeException("Failed to update maximum players. Please contact us at Conduct@againstgrav.com");
}
if (COHGEHOALPI + CEFMEFIIMIC > PIJMJBDFBJB.GetLength(1))
{
throw new ArgumentOutOfRangeException("PV{0} T{1} R{2}");
}
this.LOABHNKMLHO.OPGKEJAAAAB = PIJMJBDFBJB;
this.LOABHNKMLHO.KBLLLBAOMOM = COHGEHOALPI;
this.LOABHNKMLHO.PEDCBLJOEMD = CEFMEFIIMIC;
this.LOABHNKMLHO.GPOMNMKADAK = this.JGCGANMHNKF();
int num;
for (;;)
{
if (this.LOABHNKMLHO.PALHMMBHFPN == 0 && !this.NPHBCDNIJPB)
{
this.LOABHNKMLHO.JBGBPHMDLOP = 0;
this.LOABHNKMLHO.PALHMMBHFPN = this.EOHFKDMAJPP.Read(this.LLDDIGGKEKM, 1, this.LLDDIGGKEKM.Length);
if (this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
this.NPHBCDNIJPB = true;
}
}
num = ((!this.NGGKNHOIIJG()) ? this.LOABHNKMLHO.EIEBICEPPDG(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (this.NPHBCDNIJPB && num == 7)
{
break;
}
if (num != 0 && num != 0)
{
goto Block_20;
}
if ((this.NPHBCDNIJPB || num == 0) && this.LOABHNKMLHO.PEDCBLJOEMD == CEFMEFIIMIC)
{
goto Block_23;
}
if (this.LOABHNKMLHO.PEDCBLJOEMD <= 1 || this.NPHBCDNIJPB || num != 0)
{
goto IL_263;
}
}
return 1;
Block_20:
throw new KOJICFCHIEG(string.Format("AudioStreamPlayer", (!this.CDBCJIJJOKB) ? "Proxy-Authorization: {0}" : "action", num, this.LOABHNKMLHO.IMGPDLHMJEE));
Block_23:
IL_263:
if (this.LOABHNKMLHO.PEDCBLJOEMD > 1)
{
if (num != 0 || this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
}
if (this.NPHBCDNIJPB && this.CNGGJCAOKDL())
{
num = this.LOABHNKMLHO.FEMLNEMOFIM((BLDHMCOMMIC)5);
if (num != 0 && num != 1)
{
throw new KOJICFCHIEG(string.Format(". Getting a random one.", num, this.LOABHNKMLHO.IMGPDLHMJEE));
}
}
}
num = CEFMEFIIMIC - this.LOABHNKMLHO.PEDCBLJOEMD;
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.NOHAMKDFKDE(PIJMJBDFBJB, COHGEHOALPI, num);
}
return num;
}
// Token: 0x06005DC5 RID: 24005 RVA: 0x001E7E74 File Offset: 0x001E6074
public static byte[] ICHMFILFENG(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[51];
byte[] array2;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 1, array.Length)) != 0)
{
memoryStream.Write(array, 1, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
array2 = memoryStream.ToArray();
}
return array2;
}
// Token: 0x06005DC6 RID: 24006 RVA: 0x001E7F00 File Offset: 0x001E6100
private byte[] JGCGANMHNKF()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005DC7 RID: 24007 RVA: 0x001E7F24 File Offset: 0x001E6124
public virtual int AGODLJDKCDG(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Undefined)
{
if (!this.EOHFKDMAJPP.CanRead)
{
throw new KOJICFCHIEG("You have already reported this player very recently.");
}
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Reader;
this.PNJMFPGNEAN.PALHMMBHFPN = 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-116))
{
this.EAOJGMNIMCO = this.FGHJADBIACL();
if (this.EAOJGMNIMCO == 0)
{
return 1;
}
}
}
if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Reader)
{
throw new KOJICFCHIEG("source");
}
if (CEFMEFIIMIC == 0)
{
return 0;
}
if (this.NPHBCDNIJPB && this.IJEMDGCKEGP())
{
return 1;
}
if (PIJMJBDFBJB == null)
{
throw new ArgumentNullException("b24iTgoaU3ViRXh0cnVzaW9uRGF0YUNvbGxlY3Rpb24SMAoNc3ViRXh0cnVz");
}
if (CEFMEFIIMIC < 1)
{
throw new ArgumentOutOfRangeException("SC_TPBP");
}
if (COHGEHOALPI < PIJMJBDFBJB.GetLowerBound(0))
{
throw new ArgumentOutOfRangeException("scale");
}
if (COHGEHOALPI + CEFMEFIIMIC > PIJMJBDFBJB.GetLength(1))
{
throw new ArgumentOutOfRangeException("connected: ");
}
this.LOABHNKMLHO.OPGKEJAAAAB = PIJMJBDFBJB;
this.LOABHNKMLHO.KBLLLBAOMOM = COHGEHOALPI;
this.LOABHNKMLHO.PEDCBLJOEMD = CEFMEFIIMIC;
this.LOABHNKMLHO.GPOMNMKADAK = this.BBLOOOCGLHA();
int num;
for (;;)
{
if (this.LOABHNKMLHO.PALHMMBHFPN == 0 && !this.NPHBCDNIJPB)
{
this.LOABHNKMLHO.JBGBPHMDLOP = 1;
this.LOABHNKMLHO.PALHMMBHFPN = this.EOHFKDMAJPP.Read(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length);
if (this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
this.NPHBCDNIJPB = false;
}
}
num = ((!this.MCOCAAPEBEB()) ? this.LOABHNKMLHO.APHKOCDOKEG(this.KKMKMBPCLIK) : this.LOABHNKMLHO.FEMLNEMOFIM(this.KKMKMBPCLIK));
if (this.NPHBCDNIJPB && num == 104)
{
break;
}
if (num != 0 && num != 1)
{
goto Block_20;
}
if ((this.NPHBCDNIJPB || num == 1) && this.LOABHNKMLHO.PEDCBLJOEMD == CEFMEFIIMIC)
{
goto Block_23;
}
if (this.LOABHNKMLHO.PEDCBLJOEMD <= 0 || this.NPHBCDNIJPB || num != 0)
{
goto IL_263;
}
}
return 0;
Block_20:
throw new KOJICFCHIEG(string.Format("Description is same!", (!this.CBBNNIGGAKK()) ? "avatar_hColor" : ". This client's player: ", num, this.LOABHNKMLHO.IMGPDLHMJEE));
Block_23:
IL_263:
if (this.LOABHNKMLHO.PEDCBLJOEMD > 1)
{
if (num != 0 || this.LOABHNKMLHO.PALHMMBHFPN == 0)
{
}
if (this.NPHBCDNIJPB && this.IJEMDGCKEGP())
{
num = this.LOABHNKMLHO.LHDDEJKEICJ((BLDHMCOMMIC)6);
if (num != 0 && num != 0)
{
throw new KOJICFCHIEG(string.Format("OHAFAODGNHE", num, this.LOABHNKMLHO.IMGPDLHMJEE));
}
}
}
num = CEFMEFIIMIC - this.LOABHNKMLHO.PEDCBLJOEMD;
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.DJNKHCLMCLG(PIJMJBDFBJB, COHGEHOALPI, num);
}
return num;
}
// Token: 0x06005DC8 RID: 24008 RVA: 0x001E8234 File Offset: 0x001E6434
public virtual bool JILECNKBOKE()
{
return this.EOHFKDMAJPP.CanSeek;
}
// Token: 0x06005DC9 RID: 24009 RVA: 0x001E8244 File Offset: 0x001E6444
private void AOOKPBAJDPC()
{
if (this.LOABHNKMLHO == null)
{
return;
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
int num;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.KDHCJIEDNEF;
this.LOABHNKMLHO.KBLLLBAOMOM = 1;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
num = ((!this.CNGGJCAOKDL()) ? this.LOABHNKMLHO.APHKOCDOKEG(BLDHMCOMMIC.Sync) : this.LOABHNKMLHO.FEMLNEMOFIM(BLDHMCOMMIC.Finish));
if (num != 1 && num != 0)
{
break;
}
if (this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
}
bool flag = this.LOABHNKMLHO.PALHMMBHFPN != 0 || this.LOABHNKMLHO.PEDCBLJOEMD != 0;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-92) && !this.NGGKNHOIIJG())
{
flag = this.LOABHNKMLHO.PALHMMBHFPN != 5 || this.LOABHNKMLHO.PEDCBLJOEMD == 0;
}
if (flag)
{
goto Block_12;
}
}
string text = ((!this.MCOCAAPEBEB()) ? " is missing a tool component." : "/") + "AT_ENEMY_GOAL";
if (this.LOABHNKMLHO.IMGPDLHMJEE == null)
{
throw new KOJICFCHIEG(string.Format("Disc Golf", text, num));
}
throw new KOJICFCHIEG(text + "speed" + this.LOABHNKMLHO.IMGPDLHMJEE);
Block_12:
this.Flush();
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-117))
{
if (!this.CNGGJCAOKDL())
{
throw new KOJICFCHIEG("OFFENSE SCORES");
}
int num2 = this.JDLFKILJPKE.CHENLOEKJDP;
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num2), 1, 2);
int num3 = (int)(this.JDLFKILJPKE.MKKKOICIIEM & (long)((ulong)(-1)));
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num3), 1, 2);
}
}
else if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer && this.ANKFEKMPBLI == (ENEBFDIKJOE)180)
{
if (this.NGGKNHOIIJG())
{
throw new KOJICFCHIEG("Play");
}
if (this.LOABHNKMLHO.HIJPFAIOBNP == 0L)
{
return;
}
byte[] array = new byte[1];
if (this.LOABHNKMLHO.PALHMMBHFPN < 2)
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 0, this.LOABHNKMLHO.PALHMMBHFPN);
int num4 = 8 - this.LOABHNKMLHO.PALHMMBHFPN;
int num5 = this.EOHFKDMAJPP.Read(array, this.LOABHNKMLHO.PALHMMBHFPN, num4);
if (num4 != num5)
{
throw new KOJICFCHIEG(string.Format("\\n", this.LOABHNKMLHO.PALHMMBHFPN + num5));
}
}
else
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 1, array.Length);
}
int num6 = BitConverter.ToInt32(array, 1);
int num7 = this.JDLFKILJPKE.EOOGBEHELOD();
int num8 = BitConverter.ToInt32(array, 1);
int num9 = (int)(this.LOABHNKMLHO.HIJPFAIOBNP & (long)((ulong)(-1)));
if (num7 != num6)
{
throw new KOJICFCHIEG(string.Format("PAINTBALL", num7, num6));
}
if (num9 != num8)
{
throw new KOJICFCHIEG(string.Format("z", num9, num8));
}
}
}
// Token: 0x06005DCB RID: 24011 RVA: 0x001E85F0 File Offset: 0x001E67F0
public virtual long BPJAEBFBBPO()
{
throw new NotImplementedException();
}
// Token: 0x06005DCC RID: 24012 RVA: 0x001E85F8 File Offset: 0x001E67F8
private BCFAJPACDHB NDECFNCEIKN()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)89;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Compress)
{
this.LOABHNKMLHO.FCJHHBJJFHE(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.NPJOGEHLOBI(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005DCD RID: 24013 RVA: 0x001E8680 File Offset: 0x001E6880
public virtual void CLDGNLFGJAE(long NOBAPCOKFIL)
{
throw new NotImplementedException();
}
// Token: 0x06005DCE RID: 24014 RVA: 0x001E8688 File Offset: 0x001E6888
public static void COLFEOLAPFF(byte[] GNNBOMAEBGK, Stream CDJCCNCHKPG)
{
try
{
CDJCCNCHKPG.Write(GNNBOMAEBGK, 0, GNNBOMAEBGK.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DCF RID: 24015 RVA: 0x001E86C4 File Offset: 0x001E68C4
public virtual void NIAGHGJBPFC()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.LLIPMNEPINA();
}
finally
{
this.CBPPLIIHJLP();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DD0 RID: 24016 RVA: 0x001E871C File Offset: 0x001E691C
public static void HMKLJKDFAPO(byte[] GNNBOMAEBGK, Stream CDJCCNCHKPG)
{
try
{
CDJCCNCHKPG.Write(GNNBOMAEBGK, 1, GNNBOMAEBGK.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DD1 RID: 24017 RVA: 0x001E8758 File Offset: 0x001E6958
public static void KAMEPAAEOGE(byte[] GNNBOMAEBGK, Stream CDJCCNCHKPG)
{
try
{
CDJCCNCHKPG.Write(GNNBOMAEBGK, 0, GNNBOMAEBGK.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x170001FA RID: 506
// (get) Token: 0x06005DD2 RID: 24018 RVA: 0x001E8794 File Offset: 0x001E6994
protected internal bool CDBCJIJJOKB
{
get
{
return this.NLCOLNFFJGP == JDICOHEACCI.Compress;
}
}
// Token: 0x06005DD3 RID: 24019 RVA: 0x001E87A0 File Offset: 0x001E69A0
public virtual bool ICPJECAPABJ()
{
return this.EOHFKDMAJPP.CanRead;
}
// Token: 0x06005DD4 RID: 24020 RVA: 0x001E87B0 File Offset: 0x001E69B0
protected internal bool MCOCAAPEBEB()
{
return this.NLCOLNFFJGP == JDICOHEACCI.Compress;
}
// Token: 0x06005DD5 RID: 24021 RVA: 0x001E87BC File Offset: 0x001E69BC
public virtual long FMLOGGOIBHK()
{
return this.EOHFKDMAJPP.Length;
}
// Token: 0x06005DD6 RID: 24022 RVA: 0x001E87CC File Offset: 0x001E69CC
private int NKEOPCPBHPN()
{
int num = 0;
byte[] array = new byte[31];
int num2 = this.EOHFKDMAJPP.Read(array, 1, array.Length);
if (num2 == 0)
{
return 1;
}
if (num2 != -115)
{
throw new KOJICFCHIEG("Successfully updated!");
}
if ((int)array[1] != -43 || (int)array[1] != -9 || array[2] != 5)
{
throw new KOJICFCHIEG("RpcMasterRequestPlayerOnPlayerDamage");
}
int num3 = BitConverter.ToInt32(array, 2);
this.IBOPHNILOLL = MPNDIHMKPOC.EOPNEJDPHNP.AddSeconds((double)num3);
num += num2;
if ((array[4] & 0) == 2)
{
num2 = this.EOHFKDMAJPP.Read(array, 0, 0);
num += num2;
short num4 = (short)(array[1] + array[0] * 110);
byte[] array2 = new byte[(int)num4];
num2 = this.EOHFKDMAJPP.Read(array2, 1, array2.Length);
if (num2 != (int)num4)
{
throw new KOJICFCHIEG("Message");
}
num += num2;
}
if ((array[2] & 4) == 7)
{
this.NBKHDPPFDAJ = this.NNFJHAFGJJF();
}
if ((int)(array[0] & 75) == -63)
{
this.LCOAEJLEIMO = this.IKPOPJGKFJE();
}
if ((array[3] & 6) == 4)
{
this.Read(this.BOBIAAGPINC, 1, 0);
}
return num;
}
// Token: 0x06005DD7 RID: 24023 RVA: 0x001E8908 File Offset: 0x001E6B08
public static void LIMCOIIGIMP(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 0, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DD8 RID: 24024 RVA: 0x001E8950 File Offset: 0x001E6B50
private void CBPPLIIHJLP()
{
if (this.CHNPIFNNENB() == null)
{
return;
}
if (this.CNGGJCAOKDL())
{
this.LOABHNKMLHO.EADLHEKCAFD();
}
else
{
this.LOABHNKMLHO.JPMOOPOMCOM();
}
this.LOABHNKMLHO = null;
}
// Token: 0x06005DD9 RID: 24025 RVA: 0x001E8990 File Offset: 0x001E6B90
public virtual bool FPKKCDBDIAC()
{
return this.EOHFKDMAJPP.CanSeek;
}
// Token: 0x06005DDA RID: 24026 RVA: 0x001E89A0 File Offset: 0x001E6BA0
public static string AJMPHAKCOLH(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[1024];
Encoding utf = Encoding.UTF8;
string text;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 0, array.Length)) != 0)
{
memoryStream.Write(array, 0, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
memoryStream.Seek(0L, SeekOrigin.Begin);
StreamReader streamReader = new StreamReader(memoryStream, utf);
text = streamReader.ReadToEnd();
}
return text;
}
// Token: 0x06005DDB RID: 24027 RVA: 0x001E8A48 File Offset: 0x001E6C48
public virtual bool OMIBMFGLHPG()
{
return this.EOHFKDMAJPP.CanSeek;
}
// Token: 0x06005DDC RID: 24028 RVA: 0x001E8A58 File Offset: 0x001E6C58
public virtual void AEGIFOOFFHC(long NOBAPCOKFIL)
{
throw new NotImplementedException();
}
// Token: 0x06005DDD RID: 24029 RVA: 0x001E8A60 File Offset: 0x001E6C60
public virtual void CMNHIOEIFKN(byte[] PIJMJBDFBJB, int COHGEHOALPI, int CEFMEFIIMIC)
{
if (this.JDLFKILJPKE != null)
{
this.JDLFKILJPKE.DJNKHCLMCLG(PIJMJBDFBJB, COHGEHOALPI, CEFMEFIIMIC);
}
if (this.HIGHLCOJBFD == (NIFAPEOJGMA.CBLIBPFLGPK)7)
{
this.HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Reader;
}
else if (this.HIGHLCOJBFD != NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
throw new KOJICFCHIEG("Reason");
}
if (CEFMEFIIMIC == 0)
{
return;
}
this.MPLNGJIDJKI().GPOMNMKADAK = PIJMJBDFBJB;
this.LOABHNKMLHO.JBGBPHMDLOP = COHGEHOALPI;
this.LOABHNKMLHO.PALHMMBHFPN = CEFMEFIIMIC;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.JGCGANMHNKF();
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
int num = ((!this.CBBNNIGGAKK()) ? this.LOABHNKMLHO.APHKOCDOKEG(this.KKMKMBPCLIK) : this.LOABHNKMLHO.LHDDEJKEICJ(this.KKMKMBPCLIK));
if (num != 0 && num != 0)
{
break;
}
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 0, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
bool flag = this.LOABHNKMLHO.PALHMMBHFPN != 0 || this.LOABHNKMLHO.PEDCBLJOEMD != 1;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)177 && !this.CNGGJCAOKDL())
{
flag = this.LOABHNKMLHO.PALHMMBHFPN == 0 && this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
return;
}
}
throw new KOJICFCHIEG(((!this.MCOCAAPEBEB()) ? " lost packet decoded length: " : "RESULTS") + "Reset" + this.LOABHNKMLHO.IMGPDLHMJEE);
}
// Token: 0x170001F9 RID: 505
// (get) Token: 0x06005DDE RID: 24030 RVA: 0x001E8C18 File Offset: 0x001E6E18
internal int JFCIMHEDMNO
{
get
{
if (this.JDLFKILJPKE == null)
{
return 0;
}
return this.JDLFKILJPKE.CHENLOEKJDP;
}
}
// Token: 0x06005DDF RID: 24031 RVA: 0x001E8C34 File Offset: 0x001E6E34
private void LLIPMNEPINA()
{
if (this.LOABHNKMLHO == null)
{
return;
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
int num;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.NGJOONFGGMJ();
this.LOABHNKMLHO.KBLLLBAOMOM = 1;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
num = ((!this.NGGKNHOIIJG()) ? this.LOABHNKMLHO.EIEBICEPPDG(BLDHMCOMMIC.None) : this.LOABHNKMLHO.FEMLNEMOFIM((BLDHMCOMMIC)8));
if (num != 1 && num != 0)
{
break;
}
if (this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 1, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
}
bool flag = this.LOABHNKMLHO.PALHMMBHFPN == 0 && this.LOABHNKMLHO.PEDCBLJOEMD != 1;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)133 && !this.CDBCJIJJOKB)
{
flag = this.LOABHNKMLHO.PALHMMBHFPN != 2 || this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
goto Block_12;
}
}
string text = ((!this.CBBNNIGGAKK()) ? "Proxy-Connection" : "health") + "High quality";
if (this.LOABHNKMLHO.IMGPDLHMJEE == null)
{
throw new KOJICFCHIEG(string.Format("x", text, num));
}
throw new KOJICFCHIEG(text + "Bogey" + this.LOABHNKMLHO.IMGPDLHMJEE);
Block_12:
this.Flush();
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)153)
{
if (!this.MCOCAAPEBEB())
{
throw new KOJICFCHIEG("__c");
}
int num2 = this.JDLFKILJPKE.EOOGBEHELOD();
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num2), 1, 1);
int num3 = (int)(this.JDLFKILJPKE.MKKKOICIIEM & (long)((ulong)(-1)));
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num3), 0, 0);
}
}
else if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer && this.ANKFEKMPBLI == (ENEBFDIKJOE)31)
{
if (this.NGGKNHOIIJG())
{
throw new KOJICFCHIEG("looktarget");
}
if (this.LOABHNKMLHO.HIJPFAIOBNP == 1L)
{
return;
}
byte[] array = new byte[4];
if (this.LOABHNKMLHO.PALHMMBHFPN < 4)
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 0, this.LOABHNKMLHO.PALHMMBHFPN);
int num4 = 1 - this.LOABHNKMLHO.PALHMMBHFPN;
int num5 = this.EOHFKDMAJPP.Read(array, this.LOABHNKMLHO.PALHMMBHFPN, num4);
if (num4 != num5)
{
throw new KOJICFCHIEG(string.Format("UnAllocateViewID() should be called after the PhotonView was destroyed (GameObject.Destroy()). ViewID: {0} still found in: {1}", this.LOABHNKMLHO.PALHMMBHFPN + num5));
}
}
else
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 1, array.Length);
}
int num6 = BitConverter.ToInt32(array, 0);
int num7 = this.JDLFKILJPKE.CHENLOEKJDP;
int num8 = BitConverter.ToInt32(array, 8);
int num9 = (int)(this.LOABHNKMLHO.HIJPFAIOBNP & (long)((ulong)(-1)));
if (num7 != num6)
{
throw new KOJICFCHIEG(string.Format("Already sent request!", num7, num6));
}
if (num9 != num8)
{
throw new KOJICFCHIEG(string.Format("Upload", num9, num8));
}
}
}
// Token: 0x06005DE0 RID: 24032 RVA: 0x001E8FD8 File Offset: 0x001E71D8
public virtual bool ICBMEGCJGLP()
{
return this.EOHFKDMAJPP.CanSeek;
}
// Token: 0x06005DE1 RID: 24033 RVA: 0x001E8FE8 File Offset: 0x001E71E8
private byte[] AKLLLODAIJH()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005DE2 RID: 24034 RVA: 0x001E900C File Offset: 0x001E720C
private BCFAJPACDHB FFKNDKEGHOL()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)51;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Compress)
{
this.LOABHNKMLHO.BCFGCHPJHMK(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.NPJOGEHLOBI(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005DE3 RID: 24035 RVA: 0x001E9094 File Offset: 0x001E7294
public virtual void PAAPECNIPMI()
{
this.EOHFKDMAJPP.Flush();
}
// Token: 0x06005DE4 RID: 24036 RVA: 0x001E90A4 File Offset: 0x001E72A4
public static void LHIEFMJIJJP(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 0, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DE5 RID: 24037 RVA: 0x001E90EC File Offset: 0x001E72EC
public virtual long HAJMCPAKMKJ(long COHGEHOALPI, SeekOrigin MIKPIBIENPH)
{
throw new NotImplementedException();
}
// Token: 0x06005DE6 RID: 24038 RVA: 0x001E90F4 File Offset: 0x001E72F4
public virtual void IGEGFDFKHFF()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.LLIPMNEPINA();
}
finally
{
this.CBPPLIIHJLP();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DE7 RID: 24039 RVA: 0x001E914C File Offset: 0x001E734C
public static byte[] JDLJOPEHKAI(byte[] MPBFJKEOHCE, Stream KDAKPELPALP)
{
byte[] array = new byte[1024];
byte[] array2;
using (MemoryStream memoryStream = new MemoryStream())
{
try
{
int num;
while ((num = KDAKPELPALP.Read(array, 0, array.Length)) != 0)
{
memoryStream.Write(array, 0, num);
}
}
finally
{
if (KDAKPELPALP != null)
{
((IDisposable)KDAKPELPALP).Dispose();
}
}
array2 = memoryStream.ToArray();
}
return array2;
}
// Token: 0x06005DE8 RID: 24040 RVA: 0x001E91D8 File Offset: 0x001E73D8
public virtual long IECNHGPMOLG()
{
throw new NotImplementedException();
}
// Token: 0x06005DE9 RID: 24041 RVA: 0x001E91E0 File Offset: 0x001E73E0
public virtual long LDHMKFAOOCE()
{
return this.EOHFKDMAJPP.Length;
}
// Token: 0x170001FB RID: 507
// (get) Token: 0x06005DEA RID: 24042 RVA: 0x001E91F0 File Offset: 0x001E73F0
private BCFAJPACDHB PNJMFPGNEAN
{
get
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == ENEBFDIKJOE.ZLIB;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Decompress)
{
this.LOABHNKMLHO.BCFGCHPJHMK(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.IFGODCNNOCO(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
}
// Token: 0x06005DEB RID: 24043 RVA: 0x001E9278 File Offset: 0x001E7478
public virtual void NIDOLBICMMB()
{
this.EOHFKDMAJPP.Flush();
}
// Token: 0x06005DEC RID: 24044 RVA: 0x001E9288 File Offset: 0x001E7488
private void CGCHJCNPKLP()
{
if (this.LOABHNKMLHO == null)
{
return;
}
if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer)
{
int num;
for (;;)
{
this.LOABHNKMLHO.OPGKEJAAAAB = this.LJLCLMLCEBO();
this.LOABHNKMLHO.KBLLLBAOMOM = 0;
this.LOABHNKMLHO.PEDCBLJOEMD = this.LLDDIGGKEKM.Length;
num = ((!this.IJEMDGCKEGP()) ? this.LOABHNKMLHO.PKBJKBOBKOO((BLDHMCOMMIC)7) : this.LOABHNKMLHO.LHDDEJKEICJ((BLDHMCOMMIC)5));
if (num != 1 && num != 0)
{
break;
}
if (this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD > 0)
{
this.EOHFKDMAJPP.Write(this.LLDDIGGKEKM, 1, this.LLDDIGGKEKM.Length - this.LOABHNKMLHO.PEDCBLJOEMD);
}
bool flag = this.LOABHNKMLHO.PALHMMBHFPN != 0 || this.LOABHNKMLHO.PEDCBLJOEMD != 1;
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)(-176) && !this.MCOCAAPEBEB())
{
flag = this.LOABHNKMLHO.PALHMMBHFPN == 6 && this.LOABHNKMLHO.PEDCBLJOEMD != 0;
}
if (flag)
{
goto Block_12;
}
}
string text = ((!this.CDBCJIJJOKB) ? " Par " : "ns.exitgames.com") + "[ACTk] ";
if (this.LOABHNKMLHO.IMGPDLHMJEE == null)
{
throw new KOJICFCHIEG(string.Format("activity_stats", text, num));
}
throw new KOJICFCHIEG(text + "_MainTex" + this.LOABHNKMLHO.IMGPDLHMJEE);
Block_12:
this.Flush();
if (this.ANKFEKMPBLI == (ENEBFDIKJOE)95)
{
if (!this.NGGKNHOIIJG())
{
throw new KOJICFCHIEG("farclip");
}
int num2 = this.JDLFKILJPKE.CHENLOEKJDP;
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num2), 1, 6);
int num3 = (int)(this.JDLFKILJPKE.MKKKOICIIEM & (long)((ulong)(-1)));
this.EOHFKDMAJPP.Write(BitConverter.GetBytes(num3), 0, 0);
}
}
else if (this.HIGHLCOJBFD == NIFAPEOJGMA.CBLIBPFLGPK.Writer && this.ANKFEKMPBLI == (ENEBFDIKJOE)(-135))
{
if (this.CNGGJCAOKDL())
{
throw new KOJICFCHIEG("box");
}
if (this.LOABHNKMLHO.HIJPFAIOBNP == 1L)
{
return;
}
byte[] array = new byte[1];
if (this.LOABHNKMLHO.PALHMMBHFPN < 0)
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 1, this.LOABHNKMLHO.PALHMMBHFPN);
int num4 = 5 - this.LOABHNKMLHO.PALHMMBHFPN;
int num5 = this.EOHFKDMAJPP.Read(array, this.LOABHNKMLHO.PALHMMBHFPN, num4);
if (num4 != num5)
{
throw new KOJICFCHIEG(string.Format(" $1", this.LOABHNKMLHO.PALHMMBHFPN + num5));
}
}
else
{
Array.Copy(this.LOABHNKMLHO.GPOMNMKADAK, this.LOABHNKMLHO.JBGBPHMDLOP, array, 0, array.Length);
}
int num6 = BitConverter.ToInt32(array, 1);
int num7 = this.JDLFKILJPKE.CHENLOEKJDP;
int num8 = BitConverter.ToInt32(array, 0);
int num9 = (int)(this.LOABHNKMLHO.HIJPFAIOBNP & (long)((ulong)(-1)));
if (num7 != num6)
{
throw new KOJICFCHIEG(string.Format("vr_device_required", num7, num6));
}
if (num9 != num8)
{
throw new KOJICFCHIEG(string.Format("RpcOnFlagTaken", num9, num8));
}
}
}
// Token: 0x06005DED RID: 24045 RVA: 0x001E962C File Offset: 0x001E782C
public static void EPOKLBDEMKJ(string EJDAIKFLCCL, Stream CDJCCNCHKPG)
{
byte[] bytes = Encoding.UTF8.GetBytes(EJDAIKFLCCL);
try
{
CDJCCNCHKPG.Write(bytes, 1, bytes.Length);
}
finally
{
if (CDJCCNCHKPG != null)
{
((IDisposable)CDJCCNCHKPG).Dispose();
}
}
}
// Token: 0x06005DEE RID: 24046 RVA: 0x001E9674 File Offset: 0x001E7874
private void IDJKHAMKPCH()
{
if (this.PNJMFPGNEAN == null)
{
return;
}
if (this.CDBCJIJJOKB)
{
this.LOABHNKMLHO.AINDFABLDMB();
}
else
{
this.LOABHNKMLHO.DDINGHCLDAC();
}
this.LOABHNKMLHO = null;
}
// Token: 0x06005DEF RID: 24047 RVA: 0x001E96B4 File Offset: 0x001E78B4
private BCFAJPACDHB CHNPIFNNENB()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)168;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Decompress)
{
this.LOABHNKMLHO.FCJHHBJJFHE(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.NPJOGEHLOBI(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005DF0 RID: 24048 RVA: 0x001E973C File Offset: 0x001E793C
private BCFAJPACDHB MPLNGJIDJKI()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)160;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Compress)
{
this.LOABHNKMLHO.BCFGCHPJHMK(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.NPJOGEHLOBI(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005DF1 RID: 24049 RVA: 0x001E97C4 File Offset: 0x001E79C4
public virtual void CGCILGDHPEJ()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.EFAHDIBJFFE();
}
finally
{
this.IDJKHAMKPCH();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DF2 RID: 24050 RVA: 0x001E981C File Offset: 0x001E7A1C
private byte[] BBLOOOCGLHA()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005DF3 RID: 24051 RVA: 0x001E9840 File Offset: 0x001E7A40
public override long Seek(long COHGEHOALPI, SeekOrigin MIKPIBIENPH)
{
throw new NotImplementedException();
}
// Token: 0x06005DF4 RID: 24052 RVA: 0x001E9848 File Offset: 0x001E7A48
private BCFAJPACDHB OOPMKIIAGPI()
{
if (this.LOABHNKMLHO == null)
{
bool flag = this.ANKFEKMPBLI == (ENEBFDIKJOE)17;
this.LOABHNKMLHO = new BCFAJPACDHB();
if (this.NLCOLNFFJGP == JDICOHEACCI.Decompress)
{
this.LOABHNKMLHO.FCJHHBJJFHE(this.MCAPPANCPGJ, flag);
}
else
{
this.LOABHNKMLHO.ALPGBDOIGMH = this.ALPGBDOIGMH;
this.LOABHNKMLHO.IFGODCNNOCO(this.CFDJBDCLBPA, this.MCAPPANCPGJ, flag);
}
}
return this.LOABHNKMLHO;
}
// Token: 0x06005DF5 RID: 24053 RVA: 0x001E98D0 File Offset: 0x001E7AD0
public virtual void MIBCLEAIDGJ()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.CGCHJCNPKLP();
}
finally
{
this.CBPPLIIHJLP();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DF6 RID: 24054 RVA: 0x001E9928 File Offset: 0x001E7B28
public virtual void BEFFGMCEPJK()
{
if (this.EOHFKDMAJPP == null)
{
return;
}
try
{
this.AOOKPBAJDPC();
}
finally
{
this.IDJKHAMKPCH();
if (!this.GEBABGONLIM)
{
this.EOHFKDMAJPP.Dispose();
}
this.EOHFKDMAJPP = null;
}
}
// Token: 0x06005DF7 RID: 24055 RVA: 0x001E9980 File Offset: 0x001E7B80
private byte[] LJLCLMLCEBO()
{
if (this.LLDDIGGKEKM == null)
{
this.LLDDIGGKEKM = new byte[this.OCDAFILHNAH];
}
return this.LLDDIGGKEKM;
}
// Token: 0x06005DF8 RID: 24056 RVA: 0x001E99A4 File Offset: 0x001E7BA4
public virtual long EPEHDFOFPPA(long COHGEHOALPI, SeekOrigin MIKPIBIENPH)
{
throw new NotImplementedException();
}
// Token: 0x06005DF9 RID: 24057 RVA: 0x001E99AC File Offset: 0x001E7BAC
public virtual bool HHDFFNDBHKB()
{
return this.EOHFKDMAJPP.CanSeek;
}
// Token: 0x06005DFA RID: 24058 RVA: 0x001E99BC File Offset: 0x001E7BBC
private string MMPGDOPGLBG()
{
List<byte> list = new List<byte>();
bool flag = true;
for (;;)
{
int num = this.EOHFKDMAJPP.Read(this.BOBIAAGPINC, 0, 0);
if (num != 1)
{
break;
}
if (this.BOBIAAGPINC[1] == 0)
{
flag = true;
}
else
{
list.Add(this.BOBIAAGPINC[0]);
}
if (flag)
{
goto Block_3;
}
}
throw new KOJICFCHIEG("z");
Block_3:
byte[] array = list.ToArray();
return MPNDIHMKPOC.PAGJFGMEAFL.GetString(array, 1, array.Length);
}
// Token: 0x04000C69 RID: 3177
protected internal BCFAJPACDHB LOABHNKMLHO;
// Token: 0x04000C6A RID: 3178
protected internal NIFAPEOJGMA.CBLIBPFLGPK HIGHLCOJBFD = NIFAPEOJGMA.CBLIBPFLGPK.Undefined;
// Token: 0x04000C6B RID: 3179
protected internal BLDHMCOMMIC KKMKMBPCLIK;
// Token: 0x04000C6C RID: 3180
protected internal ENEBFDIKJOE ANKFEKMPBLI;
// Token: 0x04000C6D RID: 3181
protected internal JDICOHEACCI NLCOLNFFJGP;
// Token: 0x04000C6E RID: 3182
protected internal LIGALFADMHC CFDJBDCLBPA;
// Token: 0x04000C6F RID: 3183
protected internal bool GEBABGONLIM;
// Token: 0x04000C70 RID: 3184
protected internal byte[] LLDDIGGKEKM;
// Token: 0x04000C71 RID: 3185
protected internal int OCDAFILHNAH = 16384;
// Token: 0x04000C72 RID: 3186
protected internal int MCAPPANCPGJ;
// Token: 0x04000C73 RID: 3187
protected internal byte[] BOBIAAGPINC = new byte[1];
// Token: 0x04000C74 RID: 3188
protected internal Stream EOHFKDMAJPP;
// Token: 0x04000C75 RID: 3189
protected internal JOKHMHLCOEO ALPGBDOIGMH;
// Token: 0x04000C76 RID: 3190
private BPBKGJOCIKB JDLFKILJPKE;
// Token: 0x04000C77 RID: 3191
protected internal string NBKHDPPFDAJ;
// Token: 0x04000C78 RID: 3192
protected internal string LCOAEJLEIMO;
// Token: 0x04000C79 RID: 3193
protected internal DateTime IBOPHNILOLL;
// Token: 0x04000C7A RID: 3194
protected internal int EAOJGMNIMCO;
// Token: 0x04000C7B RID: 3195
private bool NPHBCDNIJPB;
// Token: 0x020001E2 RID: 482
internal enum CBLIBPFLGPK
{
// Token: 0x04000C7D RID: 3197
Writer,
// Token: 0x04000C7E RID: 3198
Reader,
// Token: 0x04000C7F RID: 3199
Undefined
}
}
}