//
// GJAccountManager::getAccountBackupURL from 0x1000a14d0 to 0x1000a1775 (677 bytes)
//
// 2 xrefs:
// > AccountLayer::doBackup @ 0x10009b5b8
// > AccountLayer::FLAlert_Clicked @ 0x10009c118
//
// This function is hookable on this platform (idp: pc, 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:20:13 +0000
//
bool __fastcall GJAccountManager::getAccountBackupURL(__int64 a1)
{
__int64 DLObject; // rax
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
const char *CString; // r15
size_t v6; // rax
size_t v7; // r14
char *v8; // r12
char *v9; // r14
size_t v10; // r13
size_t v11; // rax
size_t v12; // r15
char *v13; // r12
size_t v14; // r13
char v16; // [rsp+0h] [rbp-A0h]
_QWORD v17[2]; // [rsp+18h] [rbp-88h] BYREF
void *v18; // [rsp+28h] [rbp-78h]
void *v19[3]; // [rsp+30h] [rbp-70h] BYREF
_QWORD v20[2]; // [rsp+48h] [rbp-58h] BYREF
void *v21; // [rsp+58h] [rbp-48h]
_QWORD __dst[2]; // [rsp+60h] [rbp-40h] BYREF
char *__s; // [rsp+70h] [rbp-30h]
DLObject = GJAccountManager::getDLObject(a1, "burl_account");
if ( !DLObject )
{
v2 = cocos2d::CCNode::create(a1);
GJAccountManager::addDLToActive(a1, "burl_account", v2);
v3 = sub_10088E820("%c%s%s%c%c%s", (char)"7");
cocos2d::CCString::getCString(v3);
v4 = sub_10088E820("accountID=%i&type=1&secret=%s", v16);
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = strlen(CString);
if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v7 = v6;
if ( v6 >= 0x17 )
{
v10 = 26;
if ( (v6 | 7) != 0x17 )
v10 = (v6 | 7) + 1;
v8 = (char *)operator new(v10);
__s = v8;
__dst[0] = v10 + 1;
__dst[1] = v7;
}
else
{
LOBYTE(__dst[0]) = 2 * v6;
v8 = (char *)__dst + 1;
if ( !v6 )
{
BYTE1(__dst[0]) = 0;
if ( (__dst[0] & 1) != 0 )
{
LABEL_6:
v9 = __s;
goto LABEL_12;
}
LABEL_11:
v9 = (char *)__dst + 1;
LABEL_12:
v18 = operator new(0x38u);
v17[0] = 57;
v17[1] = 52;
strcpy((char *)v18, "https://www.boomlings.com/database/getAccountURL.php");
v11 = strlen(v9);
if ( v11 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v12 = v11;
if ( v11 >= 0x17 )
{
v14 = 26;
if ( (v11 | 7) != 0x17 )
v14 = (v11 | 7) + 1;
v13 = (char *)operator new(v14);
v21 = v13;
v20[0] = v14 | 1;
v20[1] = v12;
}
else
{
LOBYTE(v20[0]) = 2 * v11;
v13 = (char *)v20 + 1;
if ( !v11 )
{
LABEL_20:
v13[v12] = 0;
strcpy((char *)v19, " AccountBackupURL");
GJAccountManager::ProcessHttpRequest(a1, (__int64)v17, (__int64)v20, (__int64)v19, 60);
if ( ((__int64)v19[0] & 1) != 0 )
{
operator delete(v19[2]);
if ( (v20[0] & 1) == 0 )
{
LABEL_22:
if ( (v17[0] & 1) == 0 )
goto LABEL_23;
goto LABEL_29;
}
}
else if ( (v20[0] & 1) == 0 )
{
goto LABEL_22;
}
operator delete(v21);
if ( (v17[0] & 1) == 0 )
{
LABEL_23:
if ( (__dst[0] & 1) == 0 )
{
LABEL_25:
DLObject = 0;
return DLObject == 0;
}
LABEL_24:
operator delete(__s);
goto LABEL_25;
}
LABEL_29:
operator delete(v18);
if ( (__dst[0] & 1) == 0 )
goto LABEL_25;
goto LABEL_24;
}
}
memmove(v13, v9, v12);
goto LABEL_20;
}
}
memmove(v8, CString, v7);
v8[v7] = 0;
if ( (__dst[0] & 1) != 0 )
goto LABEL_6;
goto LABEL_11;
}
return DLObject == 0;
}