//
// GJAccountManager::registerAccount from 0x4651bc to 0x4652a8 (236 bytes)
//
// 1 xrefs:
// > AccountRegisterLayer::onSubmit @ 0x46908a
//
// 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
//
int __fastcall GJAccountManager::registerAccount(GJAccountManager *a1, const char **a2, int *a3, int *a4)
{
const char *v8; // r6
int v9; // r5
int v10; // r4
cocos2d::CCString *v11; // r0
const char *CString; // r0
cocos2d::CCString *v13; // r0
char *v14; // r6
char *v16; // [sp+20h] [bp-14h] BYREF
const void *v17; // [sp+24h] [bp-10h] BYREF
char *v18; // [sp+28h] [bp-Ch] BYREF
if ( GJAccountManager::isDLActive(a1, "reg_account") )
return 0;
GJAccountManager::addDLToActive(a1, "reg_account");
v8 = *a2;
v9 = *a3;
v10 = *a4;
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"3899",
103,
99,
&aO1i2r3e45s7t89[13]);
CString = cocos2d::CCString::getCString(v11);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"userName=%s&password=%s&email=%s&secret=%s",
v8,
v9,
v10,
CString);
v14 = (char *)cocos2d::CCString::getCString(v13);
sub_776584((int)&v16, "https://www.boomlings.com/database/accounts/registerGJAccount.php");
sub_776584((int)&v17, v14);
sub_776584((int)&v18, "RegisterAccount");
GJAccountManager::ProcessHttpRequest(a1, &v16, &v17, &v18, 22);
sub_774008(&v18);
sub_774008(&v17);
sub_774008(&v16);
return 1;
}