//
// sub_1000C2948 from 0x1000c2948 to 0x1000c2b6c (548 bytes)
//
// 16 xrefs:
// > sub_1000C2BD8 @ 0x1000c2c60
// > sub_1000C2D74 @ 0x1000c2e30
// > sub_1000C2E84 @ 0x1000c2ef8
// > sub_1000C2F44 @ 0x1000c3000
// > sub_1000C3054 @ 0x1000c30c8
// > sub_1000C41A4 @ 0x1000c4240
// > sub_1000C45A8 @ 0x1000c4664
// > sub_1000C46B8 @ 0x1000c472c
// > sub_1000C4778 @ 0x1000c4834
// > sub_1000C4888 @ 0x1000c48fc
// > sub_1000C4948 @ 0x1000c49bc
// > sub_1000C4A0C @ 0x1000c4a80
// > sub_1000C4ACC @ 0x1000c4b40
// > sub_1000C4B90 @ 0x1000c4c04
// > sub_1000C4C50 @ 0x1000c4cc4
// > sub_1000C4D10 @ 0x1000c4d84
//
// 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:47 +0000
//
__int64 __fastcall sub_1000C2948(
__int64 a1,
char *a2,
char *a3,
__int64 a4,
int a5,
__int64 a6,
__int64 a7,
_QWORD *a8)
{
__int64 v16; // x27
__int64 v17; // x0
__int64 v18; // x27
__int64 v20; // x27
__int64 v21; // x28
__int64 v22; // x0
__int64 v23; // x0
const std::string::value_type *CString; // x0
int v25; // w9
const std::string::value_type *v26; // x1
std::string::size_type v27; // x2
__int64 v28; // x0
const char *v29; // x0
__int64 v30; // x0
const std::string::value_type *v31; // x0
int v32; // w0
std::string *v33; // x1
void *__p[2]; // [xsp+30h] [xbp-B0h] BYREF
char v35; // [xsp+47h] [xbp-99h]
void *v36[2]; // [xsp+48h] [xbp-98h] BYREF
char v37; // [xsp+5Fh] [xbp-81h]
std::string v38; // [xsp+60h] [xbp-80h] BYREF
std::string v39; // [xsp+78h] [xbp-68h] BYREF
if ( a5 < 1 )
return 0;
v16 = *(_QWORD *)(a1 + 1088);
sub_100009900(&v39, a2);
v17 = cocos2d::CCDictionary::objectForKey(v16, &v39);
v18 = v17;
if ( SHIBYTE(v39.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v39.__r_.__value_.__l.__data_);
if ( v18 )
return 0;
}
else if ( v17 )
{
return 0;
}
v20 = *(_QWORD *)(a1 + 1088);
v21 = cocos2d::CCNode::create(v17);
sub_100009900(&v39, a2);
v22 = cocos2d::CCDictionary::setObject(v20, v21, &v39);
if ( SHIBYTE(v39.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v39.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString(v22, &v39);
v23 = sub_1003065B0("&targetAccountID=%i", a5);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v23);
std::string::append(&v39, CString);
v25 = *(char *)(a6 + 23);
if ( v25 >= 0 )
v26 = (const std::string::value_type *)a6;
else
v26 = *(const std::string::value_type **)a6;
if ( v25 >= 0 )
v27 = *(unsigned __int8 *)(a6 + 23);
else
v27 = *(_QWORD *)(a6 + 8);
std::string::append(&v39, v26, v27);
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("&secret=%s", v29);
v31 = (const std::string::value_type *)cocos2d::CCString::getCString(v30);
v32 = (unsigned int)std::string::append(&v39, v31);
sub_1000B74A0(v32, &v39, a7, a8);
sub_100009900(&v38, a3);
if ( (v39.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v33 = &v39;
else
v33 = (std::string *)v39.__r_.__value_.__r.__words[0];
sub_100009900(v36, (char *)v33);
sub_100009900(__p, a2);
GameLevelManager::ProcessHttpRequest(a1, &v38, (char *)v36, (const std::string::value_type *)__p, a4);
if ( v35 < 0 )
operator delete(__p[0]);
if ( v37 < 0 )
operator delete(v36[0]);
if ( SHIBYTE(v38.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v38.__r_.__value_.__l.__data_);
if ( SHIBYTE(v39.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v39.__r_.__value_.__l.__data_);
return 1;
}