//
// GJAccountManager::getAccountSyncURL from 0x465820 to 0x46591c (252 bytes)
//
// 1 xrefs:
// > AccountLayer::doSync @ 0x467158
//
// 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
//
bool GJAccountManager::getAccountSyncURL(GJAccountManager *a1)
{
const char *m_accountID; // r4
cocos2d::CCString *v3; // r0
const char *CString; // r0
cocos2d::CCString *v5; // r0
char *v6; // r0
char *v7; // r10
char *v9; // [sp+1Ch] [bp-14h] BYREF
char *v10; // [sp+20h] [bp-10h] BYREF
const void *v11; // [sp+24h] [bp-Ch] BYREF
char *v12; // [sp+28h] [bp-8h] BYREF
if ( GJAccountManager::isDLActive(a1, "surl_account") )
return 0;
GJAccountManager::addDLToActive(a1, "surl_account");
m_accountID = (const char *)a1->m_accountID;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
CString = cocos2d::CCString::getCString(v3);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"accountID=%i&type=2&secret=%s",
m_accountID,
CString);
v6 = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)&v9, v6);
v7 = v9;
sub_776584((int)&v10, "https://www.boomlings.com/database/getAccountURL.php");
sub_776584((int)&v11, v7);
sub_776584((int)&v12, "AccountSyncURL");
GJAccountManager::ProcessHttpRequest(a1, &v10, &v11, &v12, 55);
sub_774008(&v12);
sub_774008(&v11);
sub_774008(&v10);
sub_774008(&v9);
return 1;
}