//
// GJAccountManager::getAccountSyncURL from 0x582258 to 0x58238e (310 bytes)
//
// 1 xrefs:
// > AccountLayer::doSync @ 0x584a80
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:55 +0000
//
int __fastcall GJAccountManager::getAccountSyncURL(const char **this)
{
int v2; // r2
int v3; // r3
const char *v4; // r5
cocos2d::CCString *v5; // r0
int CString; // r0
cocos2d::CCString *v7; // r0
const char *v8; // r5
size_t v9; // r0
const char *v10; // r6
size_t v11; // r0
int v13[2]; // [sp+14h] [bp-38h] BYREF
const char *v14; // [sp+1Ch] [bp-30h]
int v15[3]; // [sp+20h] [bp-2Ch] BYREF
int v16[3]; // [sp+2Ch] [bp-20h] BYREF
int v17[3]; // [sp+38h] [bp-14h] BYREF
if ( GJAccountManager::isDLActive((GJAccountManager *)this, "surl_account") )
return 0;
GJAccountManager::addDLToActive((GJAccountManager *)this, "surl_account", v2, v3);
v4 = *(this + 70);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
CString = cocos2d::CCString::getCString(v5);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"accountID=%i&type=2&secret=%s",
v4,
CString);
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
v8 = (const char *)cocos2d::CCString::getCString(v7);
v9 = strlen(v8);
std::string::__init(v13, v8, v9);
if ( (v13[0] & 1) != 0 )
v10 = v14;
else
v10 = (char *)v13 + 1;
memset(v15, 0, sizeof(v15));
std::string::__init(v15, "https://www.boomlings.com/database/getAccountURL.php", 0x34u);
memset(v16, 0, sizeof(v16));
v11 = strlen(v10);
std::string::__init(v16, v10, v11);
memset(v17, 0, sizeof(v17));
std::string::__init(v17, "AccountSyncURL", 0xEu);
GJAccountManager::ProcessHttpRequest((cocos2d::CCObject *)this, (int)v15, (int)v16, (int)v17, 61);
std::string::~string((int)v17);
std::string::~string((int)v16);
std::string::~string((int)v15);
std::string::~string((int)v13);
return 1;
}