//
// GJAccountManager::getAccountBackupURL from 0x9891a8 to 0x9893f8 (592 bytes)
//
// 2 xrefs:
// > AccountLayer::doBackup @ 0x98dad8
// > ??> @ 0xbd628
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:57:55 +0000
//
__int64 __fastcall GJAccountManager::getAccountBackupURL(GJAccountManager *this)
{
_BOOL4 isDLActive; // w1
__int64 result; // x0
unsigned int v4; // w23
char *v5; // x22
cocos2d::CCString *v6; // x0
__int64 CString; // x0
cocos2d::CCString *v8; // x0
const char *v9; // x0
size_t v10; // x0
size_t v11; // x0
char *v12; // [xsp+48h] [xbp+48h]
__int64 v13[2]; // [xsp+58h] [xbp+58h] BYREF
void *v14; // [xsp+68h] [xbp+68h]
__int64 v15[2]; // [xsp+70h] [xbp+70h] BYREF
void *v16; // [xsp+80h] [xbp+80h]
__int64 v17[2]; // [xsp+88h] [xbp+88h] BYREF
void *v18; // [xsp+98h] [xbp+98h]
__int64 v19[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v20; // [xsp+B0h] [xbp+B0h]
isDLActive = GJAccountManager::isDLActive(this, "burl_account");
result = 0;
if ( !isDLActive )
{
GJAccountManager::addDLToActive(this, "burl_account");
v4 = *((_DWORD *)this + 88);
v5 = (char *)v13 + 1;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
CString = cocos2d::CCString::getCString(v6);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"accountID=%i&type=1&secret=%s",
(const char *)v4,
CString);
v9 = (const char *)cocos2d::CCString::getCString(v8);
v13[0] = 0;
v12 = (char *)v9;
v13[1] = 0;
v14 = nullptr;
v10 = strlen(v9);
std::string::__init(v13, v12, v10);
if ( (v13[0] & 1) != 0 )
v5 = (char *)v14;
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
std::string::__init(v15, "https://www.boomlings.com/database/getAccountURL.php", 0x34u);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
v11 = strlen(v5);
std::string::__init(v17, v5, v11);
v19[0] = 0;
v19[1] = 0;
v20 = nullptr;
std::string::__init(v19, "AccountBackupURL", 0x10u);
GJAccountManager::ProcessHttpRequest(this, (__int64)v15, (__int64)v17, (__int64)v19, 60);
if ( (v19[0] & 1) != 0 )
operator delete(v20);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
return 1;
}
return result;
}