Files
2026-04-08 23:40:05 +02:00

301 lines
8.1 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization.Formatters.Binary;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom
{
// Token: 0x02001DEA RID: 7658
[Token(Token = "0x2001DEA")]
[StructLayout(3)]
public static class RuntimeInitializationHelper
{
// Token: 0x0600CE4B RID: 52811 RVA: 0x00310968 File Offset: 0x0030EB68
[Token(Token = "0x600CE4B")]
[Address(RVA = "0x10E8850", Offset = "0x10E7250", VA = "0x1810E8850")]
[RuntimeInitializeOnLoadMethod]
private static void Initialize()
{
Type typeFromHandle = typeof(BBKEDJMCLLL);
if (!Application.isEditor)
{
bool flag = RuntimeInitializationHelper.HFHHEGCLLKK("runtimeInitializedMethods.bytes", typeFromHandle);
if (!flag)
{
Debug.LogWarning("Failed to load list of runtime initialized methods, falling back to less performant method");
int num = 0;
if (num < (flag ? 1 : 0))
{
num++;
}
}
}
}
// Token: 0x0600CE4C RID: 52812 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600CE4C")]
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
private static void KAHMILJNONA(Type NDJDGECDNNC)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600CE4D RID: 52813 RVA: 0x003109B8 File Offset: 0x0030EBB8
[Token(Token = "0x600CE4D")]
[Address(RVA = "0x10E83D0", Offset = "0x10E6DD0", VA = "0x1810E83D0")]
private static bool HFHHEGCLLKK(string DAKLDBEPNLC, Type NDJDGECDNNC)
{
for (;;)
{
int num = 0;
byte[] array = StreamingAssetsHelper.LoadBytesFromStreamingAssets(DAKLDBEPNLC);
if (array != 0)
{
MemoryStream memoryStream = new MemoryStream(array);
if (new BinaryFormatter().Deserialize(memoryStream) == 0)
{
}
if (memoryStream != 0)
{
}
if (num != -1)
{
List.Enumerator enumerator;
if (enumerator == 0)
{
goto IL_6D;
}
if (enumerator != 0)
{
goto IL_63;
}
Type type;
if (type == 0)
{
}
int num2 = 0;
if (type.Equals(num2))
{
goto IL_5C;
}
RuntimeInitializationHelper.LFOHBJJBAIG(type, NDJDGECDNNC);
}
if (num == 0)
{
goto IL_5C;
}
continue;
IL_6D:
num++;
if (num != -1)
{
}
if (num == 0)
{
break;
}
continue;
IL_63:
Debug.LogError("A null or empty typename was given");
goto IL_6D;
IL_5C:
string text;
Debug.LogError(text);
goto IL_63;
}
goto IL_7B;
}
return true;
IL_7B:
throw new NullReferenceException();
}
// Token: 0x0600CE4E RID: 52814 RVA: 0x00310A48 File Offset: 0x0030EC48
[Token(Token = "0x600CE4E")]
[Address(RVA = "0x10E8770", Offset = "0x10E7170", VA = "0x1810E8770")]
private static void ICKNHLANPJN(Type NDJDGECDNNC)
{
int num = 0;
num++;
}
// Token: 0x0600CE4F RID: 52815 RVA: 0x00310A64 File Offset: 0x0030EC64
[Token(Token = "0x600CE4F")]
[Address(RVA = "0x10E8B10", Offset = "0x10E7510", VA = "0x1810E8B10")]
private static void LFOHBJJBAIG(Type MCKLDFKECOM, Type AFAOEAIEPKO)
{
RuntimeInitializationHelper.LFOHBJJBAIG(RuntimeReflectionExtensions.GetRuntimeMethods(MCKLDFKECOM), AFAOEAIEPKO);
}
// Token: 0x0600CE50 RID: 52816 RVA: 0x00310A80 File Offset: 0x0030EC80
[Token(Token = "0x600CE50")]
[Address(RVA = "0x10E8B80", Offset = "0x10E7580", VA = "0x1810E8B80")]
private static void LFOHBJJBAIG(IEnumerable<MethodInfo> PJIFOOKEJJB, Type AFAOEAIEPKO)
{
int num3;
do
{
int num = 0;
Func<MethodInfo, bool> func = delegate(MethodInfo method)
{
Type attributeType = AFAOEAIEPKO;
Type requiredAttributeType = attributeType;
bool isStatic = method.IsStatic;
if (!isStatic)
{
return isStatic;
}
Type reflectedType = method.ReflectedType;
Func<CustomAttributeData, bool> func2 = delegate(CustomAttributeData attribute)
{
Type attributeType2 = attribute.AttributeType;
Type requiredAttributeType2 = requiredAttributeType;
return attributeType2.Equals(requiredAttributeType2);
};
bool flag;
return flag;
};
IEnumerable<MethodInfo> enumerable = Enumerable.Where<MethodInfo>(PJIFOOKEJJB, func);
if (enumerable != 0)
{
if (num >= enumerable)
{
goto IL_38;
}
num += num;
if (num != enumerable)
{
num++;
goto IL_38;
}
IL_4A:
int num2;
num2 += num2;
num3 = 0;
string text;
Debug.LogError(text);
goto IL_5B;
IL_38:
int num4 = 0;
num2 = 0;
object obj = num.System.IConvertible.ToType(num2, num4);
goto IL_4A;
}
IL_5B:
if (enumerable != 0)
{
}
if (num3 != -1)
{
}
}
while (num3 != 0);
}
// Token: 0x0600CE51 RID: 52817 RVA: 0x00310B10 File Offset: 0x0030ED10
[Token(Token = "0x600CE51")]
[Address(RVA = "0x10E8A30", Offset = "0x10E7430", VA = "0x1810E8A30")]
private static bool JDABLCGDGEB(MethodInfo FHDBBCPKAKB, Type GIIKFJEEFKO)
{
bool isStatic = FHDBBCPKAKB.IsStatic;
if (!isStatic)
{
return isStatic;
}
Type reflectedType = FHDBBCPKAKB.ReflectedType;
Func<CustomAttributeData, bool> func = delegate(CustomAttributeData attribute)
{
Type attributeType = attribute.AttributeType;
Type requiredAttributeType = GIIKFJEEFKO;
return attributeType.Equals(requiredAttributeType);
};
bool flag;
return flag;
}
// Token: 0x04008B4B RID: 35659
[Token(Token = "0x4008B4B")]
public static string OFOLDGFJPMO = "StreamingAssets";
// Token: 0x04008B4C RID: 35660
[Token(Token = "0x4008B4C")]
public static string JLEIICKEOOG = "runtimeInitializedMethods.bytes";
// Token: 0x02001DEB RID: 7659
[Token(Token = "0x2001DEB")]
[CompilerGenerated]
private sealed class BNJDEDOPPPP
{
// Token: 0x0600CE53 RID: 52819 RVA: 0x00310B78 File Offset: 0x0030ED78
[Token(Token = "0x600CE53")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public BNJDEDOPPPP()
{
}
// Token: 0x0600CE54 RID: 52820 RVA: 0x00310B8C File Offset: 0x0030ED8C
[Token(Token = "0x600CE54")]
[Address(RVA = "0x10D5B70", Offset = "0x10D4570", VA = "0x1810D5B70")]
internal bool <InvokeStaticMethodsWithAttribute>b__0(MethodInfo method)
{
Type type = this.attributeType;
RuntimeInitializationHelper.OJJBFMBABMB ojjbfmbabmb = new RuntimeInitializationHelper.OJJBFMBABMB();
ojjbfmbabmb.requiredAttributeType = type;
bool isStatic = method.IsStatic;
if (!isStatic)
{
return isStatic;
}
Type reflectedType = method.ReflectedType;
Func<CustomAttributeData, bool> func = delegate(CustomAttributeData attribute)
{
Type type2 = attribute.AttributeType;
Type requiredAttributeType = ojjbfmbabmb.requiredAttributeType;
return type2.Equals(requiredAttributeType);
};
bool flag;
return flag;
}
// Token: 0x04008B4D RID: 35661
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008B4D")]
public Type attributeType;
}
// Token: 0x02001DEC RID: 7660
[Token(Token = "0x2001DEC")]
[CompilerGenerated]
private sealed class OJJBFMBABMB
{
// Token: 0x0600CE55 RID: 52821 RVA: 0x00310BD8 File Offset: 0x0030EDD8
[Token(Token = "0x600CE55")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public OJJBFMBABMB()
{
}
// Token: 0x0600CE56 RID: 52822 RVA: 0x00310BEC File Offset: 0x0030EDEC
[Token(Token = "0x600CE56")]
[Address(RVA = "0x10D7A00", Offset = "0x10D6400", VA = "0x1810D7A00")]
internal bool <IsValidStaticMethod>b__0(CustomAttributeData attribute)
{
Type attributeType = attribute.AttributeType;
Type type = this.requiredAttributeType;
return attributeType.Equals(type);
}
// Token: 0x04008B4E RID: 35662
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008B4E")]
public Type requiredAttributeType;
}
}
}