using System; using System.Runtime.CompilerServices; using CodeStage.AntiCheat.ObscuredTypes; using Cpp2IlInjected; using RecRoom.Core; using RRUI.Navigation; using UnityEngine; namespace RecRoom.Sharing { // Token: 0x02002242 RID: 8770 [Token(Token = "0x2002242")] public class ReferralCode : ActionCode { // Token: 0x0600E088 RID: 57480 RVA: 0x0033F144 File Offset: 0x0033D344 [Token(Token = "0x600E088")] [Address(RVA = "0x112E860", Offset = "0x112D660", VA = "0x18112E860", Slot = "5")] public override PMGCJEPKFOF Create(object IIFJDCEPNMJ) { int num = 0; string actionLinkData = base.GetActionLinkData(num); if (this.Config.maxUses > 0) { } int num2; Func func = new Func(num2.KGEHHCADCHK); num2 = 0; throw new NullReferenceException(); } // Token: 0x0600E089 RID: 57481 RVA: 0x0033F184 File Offset: 0x0033D384 [Token(Token = "0x600E089")] [Address(RVA = "0x112E780", Offset = "0x112D580", VA = "0x18112E780", Slot = "6")] public override DABKFAIHBBP CreateAndShare(Route LPJOBOLHFMI, object IIFJDCEPNMJ) { Action action = delegate(ActionCode.HKFNFGGEPMP result) { ActionCode.Configuration config = this.Config; Route rruishareRoute = LPJOBOLHFMI; }; throw new NullReferenceException(); } // Token: 0x0600E08A RID: 57482 RVA: 0x0033F1B8 File Offset: 0x0033D3B8 [Token(Token = "0x600E08A")] [Address(RVA = "0x112E9B0", Offset = "0x112D7B0", VA = "0x18112E9B0", Slot = "8")] public override DABKFAIHBBP Handle(LinkManager.ELGKGFGCNJL JBLKFFDDMJH) { LinkManager.ELGKGFGCNJL pendingLink = JBLKFFDDMJH; string k__BackingField = JBLKFFDDMJH.LIOKHLNNDFL.k__BackingField; string actionCode = k__BackingField; int k__BackingField = JBLKFFDDMJH.LIOKHLNNDFL.k__BackingField; JJGHAFKJBEI doohkcanflo = PEGGCEDHBOF.DOOHKCANFLO; ObscuredInt k__BackingField = doohkcanflo.k__BackingField; bool fakeValueActive = doohkcanflo.k__BackingField.fakeValueActive; int num = ObscuredInt.FAJDMKOEFLH(k__BackingField); if (k__BackingField != num) { PMGCJEPKFOF pmgcjepkfof = PEGGCEDHBOF.NFKMGNHDCMN(k__BackingField); Func func = delegate(CCEOLAOLEKJ account) { ReferralCode <>4__this = this; string actionCode2 = actionCode; ActionCode.Configuration config = <>4__this.Config; if (config.autoRenew) { int validHours = config.validHours; } int num2 = 0; LinkManager.ELGKGFGCNJL pendingLink2 = pendingLink; bool mhjmmlihdea = pendingLink2.MHJMMLIHDEA; bool nnnoilancib = pendingLink2.NNNOILANCIB; DABKFAIHBBP dabkfaihbbp = ActionCode.ConsumeActionLinkIfValid(actionCode2, num2, (EAEKNPLNKKO)((uint)1), nnnoilancib, mhjmmlihdea); Action <>9__2; Action action = delegate { Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG; LinkManager.BDJPCEJOMEC bdjpcejomec; bdjpcejomec.System.IDisposable.Dispose(); bdjpcejomec.<>1__state = (int)((ulong)0L); bdjpcejomec.waitForWatchClosed = false; KFBABPAPIMB kfbabpapimb = instance.Run(bdjpcejomec); if (<>9__2 == 0) { Action action2 = delegate { ReferralCode <>4__this2 = this; CCEOLAOLEKJ account; ObscuredString k__BackingField = account.k__BackingField; string text2 = string.Format(<>4__this2.chatFailureTitle, k__BackingField); ReferralCode <>4__this3 = this; ObscuredString k__BackingField2 = account.k__BackingField; string text3 = string.Format(<>4__this3.chatFailureBody, k__BackingField2); account = account; ActionCode.NEIACJEEKFK(text2, text3, account); }; <>9__2 = action2; } throw new NullReferenceException(); }; throw new NullReferenceException(); }; } LinkManager.ELGKGFGCNJL pendingLink3 = pendingLink; string text = this.errorSelfReferral; pendingLink3.LBDAAMOAKBA = text; return JJEKJGALHKO.LIPGKFECLDO(this.errorSelfReferral); } // Token: 0x0600E08B RID: 57483 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600E08B")] [Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "9")] public override void ModifyPreAuthLaunchTarget(BootSequence.IIACGMGMLOB HHBNIDNOLDI, LinkManager.ELGKGFGCNJL JBLKFFDDMJH) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600E08C RID: 57484 RVA: 0x0033F264 File Offset: 0x0033D464 [Token(Token = "0x600E08C")] [Address(RVA = "0x112EBF0", Offset = "0x112D9F0", VA = "0x18112EBF0")] public ReferralCode() { } // Token: 0x040091EC RID: 37356 [FieldOffset(Offset = "0x28")] [Token(Token = "0x40091EC")] [SerializeField] [Tooltip("This notification shows if the automatic chat message doesn't go through. Use {0} to reference the referrer's username.")] private string chatFailureBody = "You can view @{0}'s profile by selecting 'Profile' below"; // Token: 0x040091ED RID: 37357 [FieldOffset(Offset = "0x30")] [Token(Token = "0x40091ED")] [SerializeField] [Tooltip("This notification shows if the automatic chat message doesn't go through. Use {0} to reference the referrer's username.")] private string chatFailureTitle = "Referral code success!"; // Token: 0x040091EE RID: 37358 [FieldOffset(Offset = "0x38")] [Token(Token = "0x40091EE")] [SerializeField] [Header("UI Strings:")] private string errorSelfReferral = "You can't refer yourself!"; // Token: 0x02002243 RID: 8771 [Token(Token = "0x2002243")] [CompilerGenerated] private sealed class OOEALPKBIBD { // Token: 0x0600E08D RID: 57485 RVA: 0x0033F298 File Offset: 0x0033D498 [Token(Token = "0x600E08D")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public OOEALPKBIBD() { } // Token: 0x0600E08E RID: 57486 RVA: 0x0033F2AC File Offset: 0x0033D4AC [Token(Token = "0x600E08E")] [Address(RVA = "0x111AE60", Offset = "0x1119C60", VA = "0x18111AE60")] internal void b__0(ActionCode.HKFNFGGEPMP result) { ActionCode.Configuration config = this.<>4__this.Config; Route rruishareRoute = this.RRUIShareRoute; } // Token: 0x040091EF RID: 37359 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40091EF")] public Route RRUIShareRoute; // Token: 0x040091F0 RID: 37360 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40091F0")] public ReferralCode <>4__this; } // Token: 0x02002244 RID: 8772 [Token(Token = "0x2002244")] [CompilerGenerated] private sealed class KEIOPCPBKNP { // Token: 0x0600E08F RID: 57487 RVA: 0x0033F2D4 File Offset: 0x0033D4D4 [Token(Token = "0x600E08F")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public KEIOPCPBKNP() { } // Token: 0x0600E090 RID: 57488 RVA: 0x0033F2E8 File Offset: 0x0033D4E8 [Token(Token = "0x600E090")] [Address(RVA = "0x1122CA0", Offset = "0x1121AA0", VA = "0x181122CA0")] internal DABKFAIHBBP b__0(CCEOLAOLEKJ account) { ReferralCode.MBHLPGDMPOF mbhlpgdmpof = new ReferralCode.MBHLPGDMPOF(); mbhlpgdmpof.CS$<>8__locals1 = this; mbhlpgdmpof.account = account; ReferralCode referralCode = this.<>4__this; string text = this.actionCode; ActionCode.Configuration config = referralCode.Config; if (config.autoRenew) { int validHours = config.validHours; } int num = 0; LinkManager.ELGKGFGCNJL elgkgfgcnjl = this.pendingLink; bool mhjmmlihdea = elgkgfgcnjl.MHJMMLIHDEA; bool nnnoilancib = elgkgfgcnjl.NNNOILANCIB; DABKFAIHBBP dabkfaihbbp = ActionCode.ConsumeActionLinkIfValid(text, num, (EAEKNPLNKKO)((uint)1), nnnoilancib, mhjmmlihdea); Action action = delegate { Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG; LinkManager.BDJPCEJOMEC bdjpcejomec; bdjpcejomec.System.IDisposable.Dispose(); bdjpcejomec.<>1__state = (int)((ulong)0L); bdjpcejomec.waitForWatchClosed = false; KFBABPAPIMB kfbabpapimb = instance.Run(bdjpcejomec); if (mbhlpgdmpof.<>9__2 == 0) { Action action2 = delegate { ReferralCode referralCode2 = mbhlpgdmpof.CS$<>8__locals1.<>4__this; ObscuredString k__BackingField = mbhlpgdmpof.account.k__BackingField; string text2 = string.Format(referralCode2.chatFailureTitle, k__BackingField); ReferralCode referralCode3 = mbhlpgdmpof.CS$<>8__locals1.<>4__this; ObscuredString k__BackingField2 = mbhlpgdmpof.account.k__BackingField; string text3 = string.Format(referralCode3.chatFailureBody, k__BackingField2); CCEOLAOLEKJ account2 = mbhlpgdmpof.account; ActionCode.NEIACJEEKFK(text2, text3, account2); }; mbhlpgdmpof.<>9__2 = action2; } throw new NullReferenceException(); }; throw new NullReferenceException(); } // Token: 0x040091F1 RID: 37361 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40091F1")] public string actionCode; // Token: 0x040091F2 RID: 37362 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40091F2")] public ReferralCode <>4__this; // Token: 0x040091F3 RID: 37363 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40091F3")] public LinkManager.ELGKGFGCNJL pendingLink; } // Token: 0x02002245 RID: 8773 [Token(Token = "0x2002245")] [CompilerGenerated] private sealed class MBHLPGDMPOF { // Token: 0x0600E091 RID: 57489 RVA: 0x0033F370 File Offset: 0x0033D570 [Token(Token = "0x600E091")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public MBHLPGDMPOF() { } // Token: 0x0600E092 RID: 57490 RVA: 0x0033F384 File Offset: 0x0033D584 [Token(Token = "0x600E092")] [Address(RVA = "0x1128970", Offset = "0x1127770", VA = "0x181128970")] internal void b__1() { Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG; LinkManager.BDJPCEJOMEC bdjpcejomec; bdjpcejomec.System.IDisposable.Dispose(); bdjpcejomec.<>1__state = (int)((ulong)0L); bdjpcejomec.waitForWatchClosed = false; KFBABPAPIMB kfbabpapimb = instance.Run(bdjpcejomec); if (this.<>9__2 == 0) { Action action = delegate { ReferralCode <>4__this = this.CS$<>8__locals1.<>4__this; ObscuredString k__BackingField = this.account.k__BackingField; string text = string.Format(<>4__this.chatFailureTitle, k__BackingField); ReferralCode <>4__this2 = this.CS$<>8__locals1.<>4__this; ObscuredString k__BackingField2 = this.account.k__BackingField; string text2 = string.Format(<>4__this2.chatFailureBody, k__BackingField2); CCEOLAOLEKJ cceolaolekj = this.account; ActionCode.NEIACJEEKFK(text, text2, cceolaolekj); }; this.<>9__2 = action; } throw new NullReferenceException(); } // Token: 0x0600E093 RID: 57491 RVA: 0x0033F3D8 File Offset: 0x0033D5D8 [Token(Token = "0x600E093")] [Address(RVA = "0x1128AA0", Offset = "0x11278A0", VA = "0x181128AA0")] internal void b__2() { ReferralCode <>4__this = this.CS$<>8__locals1.<>4__this; ObscuredString k__BackingField = this.account.k__BackingField; string text = string.Format(<>4__this.chatFailureTitle, k__BackingField); ReferralCode <>4__this2 = this.CS$<>8__locals1.<>4__this; ObscuredString k__BackingField2 = this.account.k__BackingField; string text2 = string.Format(<>4__this2.chatFailureBody, k__BackingField2); CCEOLAOLEKJ cceolaolekj = this.account; ActionCode.NEIACJEEKFK(text, text2, cceolaolekj); } // Token: 0x040091F4 RID: 37364 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40091F4")] public CCEOLAOLEKJ account; // Token: 0x040091F5 RID: 37365 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40091F5")] public ReferralCode.KEIOPCPBKNP CS$<>8__locals1; // Token: 0x040091F6 RID: 37366 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40091F6")] public Action <>9__2; } } }