//
// sub_1000C39D8 from 0x1000c39d8 to 0x1000c3ba0 (456 bytes)
//
// 1 xrefs:
// > ReportQueuePopup::requestPage @ 0x1005236d4
//
// 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_1000C39D8(__int64 a1, int a2, int a3, int a4)
{
__int64 v8; // x23
__int64 v9; // x0
__int64 v10; // x23
__int64 v12; // x23
__int64 v13; // x24
__int64 v14; // x0
__int64 v15; // x0
const char *CString; // x0
__int64 v17; // x0
const std::string::value_type *v18; // x0
std::string *v19; // x1
void *__p[2]; // [xsp+30h] [xbp-90h] BYREF
char v21; // [xsp+47h] [xbp-79h]
void *v22[2]; // [xsp+48h] [xbp-78h] BYREF
char v23; // [xsp+5Fh] [xbp-61h]
std::string v24; // [xsp+60h] [xbp-60h] BYREF
std::string v25; // [xsp+78h] [xbp-48h] BYREF
if ( a2 < 0 )
return 0;
v8 = *(_QWORD *)(a1 + 1088);
sub_100009900(&v25, "adminReportQueue");
v9 = cocos2d::CCDictionary::objectForKey(v8, &v25);
v10 = v9;
if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v25.__r_.__value_.__l.__data_);
if ( v10 )
return 0;
}
else if ( v9 )
{
return 0;
}
v12 = *(_QWORD *)(a1 + 1088);
v13 = cocos2d::CCNode::create(v9);
sub_100009900(&v25, "adminReportQueue");
v14 = cocos2d::CCDictionary::setObject(v12, v13, &v25);
if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v25.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString(v14, &v25);
v15 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v15);
v17 = sub_1003065B0("&page=%i&sort=%i&mode=%i&flags=1&secret=%s", a2, a3, a4, CString);
v18 = (const std::string::value_type *)cocos2d::CCString::getCString(v17);
std::string::append(&v25, v18);
sub_100009900(&v24, "https://www.boomlings.com/database/adminGetReportQueue.php");
if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v19 = &v25;
else
v19 = (std::string *)v25.__r_.__value_.__r.__words[0];
sub_100009900(v22, (char *)v19);
sub_100009900(__p, "adminReportQueue");
GameLevelManager::ProcessHttpRequest(a1, &v24, (char *)v22, (const std::string::value_type *)__p, 87);
if ( v21 < 0 )
operator delete(__p[0]);
if ( v23 < 0 )
operator delete(v22[0]);
if ( SHIBYTE(v24.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v24.__r_.__value_.__l.__data_);
if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v25.__r_.__value_.__l.__data_);
return 1;
}