// // GameLevelManager::getLevelComments from 0x4b7934 to 0x4b7b72 (574 bytes) // // 2 xrefs: // > InfoLayer::updateUserScoreFinished @ 0x53cf72 // > InfoLayer::loadPage @ 0x53ea22 // // 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:11 +0000 // int __fastcall GameLevelManager::getLevelComments( GameLevelManager *a1, const char *a2, const char *a3, const char *a4, int a5, int a6) { char *v10; // r1 int v11; // r2 char *v12; // r1 cocos2d::CCString *v13; // r0 int CString; // r0 cocos2d::CCString *v15; // r0 char *v16; // r0 char *v17; // r1 cocos2d::CCString *v18; // r0 char *v19; // r0 GameManager *v20; // r0 GameManager *v21; // r0 GameManager *GameVariable; // r0 int v23; // r9 GameManager *v24; // r0 cocos2d::CCString *v25; // r0 const char *v26; // r9 char *v27; // r0 size_t v28; // r0 size_t v29; // r0 cocos2d::CCString *v31; // r0 char *v32; // r0 int v33[2]; // [sp+14h] [bp-50h] BYREF char *v34; // [sp+1Ch] [bp-48h] char *v35[3]; // [sp+20h] [bp-44h] BYREF int v36[3]; // [sp+2Ch] [bp-38h] BYREF int v37[3]; // [sp+38h] [bp-2Ch] BYREF int v38[3]; // [sp+44h] [bp-20h] BYREF int v39[3]; // [sp+50h] [bp-14h] BYREF GameLevelManager::getCommentKey(v33, (int)a1, a2, (int)a3, a5, a6); if ( (v33[0] & 1) != 0 ) v10 = v34; else v10 = (char *)v33 + 1; if ( GameLevelManager::isDLActive(a1, v10) ) return std::string::~string((int)v33); if ( (v33[0] & 1) != 0 ) v12 = v34; else v12 = (char *)v33 + 1; GameLevelManager::addDLToActive(a1, v12, v11, LOBYTE(v33[0])); GameLevelManager::getBasePostString((GameLevelManager *)v35); v13 = (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 = cocos2d::CCString::getCString(v13); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&page=%i&total=%i&secret=%s&mode=%i", a3, a4, CString, a5); v16 = (char *)cocos2d::CCString::getCString(v15); std::string::append(v35, v16); if ( a6 == 1 ) v17 = "&userID="; else v17 = "&levelID="; std::string::append(v35, v17); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); v19 = (char *)cocos2d::CCString::getCString(v18); v20 = (GameManager *)std::string::append(v35, v19); switch ( a6 ) { case 3: v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&cType=%i", &byte_6); break; case 4: v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&cType=%i", &byte_7); break; case 5: v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&cType=%i", byte_8); break; default: goto LABEL_15; } v32 = (char *)cocos2d::CCString::getCString(v31); v20 = (GameManager *)std::string::append(v35, v32); LABEL_15: v21 = (GameManager *)GameManager::sharedState(v20); GameVariable = (GameManager *)GameManager::getGameVariable(v21, "0088"); if ( GameVariable ) v23 = 20; else v23 = 10; v24 = (GameManager *)GameManager::sharedState(GameVariable); if ( GameManager::getGameVariable(v24, "0094") ) { v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&count=%i", (const char *)(2 * v23)); LABEL_24: v27 = (char *)cocos2d::CCString::getCString(v25); std::string::append(v35, v27); goto LABEL_21; } if ( v23 != 10 ) { v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&count=%i", (const char *)v23); goto LABEL_24; } LABEL_21: if ( a6 == 1 ) v26 = "https://www.boomlings.com/database/getGJCommentHistory.php"; else v26 = "https://www.boomlings.com/database/getGJComments21.php"; memset(v36, 0, sizeof(v36)); v28 = strlen(v26); std::string::__init(v36, v26, v28); std::string::basic_string(v37, (int)v36); if ( ((int)v35[0] & 1) == 0 ) a4 = (char *)v35 + 1; v38[0] = 0; if ( ((int)v35[0] & 1) != 0 ) a4 = v35[2]; v38[1] = 0; v38[2] = 0; v29 = strlen(a4); std::string::__init(v38, a4, v29); std::string::basic_string(v39, (int)v33); GameLevelManager::ProcessHttpRequest(a1, v37, (int)v38, (int)v39, 12); std::string::~string((int)v39); std::string::~string((int)v38); std::string::~string((int)v37); std::string::~string((int)v36); std::string::~string((int)v35); return std::string::~string((int)v33); }
GD Web Decomp Icon

GD Web Decomp

Raw Source