//
// GJAccountManager::loginAccount from 0x4652cc to 0x465402 (310 bytes)
//
// 1 xrefs:
// > AccountLoginLayer::onSubmit @ 0x46a080
//
// 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::loginAccount(GJAccountManager *a1, _DWORD *a2, _DWORD *a3)
{
cocos2d::CCString *v6; // r0
char *CString; // r0
cocos2d::CCString *v8; // r0
char *v9; // r0
char *v10; // r11
char *v12; // [sp+20h] [bp-1Ch] BYREF
char *v13; // [sp+24h] [bp-18h] BYREF
char *v14; // [sp+28h] [bp-14h] BYREF
const void *v15; // [sp+2Ch] [bp-10h] BYREF
char *v16; // [sp+30h] [bp-Ch] BYREF
if ( GJAccountManager::isDLActive(a1, "login_account") )
return 0;
GJAccountManager::addDLToActive(a1, "login_account");
GameManager::sharedState();
sub_775C20(&v12);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"udid=%s&userName=%s&gjp2=%s",
v12,
*a2,
*a3);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)&v13, CString);
sub_774544((int)&v13, "&secret=");
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"3899",
103,
99,
&aO1i2r3e45s7t89[13]);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_774544((int)&v13, v9);
v10 = v13;
sub_776584((int)&v14, "https://www.boomlings.com/database/accounts/loginGJAccount.php");
sub_776584((int)&v15, v10);
sub_776584((int)&v16, "LoginAccount");
GJAccountManager::ProcessHttpRequest(a1, &v14, &v15, &v16, 23);
sub_774008(&v16);
sub_774008(&v15);
sub_774008(&v14);
sub_774008(&v13);
sub_774008(&v12);
return 1;
}