//
// GJAccountManager::getAccountBackupURL from 0x1003a09dc to 0x1003a0b3c (352 bytes)
//
// 1 xrefs:
// > AccountLayer::doBackup @ 0x1001665b8
//
// 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 __fastcall GJAccountManager::getAccountBackupURL(GJAccountManager *a1)
{
cocos2d::CCObject *DLObject; // x19
cocos2d::CCNode *v3; // x0
int m_accountID; // w21
cocos2d::CCString *v5; // x0
const char *CString; // x0
cocos2d::CCString *v7; // x0
char *v8; // x0
int v9; // w22
char *v10; // x23
char *v11; // x1
void *__p[2]; // [xsp+30h] [xbp-90h] BYREF
char v14; // [xsp+47h] [xbp-79h]
void *v15[2]; // [xsp+48h] [xbp-78h] BYREF
char v16; // [xsp+5Fh] [xbp-61h]
void *v17[2]; // [xsp+60h] [xbp-60h] BYREF
char v18; // [xsp+77h] [xbp-49h]
void *v19[2]; // [xsp+78h] [xbp-48h] BYREF
char v20; // [xsp+8Fh] [xbp-31h]
DLObject = GJAccountManager::getDLObject(a1, "burl_account");
if ( !DLObject )
{
v3 = cocos2d::CCNode::create();
GJAccountManager::addDLToActive(a1, "burl_account", v3);
m_accountID = a1->m_accountID;
v5 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = cocos2d::CCString::getCString(v5);
v7 = (cocos2d::CCString *)sub_100268F4C("accountID=%i&type=1&secret=%s", m_accountID, CString);
v8 = (char *)cocos2d::CCString::getCString(v7);
sub_100009900(v19, v8);
v9 = v20;
v10 = (char *)v19[0];
sub_100009900(v17, "https://www.boomlings.com/database/getAccountURL.php");
if ( v9 >= 0 )
v11 = (char *)v19;
else
v11 = v10;
sub_100009900(v15, v11);
sub_100009900(__p, "AccountBackupURL");
GJAccountManager::ProcessHttpRequest(
a1,
(const std::string::value_type *)v17,
(char *)v15,
(const std::string::value_type *)__p,
54);
if ( v14 < 0 )
operator delete(__p[0]);
if ( v16 < 0 )
operator delete(v15[0]);
if ( v18 < 0 )
operator delete(v17[0]);
if ( v20 < 0 )
operator delete(v19[0]);
}
return DLObject == nullptr;
}