// // GameLevelManager::getGJDailyLevelState from 0x4bc56c to 0x4bc70c (416 bytes) // // 2 xrefs: // > DailyLevelPage::tryGetDailyStatus @ 0x606dae // > DailyLevelPage::init @ 0x608a84 // // 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:18 +0000 // int __fastcall GameLevelManager::getGJDailyLevelState(GameLevelManager *a1, int a2) { char *v4; // r1 char *v5; // r1 int v6; // r2 char *v7; // r1 cocos2d::CCString *v8; // r0 const char *CString; // r8 cocos2d::CCString *v10; // r0 char *v11; // r0 size_t v12; // r0 int v13; // r5 int v15[2]; // [sp+14h] [bp-4Ch] BYREF char *v16; // [sp+1Ch] [bp-44h] char *v17[3]; // [sp+20h] [bp-40h] BYREF char v18; // [sp+2Ch] [bp-34h] BYREF int v19[3]; // [sp+38h] [bp-28h] BYREF int v20[3]; // [sp+44h] [bp-1Ch] BYREF int v21[3]; // [sp+50h] [bp-10h] BYREF v15[0] = 0; v15[1] = 0; v16 = nullptr; if ( a2 == 1 ) { v4 = "weekly_state"; } else if ( a2 == 2 ) { v4 = "event_state"; } else { v4 = "daily_state"; } std::string::assign(v15, v4); if ( (v15[0] & 1) != 0 ) v5 = v16; else v5 = (char *)v15 + 1; if ( GameLevelManager::isDLActive(a1, v5) ) { v13 = 0; } else { if ( (v15[0] & 1) != 0 ) v7 = v16; else v7 = (char *)v15 + 1; GameLevelManager::addDLToActive(a1, v7, v6, LOBYTE(v15[0])); GameLevelManager::getBasePostString((GameLevelManager *)v17); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); CString = (const char *)cocos2d::CCString::getCString(v8); GameLevelManager::rewardSessionToken((GameLevelManager *)&v18); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&secret=%s&type=%i&chk=%s", CString, a2); v11 = (char *)cocos2d::CCString::getCString(v10); std::string::append(v17, v11); std::string::~string((int)&v18); memset(v19, 0, sizeof(v19)); std::string::__init(v19, "https://www.boomlings.com/database/getGJDailyLevel.php", 0x36u); if ( ((int)v17[0] & 1) == 0 ) CString = (char *)v17 + 1; v20[0] = 0; if ( ((int)v17[0] & 1) != 0 ) CString = v17[2]; v20[1] = 0; v20[2] = 0; v12 = strlen(CString); std::string::__init(v20, CString, v12); std::string::basic_string(v21, (int)v15); GameLevelManager::ProcessHttpRequest(a1, v19, (int)v20, (int)v21, 54); std::string::~string((int)v21); std::string::~string((int)v20); std::string::~string((int)v19); std::string::~string((int)v17); v13 = 1; } std::string::~string((int)v15); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source