// // sub_1000C54E0 from 0x1000c54e0 to 0x1000c57b4 (724 bytes) // // 1 xrefs: // > sub_1004F5C34 @ 0x1004f5c94 // // 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_1000C54E0(__int64 a1, int a2, __int64 a3, int a4, __int64 a5) { __int64 v10; // x24 __int64 v11; // x0 __int64 v12; // x24 __int64 v14; // x24 __int64 v15; // x25 __int64 v16; // x0 __int64 v17; // x0 const char *CString; // x0 __int64 v19; // x0 const std::string::value_type *v20; // x0 __int64 v21; // x8 const std::string::value_type *v22; // x1 std::string::size_type v23; // x2 __int64 v24; // x8 const std::string::value_type *v25; // x1 std::string::size_type v26; // x2 std::string *v27; // x1 void *v28[2]; // [xsp+38h] [xbp-D8h] BYREF char v29; // [xsp+4Fh] [xbp-C1h] void *v30[2]; // [xsp+50h] [xbp-C0h] BYREF char v31; // [xsp+67h] [xbp-A9h] std::string v32; // [xsp+68h] [xbp-A8h] BYREF void *__p[2]; // [xsp+80h] [xbp-90h] BYREF __int64 v34; // [xsp+90h] [xbp-80h] void **v35; // [xsp+A0h] [xbp-70h] BYREF std::string::size_type v36; // [xsp+A8h] [xbp-68h] unsigned __int8 v37; // [xsp+B7h] [xbp-59h] std::string v38; // [xsp+B8h] [xbp-58h] BYREF if ( a2 < 0 ) return 0; v10 = *(_QWORD *)(a1 + 1088); sub_100009900(&v38, "getThreads"); v11 = cocos2d::CCDictionary::objectForKey(v10, &v38); v12 = v11; if ( SHIBYTE(v38.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v38.__r_.__value_.__l.__data_); if ( v12 ) return 0; } else if ( v11 ) { return 0; } v14 = *(_QWORD *)(a1 + 1088); v15 = cocos2d::CCNode::create(v11); sub_100009900(&v38, "getThreads"); v16 = cocos2d::CCDictionary::setObject(v14, v15, &v38); if ( SHIBYTE(v38.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v38.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(v16, &v38); v17 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); CString = (const char *)cocos2d::CCString::getCString(v17); v19 = sub_1003065B0("&page=%i&filter=%i&removed=1&secret=%s", a2, a4, CString); v20 = (const std::string::value_type *)cocos2d::CCString::getCString(v19); std::string::append(&v38, v20); v21 = *(unsigned __int8 *)(a3 + 23); if ( (v21 & 0x80u) != 0LL ) v21 = *(_QWORD *)(a3 + 8); if ( v21 ) { std::string::append(&v38, "&search="); if ( *(char *)(a3 + 23) < 0 ) { sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8)); } else { *(_OWORD *)__p = *(_OWORD *)a3; v34 = *(_QWORD *)(a3 + 16); } LevelTools::base64EncodeString(&v35, __p); if ( (v37 & 0x80u) == 0 ) v22 = (const std::string::value_type *)&v35; else v22 = (const std::string::value_type *)v35; if ( (v37 & 0x80u) == 0 ) v23 = v37; else v23 = v36; std::string::append(&v38, v22, v23); if ( (char)v37 < 0 ) operator delete(v35); if ( SHIBYTE(v34) < 0 ) operator delete(__p[0]); } v24 = *(unsigned __int8 *)(a5 + 23); if ( (v24 & 0x80u) != 0LL ) v24 = *(_QWORD *)(a5 + 8); if ( v24 ) { std::operator+(&v35, "&user=", a5); v25 = (v37 & 0x80u) == 0 ? (const std::string::value_type *)&v35 : (const std::string::value_type *)v35; v26 = (v37 & 0x80u) == 0 ? v37 : v36; std::string::append(&v38, v25, v26); if ( (char)v37 < 0 ) operator delete(v35); } sub_100009900(&v32, "https://www.boomlings.com/database/getGJThreads.php"); if ( (v38.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v27 = &v38; else v27 = (std::string *)v38.__r_.__value_.__r.__words[0]; sub_100009900(v30, (char *)v27); sub_100009900(v28, "getThreads"); GameLevelManager::ProcessHttpRequest(a1, &v32, (char *)v30, (const std::string::value_type *)v28, 92); if ( v29 < 0 ) operator delete(v28[0]); if ( v31 < 0 ) operator delete(v30[0]); if ( SHIBYTE(v32.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v32.__r_.__value_.__l.__data_); if ( SHIBYTE(v38.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v38.__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source