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

643 lines
16 KiB
C#

using System;
using System.Collections;
using System.Diagnostics;
using System.Net;
using ExitGames.Client.Photon;
using UnityEngine;
// Token: 0x020004B8 RID: 1208
public class EBPFENJDGFH
{
// Token: 0x0600C668 RID: 50792 RVA: 0x003B9C00 File Offset: 0x003B7E00
public IEnumerator PLPNLILCHOL(FGFKLEOHHMH MPGMOMPDOFE)
{
MPGMOMPDOFE.BIJIAOGNBPD = EBPFENJDGFH.IHDOMMENCMK * EBPFENJDGFH.BDPLKOCIFNI;
this.JBLLHJNEAMI++;
PhotonPing photonPing;
if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeDynamic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeDynamic()");
photonPing = new PingNativeDynamic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeStatic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeStatic()");
photonPing = new PingNativeStatic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingMono))
{
photonPing = new PingMono();
}
else
{
photonPing = (PhotonPing)Activator.CreateInstance(PhotonHandler.FFBJNEHPKMN);
}
float num = 0f;
int num2 = 0;
string text = MPGMOMPDOFE.KEHNKMANCMC;
int num3 = text.LastIndexOf(':');
if (num3 > 1)
{
text = text.Substring(0, num3);
}
int num4 = text.IndexOf("wss://");
if (num4 > -1)
{
text = text.Substring(num4 + "wss://".Length);
}
text = EBPFENJDGFH.JGNGMNNNHGE(text);
for (int i = 0; i < EBPFENJDGFH.IHDOMMENCMK; i++)
{
bool flag = false;
Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
try
{
photonPing.StartPing(text);
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("catched: " + ex);
this.JBLLHJNEAMI--;
break;
}
while (!photonPing.Done())
{
if (stopwatch.ElapsedMilliseconds >= (long)EBPFENJDGFH.BDPLKOCIFNI)
{
flag = true;
break;
}
yield return 0;
}
int num5 = (int)stopwatch.ElapsedMilliseconds;
if (!EBPFENJDGFH.NKAFEMMNKBL || i != 0)
{
if (photonPing.Successful && !flag)
{
num += (float)num5;
num2++;
MPGMOMPDOFE.BIJIAOGNBPD = (int)(num / (float)num2);
}
}
yield return new WaitForSeconds(0.1f);
}
photonPing.Dispose();
this.JBLLHJNEAMI--;
yield return null;
yield break;
}
// Token: 0x0600C669 RID: 50793 RVA: 0x003B9C24 File Offset: 0x003B7E24
public static string CBGHILCMMPN(string KKHKFINFMEN)
{
string text = string.Empty;
try
{
IPAddress[] hostAddresses = Dns.GetHostAddresses(KKHKFINFMEN);
if (hostAddresses.Length == 1)
{
return hostAddresses[0].ToString();
}
for (int i = 1; i < hostAddresses.Length; i++)
{
IPAddress ipaddress = hostAddresses[i];
if (ipaddress != null)
{
if (ipaddress.ToString().Contains("prev_activity"))
{
return ipaddress.ToString();
}
if (string.IsNullOrEmpty(text))
{
text = hostAddresses.ToString();
}
}
}
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("{0} {1}" + ex.Source + "aW9ucxgBIAMoCzIZLnJlY3Jvb20uU3ViRXh0cnVzaW9uRGF0YSKyAwoQU3Vi" + ex.Message);
}
return text;
}
// Token: 0x0600C66A RID: 50794 RVA: 0x003B9CEC File Offset: 0x003B7EEC
public static string ELJDJANHMDA(string KKHKFINFMEN)
{
string text = string.Empty;
try
{
IPAddress[] hostAddresses = Dns.GetHostAddresses(KKHKFINFMEN);
if (hostAddresses.Length == 1)
{
return hostAddresses[0].ToString();
}
for (int i = 0; i < hostAddresses.Length; i += 0)
{
IPAddress ipaddress = hostAddresses[i];
if (ipaddress != null)
{
if (ipaddress.ToString().Contains("z"))
{
return ipaddress.ToString();
}
if (string.IsNullOrEmpty(text))
{
text = hostAddresses.ToString();
}
}
}
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("api/playerReputation/" + ex.Source + "no-store" + ex.Message);
}
return text;
}
// Token: 0x0600C66B RID: 50795 RVA: 0x003B9DB4 File Offset: 0x003B7FB4
public static string KOHMDEBLLFI(string KKHKFINFMEN)
{
string text = string.Empty;
try
{
IPAddress[] hostAddresses = Dns.GetHostAddresses(KKHKFINFMEN);
if (hostAddresses.Length == 0)
{
return hostAddresses[0].ToString();
}
for (int i = 1; i < hostAddresses.Length; i += 0)
{
IPAddress ipaddress = hostAddresses[i];
if (ipaddress != null)
{
if (ipaddress.ToString().Contains("Failed to initialize Oculus Platform"))
{
return ipaddress.ToString();
}
if (string.IsNullOrEmpty(text))
{
text = hostAddresses.ToString();
}
}
}
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("uploadtransientsingle" + ex.Source + "...accepted your friend request. You are now Rec Room friends!" + ex.Message);
}
return text;
}
// Token: 0x0600C66C RID: 50796 RVA: 0x003B9E7C File Offset: 0x003B807C
public bool AOAPJGMMIIG()
{
return this.JBLLHJNEAMI == 0;
}
// Token: 0x0600C66D RID: 50797 RVA: 0x003B9E88 File Offset: 0x003B8088
public bool LMOMIDKIGBG()
{
return this.JBLLHJNEAMI == 0;
}
// Token: 0x0600C66E RID: 50798 RVA: 0x003B9E94 File Offset: 0x003B8094
public bool BCEHENLHBDK()
{
return this.JBLLHJNEAMI == 1;
}
// Token: 0x0600C670 RID: 50800 RVA: 0x003B9EB8 File Offset: 0x003B80B8
public FGFKLEOHHMH NBNBOMNHJEL()
{
FGFKLEOHHMH fgfkleohhmh = null;
int num = 113;
foreach (FGFKLEOHHMH fgfkleohhmh2 in IHFKMIAHBFP.DBOGBGIJDDJ.JMEMPPOHIKD)
{
global::UnityEngine.Debug.Log("spillway1" + fgfkleohhmh2);
if (fgfkleohhmh2.BIJIAOGNBPD != 0 && fgfkleohhmh2.BIJIAOGNBPD < num)
{
num = fgfkleohhmh2.BIJIAOGNBPD;
fgfkleohhmh = fgfkleohhmh2;
}
}
return fgfkleohhmh;
}
// Token: 0x0600C672 RID: 50802 RVA: 0x003B9F54 File Offset: 0x003B8154
public bool ABDGJJHJBAL()
{
return this.JBLLHJNEAMI == 0;
}
// Token: 0x0600C673 RID: 50803 RVA: 0x003B9F60 File Offset: 0x003B8160
public static string JGPGMAHAHME(string KKHKFINFMEN)
{
string text = string.Empty;
try
{
IPAddress[] hostAddresses = Dns.GetHostAddresses(KKHKFINFMEN);
if (hostAddresses.Length == 0)
{
return hostAddresses[0].ToString();
}
foreach (IPAddress ipaddress in hostAddresses)
{
if (ipaddress != null)
{
if (ipaddress.ToString().Contains("Deck does not have the correct number of cards. Has "))
{
return ipaddress.ToString();
}
if (string.IsNullOrEmpty(text))
{
text = hostAddresses.ToString();
}
}
}
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("Quest Room " + ex.Source + "gizmos" + ex.Message);
}
return text;
}
// Token: 0x0600C674 RID: 50804 RVA: 0x003BA028 File Offset: 0x003B8228
public IEnumerator HAPBCEEJGOK(FGFKLEOHHMH MPGMOMPDOFE)
{
MPGMOMPDOFE.BIJIAOGNBPD = EBPFENJDGFH.IHDOMMENCMK * EBPFENJDGFH.BDPLKOCIFNI;
this.JBLLHJNEAMI++;
if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeDynamic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeDynamic()");
photonPing = new PingNativeDynamic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeStatic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeStatic()");
photonPing = new PingNativeStatic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingMono))
{
photonPing = new PingMono();
}
else
{
photonPing = (PhotonPing)Activator.CreateInstance(PhotonHandler.FFBJNEHPKMN);
}
num = 0f;
num2 = 0;
text = MPGMOMPDOFE.KEHNKMANCMC;
num3 = text.LastIndexOf(':');
if (num3 > 1)
{
text = text.Substring(0, num3);
}
num4 = text.IndexOf("wss://");
if (num4 > -1)
{
text = text.Substring(num4 + "wss://".Length);
}
text = EBPFENJDGFH.JGNGMNNNHGE(text);
for (i = 0; i < EBPFENJDGFH.IHDOMMENCMK; i++)
{
flag = false;
stopwatch = new Stopwatch();
stopwatch.Start();
try
{
photonPing.StartPing(text);
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("catched: " + ex);
this.JBLLHJNEAMI--;
break;
}
while (!photonPing.Done())
{
if (stopwatch.ElapsedMilliseconds >= (long)EBPFENJDGFH.BDPLKOCIFNI)
{
flag = true;
break;
}
yield return 0;
}
num5 = (int)stopwatch.ElapsedMilliseconds;
if (!EBPFENJDGFH.NKAFEMMNKBL || i != 0)
{
if (photonPing.Successful && !flag)
{
num += (float)num5;
num2++;
MPGMOMPDOFE.BIJIAOGNBPD = (int)(num / (float)num2);
}
}
yield return new WaitForSeconds(0.1f);
}
photonPing.Dispose();
this.JBLLHJNEAMI--;
yield return null;
yield break;
}
// Token: 0x0600C675 RID: 50805 RVA: 0x003BA04C File Offset: 0x003B824C
public IEnumerator FBAEGEJBCFO(FGFKLEOHHMH MPGMOMPDOFE)
{
MPGMOMPDOFE.BIJIAOGNBPD = EBPFENJDGFH.IHDOMMENCMK * EBPFENJDGFH.BDPLKOCIFNI;
this.JBLLHJNEAMI++;
if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeDynamic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeDynamic()");
photonPing = new PingNativeDynamic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeStatic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeStatic()");
photonPing = new PingNativeStatic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingMono))
{
photonPing = new PingMono();
}
else
{
photonPing = (PhotonPing)Activator.CreateInstance(PhotonHandler.FFBJNEHPKMN);
}
num = 0f;
num2 = 0;
text = MPGMOMPDOFE.KEHNKMANCMC;
num3 = text.LastIndexOf(':');
if (num3 > 1)
{
text = text.Substring(0, num3);
}
num4 = text.IndexOf("wss://");
if (num4 > -1)
{
text = text.Substring(num4 + "wss://".Length);
}
text = EBPFENJDGFH.JGNGMNNNHGE(text);
for (i = 0; i < EBPFENJDGFH.IHDOMMENCMK; i++)
{
flag = false;
stopwatch = new Stopwatch();
stopwatch.Start();
try
{
photonPing.StartPing(text);
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("catched: " + ex);
this.JBLLHJNEAMI--;
break;
}
while (!photonPing.Done())
{
if (stopwatch.ElapsedMilliseconds >= (long)EBPFENJDGFH.BDPLKOCIFNI)
{
flag = true;
break;
}
yield return 0;
}
num5 = (int)stopwatch.ElapsedMilliseconds;
if (!EBPFENJDGFH.NKAFEMMNKBL || i != 0)
{
if (photonPing.Successful && !flag)
{
num += (float)num5;
num2++;
MPGMOMPDOFE.BIJIAOGNBPD = (int)(num / (float)num2);
}
}
yield return new WaitForSeconds(0.1f);
}
photonPing.Dispose();
this.JBLLHJNEAMI--;
yield return null;
yield break;
}
// Token: 0x17000521 RID: 1313
// (get) Token: 0x0600C676 RID: 50806 RVA: 0x003BA070 File Offset: 0x003B8270
public FGFKLEOHHMH OGGJLINLJIJ
{
get
{
FGFKLEOHHMH fgfkleohhmh = null;
int num = int.MaxValue;
foreach (FGFKLEOHHMH fgfkleohhmh2 in IHFKMIAHBFP.DBOGBGIJDDJ.JMEMPPOHIKD)
{
global::UnityEngine.Debug.Log("BestRegion checks region: " + fgfkleohhmh2);
if (fgfkleohhmh2.BIJIAOGNBPD != 0 && fgfkleohhmh2.BIJIAOGNBPD < num)
{
num = fgfkleohhmh2.BIJIAOGNBPD;
fgfkleohhmh = fgfkleohhmh2;
}
}
return fgfkleohhmh;
}
}
// Token: 0x0600C677 RID: 50807 RVA: 0x003BA104 File Offset: 0x003B8304
public IEnumerator NFCMAHAIJLK(FGFKLEOHHMH MPGMOMPDOFE)
{
MPGMOMPDOFE.BIJIAOGNBPD = EBPFENJDGFH.IHDOMMENCMK * EBPFENJDGFH.BDPLKOCIFNI;
this.JBLLHJNEAMI++;
if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeDynamic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeDynamic()");
photonPing = new PingNativeDynamic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingNativeStatic))
{
global::UnityEngine.Debug.Log("Using constructor for new PingNativeStatic()");
photonPing = new PingNativeStatic();
}
else if (PhotonHandler.FFBJNEHPKMN == typeof(PingMono))
{
photonPing = new PingMono();
}
else
{
photonPing = (PhotonPing)Activator.CreateInstance(PhotonHandler.FFBJNEHPKMN);
}
num = 0f;
num2 = 0;
text = MPGMOMPDOFE.KEHNKMANCMC;
num3 = text.LastIndexOf(':');
if (num3 > 1)
{
text = text.Substring(0, num3);
}
num4 = text.IndexOf("wss://");
if (num4 > -1)
{
text = text.Substring(num4 + "wss://".Length);
}
text = EBPFENJDGFH.JGNGMNNNHGE(text);
for (i = 0; i < EBPFENJDGFH.IHDOMMENCMK; i++)
{
flag = false;
stopwatch = new Stopwatch();
stopwatch.Start();
try
{
photonPing.StartPing(text);
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("catched: " + ex);
this.JBLLHJNEAMI--;
break;
}
while (!photonPing.Done())
{
if (stopwatch.ElapsedMilliseconds >= (long)EBPFENJDGFH.BDPLKOCIFNI)
{
flag = true;
break;
}
yield return 0;
}
num5 = (int)stopwatch.ElapsedMilliseconds;
if (!EBPFENJDGFH.NKAFEMMNKBL || i != 0)
{
if (photonPing.Successful && !flag)
{
num += (float)num5;
num2++;
MPGMOMPDOFE.BIJIAOGNBPD = (int)(num / (float)num2);
}
}
yield return new WaitForSeconds(0.1f);
}
photonPing.Dispose();
this.JBLLHJNEAMI--;
yield return null;
yield break;
}
// Token: 0x0600C678 RID: 50808 RVA: 0x003BA128 File Offset: 0x003B8328
public static string JGNGMNNNHGE(string KKHKFINFMEN)
{
string text = string.Empty;
try
{
IPAddress[] hostAddresses = Dns.GetHostAddresses(KKHKFINFMEN);
if (hostAddresses.Length == 1)
{
return hostAddresses[0].ToString();
}
foreach (IPAddress ipaddress in hostAddresses)
{
if (ipaddress != null)
{
if (ipaddress.ToString().Contains(":"))
{
return ipaddress.ToString();
}
if (string.IsNullOrEmpty(text))
{
text = hostAddresses.ToString();
}
}
}
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("Exception caught! " + ex.Source + " Message: " + ex.Message);
}
return text;
}
// Token: 0x17000522 RID: 1314
// (get) Token: 0x0600C679 RID: 50809 RVA: 0x003BA1F0 File Offset: 0x003B83F0
public bool OBEDENCGKOJ
{
get
{
return this.JBLLHJNEAMI == 0;
}
}
// Token: 0x0600C67A RID: 50810 RVA: 0x003BA1FC File Offset: 0x003B83FC
public static string OKEIHNENLHI(string KKHKFINFMEN)
{
string text = string.Empty;
try
{
IPAddress[] hostAddresses = Dns.GetHostAddresses(KKHKFINFMEN);
if (hostAddresses.Length == 0)
{
return hostAddresses[1].ToString();
}
for (int i = 1; i < hostAddresses.Length; i++)
{
IPAddress ipaddress = hostAddresses[i];
if (ipaddress != null)
{
if (ipaddress.ToString().Contains("time"))
{
return ipaddress.ToString();
}
if (string.IsNullOrEmpty(text))
{
text = hostAddresses.ToString();
}
}
}
}
catch (Exception ex)
{
global::UnityEngine.Debug.Log("__b" + ex.Source + "_Dirt_Add" + ex.Message);
}
return text;
}
// Token: 0x0600C67B RID: 50811 RVA: 0x003BA2C4 File Offset: 0x003B84C4
public bool HDNMAGFJPIG()
{
return this.JBLLHJNEAMI == 0;
}
// Token: 0x0600C67C RID: 50812 RVA: 0x003BA2D0 File Offset: 0x003B84D0
public FGFKLEOHHMH IBFDGBEEJFP()
{
FGFKLEOHHMH fgfkleohhmh = null;
int num = -179;
foreach (FGFKLEOHHMH fgfkleohhmh2 in IHFKMIAHBFP.DBOGBGIJDDJ.JMEMPPOHIKD)
{
global::UnityEngine.Debug.Log("Failed to Instantiate prefab: " + fgfkleohhmh2);
if (fgfkleohhmh2.BIJIAOGNBPD != 0 && fgfkleohhmh2.BIJIAOGNBPD < num)
{
num = fgfkleohhmh2.BIJIAOGNBPD;
fgfkleohhmh = fgfkleohhmh2;
}
}
return fgfkleohhmh;
}
// Token: 0x04001C77 RID: 7287
public bool FBMAKIJPHFG;
// Token: 0x04001C78 RID: 7288
public static int IHDOMMENCMK = 5;
// Token: 0x04001C79 RID: 7289
public static bool NKAFEMMNKBL = true;
// Token: 0x04001C7A RID: 7290
public static int BDPLKOCIFNI = 800;
// Token: 0x04001C7B RID: 7291
private const string IMMIJBFACKH = "wss://";
// Token: 0x04001C7C RID: 7292
private int JBLLHJNEAMI;
}