//
// sub_1000B2924 from 0x1000b2924 to 0x1000b30e0 (1980 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onEnterTransitionDidFinish @ 0x10002dd3c
//
// 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:39 +0000
//
void __fastcall sub_1000B2924(_QWORD *a1)
{
__int64 v2; // x0
time_t v3; // x0
time_t v4; // x20
std::string *v5; // x0
unsigned __int64 v6; // x28
int v7; // w20
__int64 v8; // x9
__int64 v9; // x8
__int64 v10; // x19
__int64 v11; // x24
size_t v12; // x25
std::string *v13; // x26
const void *v14; // x1
int v15; // w10
const std::string::value_type *v16; // x1
std::string::size_type v17; // x2
std::string *v18; // x0
__int128 v19; // q0
std::string *v20; // x0
__int128 v21; // q0
std::string *p_p; // x1
std::string::size_type size; // x2
std::string *v24; // x0
__int128 v25; // q0
std::string::size_type v26; // x8
std::string *v27; // x0
__int128 v28; // q0
const std::string::value_type *v29; // x1
std::string::size_type v30; // x2
std::string *v31; // x0
__int128 v32; // q0
std::string *v33; // x0
__int128 v34; // q0
std::string *v35; // x1
std::string::size_type v36; // x2
std::string *v37; // x0
__int128 v38; // q0
std::string *v39; // x1
std::string::size_type v40; // x2
std::string::size_type v41; // x8
std::string *v42; // x0
__int128 v43; // q0
const std::string::value_type *v44; // x1
std::string::size_type v45; // x2
std::string *v46; // x0
__int128 v47; // q0
std::string *v48; // x0
__int128 v49; // q0
const std::string::value_type *v50; // x1
std::string *v51; // x0
__int128 v52; // q0
std::string *v53; // x1
std::string::size_type v54; // x2
std::string::size_type v55; // x8
__int64 v56; // x0
std::string *v57; // x1
std::string::size_type v58; // x2
__int64 v59; // x0
const std::string::value_type *CString; // x0
std::string *v61; // x1
std::string *v62; // x1
__int64 v63; // [xsp+38h] [xbp-1F8h]
__int64 v64; // [xsp+40h] [xbp-1F0h]
void *v65[2]; // [xsp+48h] [xbp-1E8h] BYREF
char v66; // [xsp+5Fh] [xbp-1D1h]
void *v67[2]; // [xsp+60h] [xbp-1D0h] BYREF
char v68; // [xsp+77h] [xbp-1B9h]
std::string v69; // [xsp+78h] [xbp-1B8h] BYREF
void *v70; // [xsp+90h] [xbp-1A0h] BYREF
std::string::size_type v71; // [xsp+98h] [xbp-198h]
unsigned __int8 v72; // [xsp+A7h] [xbp-189h]
std::string v73; // [xsp+A8h] [xbp-188h] BYREF
std::string v74; // [xsp+C0h] [xbp-170h] BYREF
std::string __p; // [xsp+E0h] [xbp-150h] BYREF
std::string v76; // [xsp+100h] [xbp-130h] BYREF
std::string v77; // [xsp+120h] [xbp-110h] BYREF
std::string v78; // [xsp+140h] [xbp-F0h] BYREF
std::string v79; // [xsp+160h] [xbp-D0h] BYREF
std::string v80; // [xsp+180h] [xbp-B0h] BYREF
std::string v81; // [xsp+198h] [xbp-98h] BYREF
_QWORD v82[3]; // [xsp+1B0h] [xbp-80h]
v2 = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(v2 + 352) > *(_DWORD *)(v2 + 356) && !sub_1000ADBAC((__int64)a1, "UploadDeathData") )
{
v3 = time(nullptr);
v4 = v3;
if ( !qword_1009F3998 || v3 - qword_1009F3998 >= 300 )
{
sub_100009900(&v81, "");
v64 = v4;
v5 = (std::string *)sub_100009900(&v80, "");
v6 = 0;
v7 = 0;
v8 = a1[106];
v82[0] = a1[95];
v82[1] = v8;
v63 = (__int64)a1;
v82[2] = a1[117];
do
{
v9 = v82[v6];
if ( v9 )
{
v10 = *(_QWORD *)(v9 + 56);
while ( 1 )
{
while ( 1 )
{
if ( !v10 )
{
LOBYTE(v9) = 0;
goto LABEL_116;
}
v11 = *(_QWORD *)(v10 + 264);
v10 = *(_QWORD *)(v10 + 288);
if ( v11 )
{
if ( (*(_BYTE *)(v11 + 1744) & 1) != 0 && (unsigned int)(*(_DWORD *)(v11 + 1140) - 1) >= 2 )
{
LODWORD(v5) = sub_1000AE894((__int64)v5, (_DWORD *)v11);
if ( (_DWORD)v5 )
break;
}
}
}
if ( *(char *)(v11 + 1743) >= 0 )
v12 = *(unsigned __int8 *)(v11 + 1743);
else
v12 = *(_QWORD *)(v11 + 1728);
sub_100026068((__int64)&v76, v12 + 1);
if ( (v76.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v13 = &v76;
else
v13 = (std::string *)v76.__r_.__value_.__r.__words[0];
if ( v12 )
{
if ( *(char *)(v11 + 1743) >= 0 )
v14 = (const void *)(v11 + 1720);
else
v14 = *(const void **)(v11 + 1720);
memmove(v13, v14, v12);
}
*(_WORD *)((char *)&v13->__r_.__value_.__l.__data_ + v12) = 59;
v15 = *(char *)(v11 + 1567);
if ( v15 >= 0 )
v16 = (const std::string::value_type *)(v11 + 1544);
else
v16 = *(const std::string::value_type **)(v11 + 1544);
if ( v15 >= 0 )
v17 = *(unsigned __int8 *)(v11 + 1567);
else
v17 = *(_QWORD *)(v11 + 1552);
v18 = std::string::append(&v76, v16, v17);
v19 = *(_OWORD *)&v18->__r_.__value_.__l.__data_;
v77.__r_.__value_.__r.__words[2] = v18->__r_.__value_.__r.__words[2];
*(_OWORD *)&v77.__r_.__value_.__l.__data_ = v19;
v18->__r_.__value_.__l.__size_ = 0;
v18->__r_.__value_.__r.__words[2] = 0;
v18->__r_.__value_.__r.__words[0] = 0;
v20 = std::string::append(&v77, ";");
v21 = *(_OWORD *)&v20->__r_.__value_.__l.__data_;
v78.__r_.__value_.__r.__words[2] = v20->__r_.__value_.__r.__words[2];
*(_OWORD *)&v78.__r_.__value_.__l.__data_ = v21;
v20->__r_.__value_.__l.__size_ = 0;
v20->__r_.__value_.__r.__words[2] = 0;
v20->__r_.__value_.__r.__words[0] = 0;
GameToolbox::intToString(*(unsigned int *)(v11 + 1656), &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
size = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
size = __p.__r_.__value_.__l.__size_;
v24 = std::string::append(&v78, (const std::string::value_type *)p_p, size);
v25 = *(_OWORD *)&v24->__r_.__value_.__l.__data_;
v79.__r_.__value_.__r.__words[2] = v24->__r_.__value_.__r.__words[2];
*(_OWORD *)&v79.__r_.__value_.__l.__data_ = v25;
v24->__r_.__value_.__l.__size_ = 0;
v24->__r_.__value_.__r.__words[2] = 0;
v24->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v78.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v78.__r_.__value_.__l.__data_);
if ( SHIBYTE(v77.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v77.__r_.__value_.__l.__data_);
if ( SHIBYTE(v76.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v76.__r_.__value_.__l.__data_);
cocos2d::ZipUtils::compressString(&v78, &v79, 0, 0xFFFFFFFFLL, 0);
v26 = HIBYTE(v81.__r_.__value_.__r.__words[2]);
if ( (v81.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v26 = v81.__r_.__value_.__l.__size_;
if ( v26 )
std::string::append(&v81, ";");
GameToolbox::intToString((unsigned int)(*(_DWORD *)(v11 + 328) - *(_DWORD *)(v11 + 332)), &v73);
v27 = std::string::append(&v73, ",");
v28 = *(_OWORD *)&v27->__r_.__value_.__l.__data_;
v74.__r_.__value_.__r.__words[2] = v27->__r_.__value_.__r.__words[2];
*(_OWORD *)&v74.__r_.__value_.__l.__data_ = v28;
v27->__r_.__value_.__l.__size_ = 0;
v27->__r_.__value_.__r.__words[2] = 0;
v27->__r_.__value_.__r.__words[0] = 0;
GameToolbox::intToString(*(unsigned int *)(v11 + 788), &v70);
if ( (v72 & 0x80u) == 0 )
v29 = (const std::string::value_type *)&v70;
else
v29 = (const std::string::value_type *)v70;
if ( (v72 & 0x80u) == 0 )
v30 = v72;
else
v30 = v71;
v31 = std::string::append(&v74, v29, v30);
v32 = *(_OWORD *)&v31->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v31->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v32;
v31->__r_.__value_.__l.__size_ = 0;
v31->__r_.__value_.__r.__words[2] = 0;
v31->__r_.__value_.__r.__words[0] = 0;
v33 = std::string::append(&__p, ",");
v34 = *(_OWORD *)&v33->__r_.__value_.__l.__data_;
v76.__r_.__value_.__r.__words[2] = v33->__r_.__value_.__r.__words[2];
*(_OWORD *)&v76.__r_.__value_.__l.__data_ = v34;
v33->__r_.__value_.__l.__size_ = 0;
v33->__r_.__value_.__r.__words[2] = 0;
v33->__r_.__value_.__r.__words[0] = 0;
if ( (v78.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v35 = &v78;
else
v35 = (std::string *)v78.__r_.__value_.__r.__words[0];
if ( (v78.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v36 = HIBYTE(v78.__r_.__value_.__r.__words[2]);
else
v36 = v78.__r_.__value_.__l.__size_;
v37 = std::string::append(&v76, (const std::string::value_type *)v35, v36);
v38 = *(_OWORD *)&v37->__r_.__value_.__l.__data_;
v77.__r_.__value_.__r.__words[2] = v37->__r_.__value_.__r.__words[2];
*(_OWORD *)&v77.__r_.__value_.__l.__data_ = v38;
v37->__r_.__value_.__l.__size_ = 0;
v37->__r_.__value_.__r.__words[2] = 0;
v37->__r_.__value_.__r.__words[0] = 0;
if ( (v77.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v39 = &v77;
else
v39 = (std::string *)v77.__r_.__value_.__r.__words[0];
if ( (v77.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v40 = HIBYTE(v77.__r_.__value_.__r.__words[2]);
else
v40 = v77.__r_.__value_.__l.__size_;
std::string::append(&v81, (const std::string::value_type *)v39, v40);
if ( SHIBYTE(v77.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v77.__r_.__value_.__l.__data_);
if ( SHIBYTE(v76.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v76.__r_.__value_.__l.__data_);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( (char)v72 < 0 )
operator delete(v70);
if ( SHIBYTE(v74.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v74.__r_.__value_.__l.__data_);
if ( SHIBYTE(v73.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v73.__r_.__value_.__l.__data_);
v41 = HIBYTE(v80.__r_.__value_.__r.__words[2]);
if ( (v80.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v41 = v80.__r_.__value_.__l.__size_;
if ( v41 )
std::string::append(&v80, ",");
GameToolbox::intToString((unsigned int)(*(_DWORD *)(v11 + 328) - *(_DWORD *)(v11 + 332)), &v73);
v42 = std::string::append(&v73, ":");
v43 = *(_OWORD *)&v42->__r_.__value_.__l.__data_;
v74.__r_.__value_.__r.__words[2] = v42->__r_.__value_.__r.__words[2];
*(_OWORD *)&v74.__r_.__value_.__l.__data_ = v43;
v42->__r_.__value_.__l.__size_ = 0;
v42->__r_.__value_.__r.__words[2] = 0;
v42->__r_.__value_.__r.__words[0] = 0;
GameToolbox::intToString((unsigned int)(*(_DWORD *)(v11 + 920) - *(_DWORD *)(v11 + 924)), &v70);
if ( (v72 & 0x80u) == 0 )
v44 = (const std::string::value_type *)&v70;
else
v44 = (const std::string::value_type *)v70;
if ( (v72 & 0x80u) == 0 )
v45 = v72;
else
v45 = v71;
v46 = std::string::append(&v74, v44, v45);
v47 = *(_OWORD *)&v46->__r_.__value_.__l.__data_;
__p.__r_.__value_.__r.__words[2] = v46->__r_.__value_.__r.__words[2];
*(_OWORD *)&__p.__r_.__value_.__l.__data_ = v47;
v46->__r_.__value_.__l.__size_ = 0;
v46->__r_.__value_.__r.__words[2] = 0;
v46->__r_.__value_.__r.__words[0] = 0;
v48 = std::string::append(&__p, ":");
v49 = *(_OWORD *)&v48->__r_.__value_.__l.__data_;
v76.__r_.__value_.__r.__words[2] = v48->__r_.__value_.__r.__words[2];
*(_OWORD *)&v76.__r_.__value_.__l.__data_ = v49;
v48->__r_.__value_.__l.__size_ = 0;
v48->__r_.__value_.__r.__words[2] = 0;
v48->__r_.__value_.__r.__words[0] = 0;
if ( *(_BYTE *)(v11 + 649) )
v50 = "1";
else
v50 = "0";
v51 = std::string::append(&v76, v50);
v52 = *(_OWORD *)&v51->__r_.__value_.__l.__data_;
v77.__r_.__value_.__r.__words[2] = v51->__r_.__value_.__r.__words[2];
*(_OWORD *)&v77.__r_.__value_.__l.__data_ = v52;
v51->__r_.__value_.__l.__size_ = 0;
v51->__r_.__value_.__r.__words[2] = 0;
v51->__r_.__value_.__r.__words[0] = 0;
if ( (v77.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v53 = &v77;
else
v53 = (std::string *)v77.__r_.__value_.__r.__words[0];
if ( (v77.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v54 = HIBYTE(v77.__r_.__value_.__r.__words[2]);
else
v54 = v77.__r_.__value_.__l.__size_;
v5 = std::string::append(&v80, (const std::string::value_type *)v53, v54);
if ( SHIBYTE(v77.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v77.__r_.__value_.__l.__data_);
if ( SHIBYTE(v76.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v76.__r_.__value_.__l.__data_);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( (char)v72 < 0 )
operator delete(v70);
if ( SHIBYTE(v74.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v74.__r_.__value_.__l.__data_);
if ( SHIBYTE(v73.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v73.__r_.__value_.__l.__data_);
if ( SHIBYTE(v78.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v78.__r_.__value_.__l.__data_);
if ( SHIBYTE(v79.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v79.__r_.__value_.__l.__data_);
if ( v7 > 28 )
break;
++v7;
}
LOBYTE(v9) = 1;
++v7;
}
LABEL_116:
if ( v6 > 1 )
break;
++v6;
}
while ( (v9 & 1) == 0 );
v55 = HIBYTE(v81.__r_.__value_.__r.__words[2]);
if ( (v81.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v55 = v81.__r_.__value_.__l.__size_;
if ( v55 )
{
qword_1009F3998 = v64;
sub_1000ADC1C(v63, "UploadDeathData");
GameLevelManager::getBasePostString(v56, &v79);
std::string::append(&v79, "&data=");
if ( (v81.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v57 = &v81;
else
v57 = (std::string *)v81.__r_.__value_.__r.__words[0];
if ( (v81.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v58 = HIBYTE(v81.__r_.__value_.__r.__words[2]);
else
v58 = v81.__r_.__value_.__l.__size_;
std::string::append(&v79, (const std::string::value_type *)v57, v58);
std::string::append(&v79, "&secret=");
v59 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v59);
std::string::append(&v79, CString);
sub_100009900(&v69, "https://www.boomlings.com/database/uploadGJDeathData.php");
if ( (v79.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v61 = &v79;
else
v61 = (std::string *)v79.__r_.__value_.__r.__words[0];
sub_100009900(v67, (char *)v61);
if ( (v80.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v62 = &v80;
else
v62 = (std::string *)v80.__r_.__value_.__r.__words[0];
sub_100009900(v65, (char *)v62);
GameLevelManager::ProcessHttpRequest(v63, &v69, (char *)v67, (const std::string::value_type *)v65, 105);
if ( v66 < 0 )
operator delete(v65[0]);
if ( v68 < 0 )
operator delete(v67[0]);
if ( SHIBYTE(v69.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v69.__r_.__value_.__l.__data_);
if ( SHIBYTE(v79.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v79.__r_.__value_.__l.__data_);
}
if ( SHIBYTE(v80.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v80.__r_.__value_.__l.__data_);
if ( SHIBYTE(v81.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v81.__r_.__value_.__l.__data_);
}
}
}