// // sub_1000C4290 from 0x1000c4290 to 0x1000c453c (684 bytes) // // 3 xrefs: // > sub_1005018F0 @ 0x10050195c // > ThreadOptionsPopup::FLAlert_Clicked @ 0x10050db88 // > sub_10054AF84 @ 0x10054b078 // // 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:48 +0000 // __int64 __fastcall sub_1000C4290(__int64 a1, int a2, const char *a3, __int64 a4) { const char *v5; // x23 int v8; // w10 int v9; // w8 const char *v10; // x9 unsigned __int64 v11; // x8 bool v12; // cf int v13; // w8 int v14; // w9 __int64 v15; // x0 char *CString; // x22 __int64 v17; // x24 __int64 v18; // x0 __int64 v19; // x24 __int64 v21; // x24 __int64 v22; // x25 __int64 v23; // x0 __int64 v24; // x0 const char *v25; // x0 __int64 v26; // x0 const std::string::value_type *v27; // x0 std::string *v28; // x1 void *__p[2]; // [xsp+30h] [xbp-A0h] BYREF char v30; // [xsp+47h] [xbp-89h] void *v31[2]; // [xsp+48h] [xbp-88h] BYREF char v32; // [xsp+5Fh] [xbp-71h] std::string v33; // [xsp+60h] [xbp-70h] BYREF std::string v34; // [xsp+78h] [xbp-58h] BYREF if ( a2 < 1 ) return 0; v5 = a3; if ( a3[23] < 0 ) { if ( *((_QWORD *)a3 + 1) == 4 && **(_DWORD **)a3 == 1801678700 ) { v9 = 101; goto LABEL_21; } if ( *((_QWORD *)a3 + 1) != 6 ) { v9 = 103; goto LABEL_21; } v10 = *(const char **)a3; } else { v8 = *((unsigned __int8 *)a3 + 23); v9 = 103; if ( v8 == 4 ) { if ( *(_DWORD *)a3 == 1801678700 ) v9 = 101; else v9 = 103; goto LABEL_21; } v10 = a3; if ( v8 != 6 ) goto LABEL_21; } v11 = bswap64(*(unsigned int *)v10 | ((unsigned __int64)*((unsigned __int16 *)v10 + 2) << 32)); v12 = v11 >= 0x756E6C6F636B0000LL; v13 = v11 > 0x756E6C6F636B0000LL; v14 = !v12; if ( v13 == v14 ) v9 = 102; else v9 = 103; LABEL_21: v15 = sub_1003065B0("adminThread_%i_%i", a2, v9); CString = (char *)cocos2d::CCString::getCString(v15); v17 = *(_QWORD *)(a1 + 1088); sub_100009900(&v34, CString); v18 = cocos2d::CCDictionary::objectForKey(v17, &v34); v19 = v18; if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v34.__r_.__value_.__l.__data_); if ( v19 ) return 0; } else if ( v18 ) { return 0; } v21 = *(_QWORD *)(a1 + 1088); v22 = cocos2d::CCNode::create(v18); sub_100009900(&v34, CString); v23 = cocos2d::CCDictionary::setObject(v21, v22, &v34); if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v34.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(v23, &v34); if ( v5[23] < 0 ) v5 = *(const char **)v5; v24 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7"); v25 = (const char *)cocos2d::CCString::getCString(v24); v26 = sub_1003065B0("&threadID=%i&action=%s&messageID=%lli&secret=%s", a2, v5, a4, v25); v27 = (const std::string::value_type *)cocos2d::CCString::getCString(v26); std::string::append(&v34, v27); sub_100009900(&v33, "https://www.boomlings.com/database/adminThreadAction.php"); if ( (v34.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v28 = &v34; else v28 = (std::string *)v34.__r_.__value_.__r.__words[0]; sub_100009900(v31, (char *)v28); sub_100009900(__p, CString); GameLevelManager::ProcessHttpRequest(a1, &v33, (char *)v31, (const std::string::value_type *)__p, 100); if ( v30 < 0 ) operator delete(__p[0]); if ( v32 < 0 ) operator delete(v31[0]); if ( SHIBYTE(v33.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v33.__r_.__value_.__l.__data_); if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v34.__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source