//
// GJAccountManager::openRegister from 0x988f98 to 0x9891a8 (528 bytes)
//
// 2 xrefs:
// > AccountRegisterLayer::init @ 0x9913c4
// > ??> @ 0x51070
//
// 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::openRegister(GJAccountManager *this)
{
cocos2d::CCString *v2; // x0
const char *CString; // x0
cocos2d::CCString *v4; // x0
size_t v5; // x0
char *v7; // [xsp+48h] [xbp+48h]
__int64 v8; // [xsp+58h] [xbp+58h] BYREF
size_t v9; // [xsp+60h] [xbp+60h]
void *v10; // [xsp+68h] [xbp+68h]
__int64 v11[2]; // [xsp+70h] [xbp+70h] BYREF
void *v12; // [xsp+80h] [xbp+80h]
__int64 v13; // [xsp+88h] [xbp+88h] BYREF
size_t v14; // [xsp+90h] [xbp+90h]
void *v15; // [xsp+98h] [xbp+98h]
__int64 v16[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v17; // [xsp+B0h] [xbp+B0h]
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfv",
"3899",
103,
99,
"9");
CString = (const char *)cocos2d::CCString::getCString(v2);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"secret=%s", CString);
v8 = 0;
v7 = (char *)cocos2d::CCString::getCString(v4);
v9 = 0;
v10 = nullptr;
v5 = strlen(v7);
std::string::__init(&v8, v7, v5);
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, "https://www.boomlings.com/database/accounts/openedRegister.php", 0x3Eu);
v13 = 0;
v14 = 0;
v15 = nullptr;
if ( (v8 & 1) != 0 )
{
std::string::__init(&v13, v10, v9);
}
else
{
v15 = v10;
v13 = v8;
v14 = v9;
}
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(v16, "OpenRegister", 0xCu);
GJAccountManager::ProcessHttpRequest(this, (__int64)v11, (__int64)&v13, (__int64)v16, 25);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
if ( (v8 & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}