// // GameLevelManager::getGauntletLevels from 0x4b6808 to 0x4b69b2 (426 bytes) // // 1 xrefs: // > GauntletLayer::init @ 0x60f164 // // 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:09 +0000 // int __fastcall GameLevelManager::getGauntletLevels(GameLevelManager *this, const char *a2) { const char *v2; // r11 char *v5; // r1 int v6; // r2 char *v7; // r1 cocos2d::CCString *v8; // r0 char *CString; // r0 cocos2d::CCString *v10; // r0 char *v11; // r0 size_t v12; // r0 char *v13; // r1 size_t v14; // r0 char *v16; // [sp+14h] [bp-8h] unsigned __int8 v17; // [sp+1Ch] [bp+0h] BYREF _BYTE v18[7]; // [sp+1Dh] [bp+1h] BYREF char *v19; // [sp+24h] [bp+8h] char *v20[3]; // [sp+28h] [bp+Ch] BYREF int v21[3]; // [sp+34h] [bp+18h] BYREF int v22[3]; // [sp+40h] [bp+24h] BYREF int v23[3]; // [sp+4Ch] [bp+30h] BYREF int v24[3]; // [sp+58h] [bp+3Ch] BYREF GameLevelManager::getGauntletSearchKey((GameLevelManager *)&v17, (int)this, a2); if ( (v17 & 1) != 0 ) v5 = v19; else v5 = v18; if ( !GameLevelManager::isDLActive(this, v5) ) { if ( (v17 & 1) != 0 ) v7 = v19; else v7 = v18; GameLevelManager::addDLToActive(this, v7, v6, v17); GameLevelManager::getBasePostString((GameLevelManager *)v20); std::string::append(v20, "&gauntlet="); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); CString = (char *)cocos2d::CCString::getCString(v8); std::string::append(v20, CString); std::string::append(v20, "&secret="); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); v11 = (char *)cocos2d::CCString::getCString(v10); std::string::append(v20, v11); memset(v21, 0, sizeof(v21)); std::string::__init(v21, "aHR0cDovL3d3dy5ib29tbGluZ3MuY29tL2RhdGFiYXNlL2dldEdKTGV2ZWxzMjEucGhw", 0x44u); LevelTools::base64DecodeString(v22, v21); if ( ((int)v20[0] & 1) == 0 ) v2 = (char *)v20 + 1; v23[0] = 0; if ( ((int)v20[0] & 1) != 0 ) v2 = v20[2]; v23[1] = 0; v23[2] = 0; v12 = strlen(v2); std::string::__init(v23, v2, v12); if ( (v17 & 1) == 0 ) v13 = v18; v24[0] = 0; if ( (v17 & 1) != 0 ) v13 = v19; v24[1] = 0; v24[2] = 0; v16 = v13; v14 = strlen(v13); std::string::__init(v24, v16, v14); GameLevelManager::ProcessHttpRequest(this, v22, (int)v23, (int)v24, 2); std::string::~string((int)v24); std::string::~string((int)v23); std::string::~string((int)v22); std::string::~string((int)v21); std::string::~string((int)v20); } return std::string::~string((int)&v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source