//
// GJAccountManager::syncAccount from 0x465940 to 0x465a40 (256 bytes)
//
// 1 xrefs:
// > GJAccountManager::onGetAccountSyncURLCompleted @ 0x465ae2
//
// 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::syncAccount(GJAccountManager *a1)
{
cocos2d::CCString *v2; // r0
const char *CString; // r0
cocos2d::CCString *v4; // r0
char *v5; // r0
char *v7; // [sp+1Ch] [bp-18h] BYREF
char *v8; // [sp+20h] [bp-14h] BYREF
const void *v9; // [sp+24h] [bp-10h] BYREF
char *v10; // [sp+28h] [bp-Ch] BYREF
if ( GJAccountManager::isDLActive(a1, "sync_account") )
return 0;
GJAccountManager::addDLToActive(a1, "sync_account");
GameLevelManager::sharedState();
GameLevelManager::getBasePostString((GameLevelManager *)&v7);
v2 = (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(v2);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&secret=%s", CString);
v5 = (char *)cocos2d::CCString::getCString(v4);
sub_774544((int)&v7, v5);
sub_775C20(&v8);
sub_776584((int)&v9, v7);
sub_776584((int)&v10, "SyncAccount");
GJAccountManager::ProcessHttpRequest(a1, &v8, &v9, &v10, 21);
sub_774008(&v10);
sub_774008(&v9);
sub_774008(&v8);
sub_774008(&v7);
return 1;
}