using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using CodeStage.AntiCheat.ObscuredTypes; using Cpp2IlInjected; using RecRoom.Core; using RRUI.Navigation; using UnityEngine; namespace RecRoom.Sharing { // Token: 0x02002326 RID: 8998 [Token(Token = "0x2002326")] public class ReferralCode : ActionCode { // Token: 0x0600E494 RID: 58516 RVA: 0x00348488 File Offset: 0x00346688 [Token(Token = "0x600E494")] [Address(RVA = "0x18456C0", Offset = "0x18446C0", VA = "0x1818456C0", Slot = "5")] public override PMGCJEPKFOF Create(object IIFJDCEPNMJ) { int num = 0; string actionLinkData = base.GetActionLinkData(num); int? maxUses = this.Config.MaxUses; int num2; Func func = new Func(num2.KGEHHCADCHK); num2 = 0; throw new NullReferenceException(); } // Token: 0x0600E495 RID: 58517 RVA: 0x003484C4 File Offset: 0x003466C4 [Token(Token = "0x600E495")] [Address(RVA = "0x18455E0", Offset = "0x18445E0", VA = "0x1818455E0", 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: 0x0600E496 RID: 58518 RVA: 0x003484F8 File Offset: 0x003466F8 [Token(Token = "0x600E496")] [Address(RVA = "0x18457D0", Offset = "0x18447D0", VA = "0x1818457D0", 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; int? autoRenewHours = <>4__this.Config.AutoRenewHours; LinkManager.ELGKGFGCNJL pendingLink2 = pendingLink; bool mhjmmlihdea = pendingLink2.MHJMMLIHDEA; bool nnnoilancib = pendingLink2.NNNOILANCIB; DABKFAIHBBP dabkfaihbbp = ActionCode.ConsumeActionLinkIfValid(actionCode2, autoRenewHours, (EAEKNPLNKKO)((uint)1), nnnoilancib, mhjmmlihdea); Action <>9__2; Action action = delegate { Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG; int num4 = 0; IEnumerator enumerator = LinkManager.WaitForLoginNuxAndWatch(false, num4); KFBABPAPIMB kfbabpapimb = instance.Run(enumerator); 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(); }; int num2 = 0; num2 += num2; num2++; int num3 = 0; PMGCJEPKFOF pmgcjepkfof2 = pmgcjepkfof.JKOHKDFNCCI(func, num3); func += func; } LinkManager.ELGKGFGCNJL pendingLink3 = pendingLink; string text = this.errorSelfReferral; pendingLink3.LBDAAMOAKBA = text; return JJEKJGALHKO.LIPGKFECLDO(this.errorSelfReferral); } // Token: 0x0600E497 RID: 58519 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600E497")] [Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x0600E498 RID: 58520 RVA: 0x003485C8 File Offset: 0x003467C8 [Token(Token = "0x600E498")] [Address(RVA = "0x1845A70", Offset = "0x1844A70", VA = "0x181845A70")] public ReferralCode() { } // Token: 0x040093C0 RID: 37824 [FieldOffset(Offset = "0x28")] [Token(Token = "0x40093C0")] [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: 0x040093C1 RID: 37825 [FieldOffset(Offset = "0x30")] [Token(Token = "0x40093C1")] [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: 0x040093C2 RID: 37826 [FieldOffset(Offset = "0x38")] [Token(Token = "0x40093C2")] [SerializeField] [Header("UI Strings:")] private string errorSelfReferral = "You can't refer yourself!"; // Token: 0x02002327 RID: 8999 [Token(Token = "0x2002327")] [CompilerGenerated] private sealed class OOEALPKBIBD { // Token: 0x0600E499 RID: 58521 RVA: 0x003485FC File Offset: 0x003467FC [Token(Token = "0x600E499")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public OOEALPKBIBD() { } // Token: 0x0600E49A RID: 58522 RVA: 0x00348610 File Offset: 0x00346810 [Token(Token = "0x600E49A")] [Address(RVA = "0x183FD30", Offset = "0x183ED30", VA = "0x18183FD30")] internal void b__0(ActionCode.HKFNFGGEPMP result) { ActionCode.Configuration config = this.<>4__this.Config; Route rruishareRoute = this.RRUIShareRoute; } // Token: 0x040093C3 RID: 37827 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40093C3")] public Route RRUIShareRoute; // Token: 0x040093C4 RID: 37828 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40093C4")] public ReferralCode <>4__this; } // Token: 0x02002328 RID: 9000 [Token(Token = "0x2002328")] [CompilerGenerated] private sealed class KEIOPCPBKNP { // Token: 0x0600E49B RID: 58523 RVA: 0x00348638 File Offset: 0x00346838 [Token(Token = "0x600E49B")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public KEIOPCPBKNP() { } // Token: 0x0600E49C RID: 58524 RVA: 0x0034864C File Offset: 0x0034684C [Token(Token = "0x600E49C")] [Address(RVA = "0x18408A0", Offset = "0x183F8A0", VA = "0x1818408A0")] 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; int? autoRenewHours = referralCode.Config.AutoRenewHours; LinkManager.ELGKGFGCNJL elgkgfgcnjl = this.pendingLink; bool mhjmmlihdea = elgkgfgcnjl.MHJMMLIHDEA; bool nnnoilancib = elgkgfgcnjl.NNNOILANCIB; DABKFAIHBBP dabkfaihbbp = ActionCode.ConsumeActionLinkIfValid(text, autoRenewHours, (EAEKNPLNKKO)((uint)1), nnnoilancib, mhjmmlihdea); Action action = delegate { Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG; int num = 0; IEnumerator enumerator = LinkManager.WaitForLoginNuxAndWatch(false, num); KFBABPAPIMB kfbabpapimb = instance.Run(enumerator); 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: 0x040093C5 RID: 37829 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40093C5")] public string actionCode; // Token: 0x040093C6 RID: 37830 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40093C6")] public ReferralCode <>4__this; // Token: 0x040093C7 RID: 37831 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40093C7")] public LinkManager.ELGKGFGCNJL pendingLink; } // Token: 0x02002329 RID: 9001 [Token(Token = "0x2002329")] [CompilerGenerated] private sealed class MBHLPGDMPOF { // Token: 0x0600E49D RID: 58525 RVA: 0x003486C4 File Offset: 0x003468C4 [Token(Token = "0x600E49D")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public MBHLPGDMPOF() { } // Token: 0x0600E49E RID: 58526 RVA: 0x003486D8 File Offset: 0x003468D8 [Token(Token = "0x600E49E")] [Address(RVA = "0x1841830", Offset = "0x1840830", VA = "0x181841830")] internal void b__1() { Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG; int num = 0; IEnumerator enumerator = LinkManager.WaitForLoginNuxAndWatch(false, num); KFBABPAPIMB kfbabpapimb = instance.Run(enumerator); 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: 0x0600E49F RID: 58527 RVA: 0x00348724 File Offset: 0x00346924 [Token(Token = "0x600E49F")] [Address(RVA = "0x1841930", Offset = "0x1840930", VA = "0x181841930")] 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: 0x040093C8 RID: 37832 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40093C8")] public CCEOLAOLEKJ account; // Token: 0x040093C9 RID: 37833 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40093C9")] public ReferralCode.KEIOPCPBKNP CS$<>8__locals1; // Token: 0x040093CA RID: 37834 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40093CA")] public Action <>9__2; } } }