// // GameLevelManager::rewardSessionToken from 0x4bbebc to 0x4bbfa2 (230 bytes) // // 5 xrefs: // > GameLevelManager::claimNotificationReward @ 0x4bc01c // > GameLevelManager::getGJSecretReward @ 0x4bc1a6 // > GameLevelManager::getGJRewards @ 0x4bc442 // > GameLevelManager::getGJDailyLevelState @ 0x4bc614 // > GameLevelManager::downloadLevel @ 0x4bd408 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:50:17 +0000 // GameLevelManager *__fastcall GameLevelManager::rewardSessionToken(GameLevelManager *this) { int v2; // r0 cocos2d::CCString *v3; // r0 const char *CString; // r8 size_t v5; // r0 int v6; // r2 int v7; // r3 char *v8; // r1 size_t v9; // r2 _DWORD *v10; // r0 int v11; // r1 int v12; // r2 int v14[3]; // [sp+4h] [bp+0h] BYREF unsigned __int8 v15; // [sp+10h] [bp+Ch] BYREF char v16; // [sp+11h] [bp+Dh] BYREF size_t v17; // [sp+14h] [bp+10h] char *v18; // [sp+18h] [bp+14h] int v19[3]; // [sp+1Ch] [bp+18h] BYREF int v20[3]; // [sp+28h] [bp+24h] BYREF v2 = GameManager::sharedState(this); v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(*(_DWORD *)(v2 + 696) - *(_DWORD *)(v2 + 700))); memset(v14, 0, sizeof(v14)); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); std::string::__init(v14, CString, v5); memset(v19, 0, sizeof(v19)); std::string::__init(v19, "59182", 5u); cocos2d::ZipUtils::base64EncodeEnc(&v15, v14, v19); std::string::~string((int)v19); gen_random(v20, 5, v6, v7); if ( (v15 & 1) != 0 ) { v8 = v18; v9 = v17; } else { v9 = (int)v15 >> 1; v8 = &v16; } v10 = std::string::append(v20, v8, v9); v11 = v10[1]; v12 = v10[2]; *(_DWORD *)this = *v10; *((_DWORD *)this + 1) = v11; *((_DWORD *)this + 2) = v12; *v10 = 0; v10[1] = 0; v10[2] = 0; std::string::~string((int)v20); std::string::~string((int)&v15); std::string::~string((int)v14); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source