// // GameLevelManager::searchThreadMessages from 0x826a64 to 0x826e88 (1060 bytes) // // 3 xrefs: // > ThreadViewPopup::onLoadEarlier @ 0xc659b8 // > ThreadViewPopup::startSearch @ 0xc78b34 // > @ 0x5fb60 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:55:04 +0000 // __int64 __fastcall GameLevelManager::searchThreadMessages(cocos2d::CCObject *a1, char *a2, char *a3, __int64 a4) { unsigned int v5; // w20 __int64 v8; // x1 cocos2d::CCString *v10; // x0 const char *CString; // x0 char *v12; // x25 size_t v13; // x0 __int64 v14; // x26 __int64 v15; // x26 cocos2d::CCNode *v16; // x0 __int64 v17; // x27 cocos2d::CCObject *v18; // x26 size_t v19; // x0 cocos2d::CCString *v20; // x0 __int64 v21; // x0 cocos2d::CCString *v22; // x0 size_t v23; // x0 char v24; // w0 __int64 v25; // x0 __int64 v26; // x1 char *v27; // x1 size_t v28; // x2 const char *v29; // x1 size_t v30; // x0 size_t v31; // x0 char *v32; // [xsp+68h] [xbp+68h] char *v33; // [xsp+68h] [xbp+68h] __int64 v34[2]; // [xsp+78h] [xbp+78h] BYREF void *v35; // [xsp+88h] [xbp+88h] __int64 v36; // [xsp+90h] [xbp+90h] BYREF __int64 v37; // [xsp+98h] [xbp+98h] void *v38; // [xsp+A0h] [xbp+A0h] size_t v39[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v40; // [xsp+B8h] [xbp+B8h] __int64 v41[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v42; // [xsp+D0h] [xbp+D0h] __int64 v43[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v44; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v45; // [xsp+F0h] [xbp+F0h] BYREF __int64 v46; // [xsp+F8h] [xbp+F8h] void *v47; // [xsp+100h] [xbp+100h] v5 = (unsigned int)a2; if ( (int)a2 <= 0 || a4 < 0 ) return 0; v8 = (unsigned __int8)*a3 >> 1; if ( (*a3 & 1) != 0 ) v8 = *((_QWORD *)a3 + 1); if ( !v8 ) return 0; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"threadSearch_%i_%lli", (const char *)v5, a4); CString = (const char *)cocos2d::CCString::getCString(v10); v45 = nullptr; v12 = (char *)CString; v46 = 0; v47 = nullptr; v13 = strlen(CString); v14 = *((_QWORD *)a1 + 136); std::string::__init((__int64 *)&v45, v12, v13); v15 = cocos2d::CCDictionary::objectForKey(v14, &v45); v16 = (cocos2d::CCNode *)(unsigned __int8)v45; if ( ((unsigned __int8)v45 & 1) != 0 ) { operator delete(v47); if ( !v15 ) goto LABEL_9; return 0; } if ( v15 ) return 0; LABEL_9: v17 = *((_QWORD *)a1 + 136); v18 = (cocos2d::CCObject *)cocos2d::CCNode::create(v16); v45 = nullptr; v46 = 0; v47 = nullptr; v19 = strlen(v12); std::string::__init((__int64 *)&v45, v12, v19); cocos2d::CCDictionary::setObject(v17, v18); if ( ((unsigned __int8)v45 & 1) != 0 ) operator delete(v47); GameLevelManager::getBasePostString(v34); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); v21 = cocos2d::CCString::getCString(v20); v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&threadID=%i&beforeID=%lli&secret=%s", (const char *)v5, a4, v21); v32 = (char *)cocos2d::CCString::getCString(v22); v23 = strlen(v32); std::string::append((__int64)v34, v32, v23); std::string::append((__int64)v34, "&query=", 7u); v24 = *a3; v36 = 0; v37 = 0; v38 = nullptr; if ( (v24 & 1) != 0 ) { std::string::__init(&v36, *((void **)a3 + 2), *((_QWORD *)a3 + 1)); } else { v25 = *(_QWORD *)a3; v26 = *((_QWORD *)a3 + 1); v38 = *((void **)a3 + 2); v36 = v25; v37 = v26; } LevelTools::base64EncodeString((__int64)&v36, v39); if ( (v39[0] & 1) != 0 ) { v27 = (char *)v40; v28 = v39[1]; } else { v28 = LOBYTE(v39[0]) >> 1; v27 = (char *)v39 + 1; } std::string::append((__int64)v34, v27, v28); if ( (v39[0] & 1) != 0 ) operator delete(v40); if ( (v36 & 1) != 0 ) operator delete(v38); v41[0] = 0; v41[1] = 0; v42 = nullptr; std::string::__init(v41, "https://www.boomlings.com/database/searchGJThreadMessages.php", 0x3Du); v29 = (char *)v34 + 1; if ( (v34[0] & 1) != 0 ) v29 = (const char *)v35; v33 = (char *)v29; v43[0] = 0; v43[1] = 0; v44 = nullptr; v30 = strlen(v29); std::string::__init(v43, v33, v30); v45 = nullptr; v46 = 0; v47 = nullptr; v31 = strlen(v12); std::string::__init((__int64 *)&v45, v12, v31); GameLevelManager::ProcessHttpRequest(a1, v41, (__int64)v43, (char *)&v45, 94); if ( ((unsigned __int8)v45 & 1) != 0 ) operator delete(v47); if ( (v43[0] & 1) != 0 ) operator delete(v44); if ( (v41[0] & 1) != 0 ) operator delete(v42); if ( (v34[0] & 1) != 0 ) operator delete(v35); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source