//
// GJAccountManager::updateAccountSettings from 0x465de4 to 0x465f52 (366 bytes)
//
// 1 xrefs:
// > UpdateAccountSettingsPopup::init @ 0x4abf7a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GJAccountManager::updateAccountSettings(
GJAccountManager *a1,
int a2,
int a3,
int a4,
int *a5,
int *a6,
int *a7,
int *a8,
int *a9,
int *a10,
int *a11)
{
GJAccountManager *v12; // r0
int v13; // r11
int v14; // r10
int v15; // r7
int v16; // r6
int v17; // r9
int v18; // r5
int v19; // r8
cocos2d::CCString *v20; // r0
const char *CString; // r0
cocos2d::CCString *v22; // r7
char *v23; // r0
char *v25; // [sp+28h] [bp-44h]
char *v26; // [sp+2Ch] [bp-40h]
char *v30; // [sp+58h] [bp-14h] BYREF
const void *v31; // [sp+5Ch] [bp-10h] BYREF
char *v32; // [sp+60h] [bp-Ch] BYREF
if ( GJAccountManager::isDLActive(a1, "acc_sett") )
return 0;
GJAccountManager::addDLToActive(a1, "acc_sett");
v12 = GJAccountManager::sharedState();
v26 = (char *)(v12->m_accountID - v12->m_unkInt1);
GJAccountManager::sharedState();
sub_775C20(&v32);
v13 = *a5;
v14 = *a6;
v25 = v32;
v15 = *a9;
v16 = *a10;
v17 = *a7;
v18 = *a11;
v19 = *a8;
v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"3899",
103,
99,
&aO1i2r3e45s7t89[13]);
CString = cocos2d::CCString::getCString(v20);
v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"accountID=%i&gjp2=%s&mS=%i&frS=%i&cS=%i&yt=%s&twitter=%s&twitch=%s&i"
"nstagram=%s&tiktok=%s&discord=%s&custom=%s&secret=%s",
v26,
v25,
a2,
a3,
a4,
v13,
v14,
v17,
v19,
v15,
v16,
v18,
CString);
sub_774008(&v32);
sub_776584((int)&v30, "https://www.boomlings.com/database/updateGJAccSettings20.php");
v23 = (char *)cocos2d::CCString::getCString(v22);
sub_776584((int)&v31, v23);
sub_776584((int)&v32, "acc_sett");
GJAccountManager::ProcessHttpRequest(a1, &v30, &v31, &v32, 26);
sub_774008(&v32);
sub_774008(&v31);
sub_774008(&v30);
return 1;
}