//
// GJAccountManager::updateAccountSettings from 0x989648 to 0x9899d0 (904 bytes)
//
// 3 xrefs:
// > ParentalPrivacyPopup::startWithScore @ 0x8f3510
// > UpdateAccountSettingsPopup::init @ 0xa26770
// > ??> @ 0xc71c8
//
// 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 12:57:55 +0000
//
__int64 __fastcall GJAccountManager::updateAccountSettings(
GJAccountManager *a1,
unsigned int a2,
unsigned int a3,
unsigned int a4,
unsigned int a5,
unsigned int a6,
__int64 a7,
__int64 a8,
__int64 a9,
__int64 a10,
__int64 a11,
__int64 a12,
__int64 a13)
{
_BOOL4 isDLActive; // w1
__int64 result; // x0
GJAccountManager *v18; // x0
__int64 v19; // x0
GJAccountManager *v20; // x0
__int64 v21; // x2
__int64 v22; // x1
__int64 v23; // x22
__int64 v24; // x27
__int64 v25; // x26
__int64 v26; // x25
__int64 v27; // x24
__int64 v28; // x23
__int64 v29; // x28
cocos2d::CCString *v30; // x0
__int64 CString; // x0
cocos2d::CCString *v32; // x23
size_t v33; // x0
char *v34; // [xsp+A0h] [xbp+60h]
unsigned int v35; // [xsp+B0h] [xbp+70h]
char *v41; // [xsp+C8h] [xbp+88h]
__int64 v42[2]; // [xsp+D0h] [xbp+90h] BYREF
void *v43; // [xsp+E0h] [xbp+A0h]
__int64 v44[2]; // [xsp+E8h] [xbp+A8h] BYREF
void *v45; // [xsp+F8h] [xbp+B8h]
__int64 v46; // [xsp+100h] [xbp+C0h] BYREF
__int64 v47; // [xsp+108h] [xbp+C8h]
void *v48; // [xsp+110h] [xbp+D0h]
isDLActive = GJAccountManager::isDLActive(a1, "acc_sett");
result = 0;
if ( !isDLActive )
{
v18 = (GJAccountManager *)GJAccountManager::addDLToActive(a1, "acc_sett");
v19 = GJAccountManager::sharedState(v18);
v20 = (GJAccountManager *)(unsigned int)(*(_DWORD *)(v19 + 352) - *(_DWORD *)(v19 + 356));
v35 = (unsigned int)v20;
v46 = 0;
v47 = 0;
v21 = GJAccountManager::sharedState(v20) + 368;
v48 = nullptr;
if ( (*(_BYTE *)v21 & 1) != 0 )
{
std::string::__init(&v46, *(void **)(v21 + 16), *(_QWORD *)(v21 + 8));
}
else
{
v22 = *(_QWORD *)(v21 + 8);
v46 = *(_QWORD *)v21;
v47 = v22;
v48 = *(void **)(v21 + 16);
}
v34 = (char *)&v46 + 1;
if ( (v46 & 1) != 0 )
v34 = (char *)v48;
v23 = a7 + 1;
if ( (*(_BYTE *)a7 & 1) != 0 )
v23 = *(_QWORD *)(a7 + 16);
v24 = a8 + 1;
if ( (*(_BYTE *)a8 & 1) != 0 )
v24 = *(_QWORD *)(a8 + 16);
v25 = a9 + 1;
if ( (*(_BYTE *)a9 & 1) != 0 )
v25 = *(_QWORD *)(a9 + 16);
v26 = a10 + 1;
if ( (*(_BYTE *)a10 & 1) != 0 )
v26 = *(_QWORD *)(a10 + 16);
v27 = a11 + 1;
if ( (*(_BYTE *)a11 & 1) != 0 )
v27 = *(_QWORD *)(a11 + 16);
v28 = a12 + 1;
if ( (*(_BYTE *)a12 & 1) != 0 )
v28 = *(_QWORD *)(a12 + 16);
v29 = a13 + 1;
if ( (*(_BYTE *)a13 & 1) != 0 )
v29 = *(_QWORD *)(a13 + 16);
v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfv",
"3899",
103,
99,
"9");
CString = cocos2d::CCString::getCString(v30);
v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"accountID=%i&gjp2=%s&mS=%i&frS=%i&cS=%i&gF=%i&gO=%i&yt=%s&twitter="
"%s&twitch=%s&instagram=%s&tiktok=%s&discord=%s&custom=%s&secret=%s",
(const char *)v35,
v34,
a2,
a3,
a4,
a5,
a6,
v23,
v24,
v25,
v26,
v27,
v28,
v29,
CString);
if ( (v46 & 1) != 0 )
operator delete(v48);
v42[0] = 0;
v42[1] = 0;
v43 = nullptr;
std::string::__init(v42, "https://www.boomlings.com/database/updateGJAccSettings20.php", 0x3Cu);
v41 = (char *)cocos2d::CCString::getCString(v32);
v44[0] = 0;
v44[1] = 0;
v45 = nullptr;
v33 = strlen(v41);
std::string::__init(v44, v41, v33);
v46 = 0;
v47 = 0;
v48 = nullptr;
std::string::__init(&v46, "acc_sett", 8u);
GJAccountManager::ProcessHttpRequest(a1, (__int64)v42, (__int64)v44, (__int64)&v46, 32);
if ( (v46 & 1) != 0 )
operator delete(v48);
if ( (v44[0] & 1) != 0 )
operator delete(v45);
if ( (v42[0] & 1) != 0 )
operator delete(v43);
return 1;
}
return result;
}