// // GameLevelManager::searchThreadMessages from 0x4bfa4c to 0x4bfc72 (550 bytes) // // 2 xrefs: // > ThreadViewPopup::onLoadEarlier @ 0x749502 // > ThreadViewPopup::startSearch @ 0x7534fa // // 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:22 +0000 // int __fastcall GameLevelManager::searchThreadMessages( GameManager *a1, const char *a2, unsigned __int8 *a3, int a4, int a5, int a6) { const char *v7; // r11 int v10; // r3 cocos2d::CCString *v12; // r0 const char *CString; // r0 int v14; // r5 const char *v15; // r6 size_t v16; // r0 int v17; // r5 cocos2d::CCNode *v18; // r0 cocos2d::CCObject *v19; // r0 size_t v20; // r0 cocos2d::CCString *v21; // r0 int v22; // r0 cocos2d::CCString *v23; // r0 char *v24; // r0 char *v25; // r1 size_t v26; // r2 size_t v27; // r0 size_t v28; // r0 int v29; // [sp+14h] [bp-60h] cocos2d::CCObject *v30; // [sp+1Ch] [bp-58h] char *v31[3]; // [sp+24h] [bp-50h] BYREF int v32[3]; // [sp+30h] [bp-44h] BYREF _DWORD v33[3]; // [sp+3Ch] [bp-38h] BYREF int v34[3]; // [sp+48h] [bp-2Ch] BYREF int v35[3]; // [sp+54h] [bp-20h] BYREF int v36; // [sp+60h] [bp-14h] BYREF int v37; // [sp+64h] [bp-10h] int v38; // [sp+68h] [bp-Ch] v7 = a2; if ( (int)a2 <= 0 || a6 < 0 ) return 0; v10 = *a3; if ( !((v10 & 1) != 0 ? *((_DWORD *)a3 + 1) : v10 >> 1) ) return 0; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"threadSearch_%i_%lli", a2, a5, a6); CString = (const char *)cocos2d::CCString::getCString(v12); v36 = 0; v37 = 0; v38 = 0; v14 = *((_DWORD *)a1 + 187); v15 = CString; v16 = strlen(CString); std::string::__init(&v36, v15, v16); v17 = cocos2d::CCDictionary::objectForKey(v14, &v36); v18 = (cocos2d::CCNode *)std::string::~string((int)&v36); if ( v17 ) return 0; v29 = *((_DWORD *)a1 + 187); v19 = (cocos2d::CCObject *)cocos2d::CCNode::create(v18); v36 = 0; v37 = 0; v38 = 0; v30 = v19; v20 = strlen(v15); std::string::__init(&v36, v15, v20); cocos2d::CCDictionary::setObject(v29, v30); std::string::~string((int)&v36); GameLevelManager::getBasePostString((GameLevelManager *)v31); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); v22 = cocos2d::CCString::getCString(v21); v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&threadID=%i&beforeID=%lli&secret=%s", v7, a5, a6, v22); v24 = (char *)cocos2d::CCString::getCString(v23); std::string::append(v31, v24); std::string::append(v31, "&query="); std::string::basic_string(v32, (int)a3); LevelTools::base64EncodeString(v33, v32); if ( (v33[0] & 1) != 0 ) { v25 = (char *)v33[2]; v26 = v33[1]; } else { v26 = (int)LOBYTE(v33[0]) >> 1; v25 = (char *)v33 + 1; } std::string::append(v31, v25, v26); std::string::~string((int)v33); std::string::~string((int)v32); memset(v34, 0, sizeof(v34)); std::string::__init(v34, "https://www.boomlings.com/database/searchGJThreadMessages.php", 0x3Du); v35[0] = 0; v35[1] = 0; if ( ((int)v31[0] & 1) == 0 ) v7 = (char *)v31 + 1; v35[2] = 0; if ( ((int)v31[0] & 1) != 0 ) v7 = v31[2]; v27 = strlen(v7); std::string::__init(v35, v7, v27); v36 = 0; v37 = 0; v38 = 0; v28 = strlen(v15); std::string::__init(&v36, v15, v28); GameLevelManager::ProcessHttpRequest(a1, v34, (int)v35, (int)&v36, 94); std::string::~string((int)&v36); std::string::~string((int)v35); std::string::~string((int)v34); std::string::~string((int)v31); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source