// // sub_1000C5938 from 0x1000c5938 to 0x1000c5c58 (800 bytes) // // 6 xrefs: // > sub_1004F93D4 @ 0x1004f94ac // > sub_1004FA900 @ 0x1004fa98c // > sub_1004FAA54 @ 0x1004faac8 // > sub_1004FB274 @ 0x1004fb2d0 // > sub_1004FB598 @ 0x1004fb624 // > ThreadViewPopup::threadMessagesFinished @ 0x1004fe538 // // 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 10:58:49 +0000 // __int64 __fastcall sub_1000C5938(__int64 a1, int a2, __int64 a3, __int64 a4, int a5, __int64 a6, __int64 a7) { __int64 result; // x0 _BOOL4 v15; // w20 __int64 v16; // x8 __int64 v17; // x0 char *CString; // x28 __int64 v19; // x27 __int64 v20; // x0 __int64 v21; // x27 __int64 v22; // x27 __int64 v23; // x0 char *v24; // x1 __int64 v25; // x28 char *v26; // x19 __int64 v27; // x0 __int64 v28; // x0 const char *v29; // x0 __int64 v30; // x0 const std::string::value_type *v31; // x0 __int64 v32; // x0 const std::string::value_type *v33; // x0 __int64 v34; // x0 const std::string::value_type *v35; // x0 const std::string::value_type *v36; // x1 std::string::size_type v37; // x2 std::string *v38; // x1 __int64 v39; // [xsp+30h] [xbp-F0h] void *v40[2]; // [xsp+38h] [xbp-E8h] BYREF char v41; // [xsp+4Fh] [xbp-D1h] void *v42[2]; // [xsp+50h] [xbp-D0h] BYREF char v43; // [xsp+67h] [xbp-B9h] std::string v44; // [xsp+68h] [xbp-B8h] BYREF void *__p[2]; // [xsp+80h] [xbp-A0h] BYREF __int64 v46; // [xsp+90h] [xbp-90h] void *v47[2]; // [xsp+98h] [xbp-88h] BYREF unsigned __int8 v48; // [xsp+AFh] [xbp-71h] std::string v49; // [xsp+B0h] [xbp-70h] BYREF result = 0; if ( a2 >= 1 && ((a4 | a3 | a6) & 0x8000000000000000LL) == 0 ) { if ( a6 ) { v15 = 0; } else { v16 = *(unsigned __int8 *)(a7 + 23); if ( (v16 & 0x80u) != 0LL ) v16 = *(_QWORD *)(a7 + 8); v15 = v16 != 0; } v17 = sub_1003065B0("threadMsgs_%i_%lli_%lli_%lli_%i", a2, a3, a4, a6, v15); CString = (char *)cocos2d::CCString::getCString(v17); v19 = *(_QWORD *)(a1 + 1088); sub_100009900(&v49, CString); v20 = cocos2d::CCDictionary::objectForKey(v19, &v49); v21 = v20; if ( SHIBYTE(v49.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v49.__r_.__value_.__l.__data_); if ( v21 ) return 0; } else if ( v20 ) { return 0; } v39 = a1; v22 = *(_QWORD *)(a1 + 1088); v23 = cocos2d::CCNode::create(v20); v24 = CString; v25 = v23; v26 = v24; sub_100009900(&v49, v24); v27 = cocos2d::CCDictionary::setObject(v22, v25, &v49); if ( SHIBYTE(v49.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v49.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(v27, &v49); v28 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); v29 = (const char *)cocos2d::CCString::getCString(v28); v30 = sub_1003065B0("&threadID=%i&beforeID=%lli&afterID=%lli&secret=%s", a2, a3, a4, v29); v31 = (const std::string::value_type *)cocos2d::CCString::getCString(v30); std::string::append(&v49, v31); if ( (a5 & 0x80000000) == 0 ) { v32 = sub_1003065B0("&mv=%i", a5); v33 = (const std::string::value_type *)cocos2d::CCString::getCString(v32); std::string::append(&v49, v33); } if ( a6 < 1 ) { if ( v15 ) { std::string::append(&v49, "&date="); if ( *(char *)(a7 + 23) < 0 ) { sub_1000097D0(__p, *(void **)a7, *(_QWORD *)(a7 + 8)); } else { *(_OWORD *)__p = *(_OWORD *)a7; v46 = *(_QWORD *)(a7 + 16); } LevelTools::base64EncodeString(v47, __p); if ( (v48 & 0x80u) == 0 ) v36 = (const std::string::value_type *)v47; else v36 = (const std::string::value_type *)v47[0]; if ( (v48 & 0x80u) == 0 ) v37 = v48; else v37 = (std::string::size_type)v47[1]; std::string::append(&v49, v36, v37); if ( (char)v48 < 0 ) operator delete(v47[0]); if ( SHIBYTE(v46) < 0 ) operator delete(__p[0]); } } else { v34 = sub_1003065B0("&aroundID=%lli", a6); v35 = (const std::string::value_type *)cocos2d::CCString::getCString(v34); std::string::append(&v49, v35); } sub_100009900(&v44, "https://www.boomlings.com/database/getGJThreadMessages.php"); if ( (v49.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v38 = &v49; else v38 = (std::string *)v49.__r_.__value_.__r.__words[0]; sub_100009900(v42, (char *)v38); sub_100009900(v40, v26); GameLevelManager::ProcessHttpRequest(v39, &v44, (char *)v42, (const std::string::value_type *)v40, 93); if ( v41 < 0 ) operator delete(v40[0]); if ( v43 < 0 ) operator delete(v42[0]); if ( SHIBYTE(v44.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v44.__r_.__value_.__l.__data_); if ( SHIBYTE(v49.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v49.__r_.__value_.__l.__data_); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source