// // GJAccountManager::registerAccount from 0x140305e50 to 0x140306187 (823 bytes) // // 2 xrefs: // > AccountRegisterLayer::onSubmit @ 0x14008ebfe // > @ 0x14091e560 // // 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 11:30:09 +0000 // // Hidden C++ exception states: #wind=9 char __fastcall GJAccountManager::registerAccount(cocos2d::CCObject *a1, __int64 *a2, __int64 *a3, __int64 *a4) { __int64 v8; // rbx void *v9; // r8 void **v11; // rbx void **v12; // rdi void **v13; // rax const char *v14; // rsi const char *v15; // r13 cocos2d::CCString *v16; // rax const char *CString; // rax cocos2d::CCString *v18; // rbx const char *v19; // rdx size_t v20; // r8 int Reserved; // [rsp+20h] [rbp-A9h] int v22; // [rsp+28h] [rbp-A1h] void *Block[2]; // [rsp+78h] [rbp-51h] BYREF __int128 v25; // [rsp+88h] [rbp-41h] void *Src[4]; // [rsp+98h] [rbp-31h] BYREF __int128 v27; // [rsp+B8h] [rbp-11h] BYREF __int64 v28; // [rsp+C8h] [rbp-1h] __int64 v29; // [rsp+D0h] [rbp+7h] *(_OWORD *)Block = 0; v25 = 0; sub_14003D230(Block, "reg_account", 0xBu); v8 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)a1 + 40), Block); if ( *((_QWORD *)&v25 + 1) > 0xFu ) { v9 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v25 + 1) + 1LL) >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } if ( v8 ) { sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); sub_14003D310((__int64)a4); return 0; } else { GJAccountManager::addDLToActive((__int64)a1, "reg_account"); v11 = sub_140305900(Src, a4); v12 = sub_140305900(Block, a3); v13 = sub_140305900((void **)&v27, a2); v14 = (const char *)v13; v15 = (char *)a1 + 496; if ( *((_QWORD *)v15 + 3) > 0xFu ) v15 = *(const char **)v15; if ( (unsigned __int64)v11[3] > 0xF ) v11 = (void **)*v11; if ( (unsigned __int64)v12[3] > 0xF ) v12 = (void **)*v12; if ( (unsigned __int64)v13[3] > 0xF ) v14 = (const char *)*v13; v22 = 99; Reserved = 103; v16 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfv", "3899", Reserved, v22, "9"); CString = cocos2d::CCString::getCString(v16); v18 = cocos2d::CCString::createWithFormat( "userName=%s&password=%s&email=%s&secret=%s&rsession=%s", v14, (const char *)v12, (const char *)v11, CString, v15); sub_14003D310((__int64)&v27); sub_14003D310((__int64)Block); sub_14003D310((__int64)Src); v19 = cocos2d::CCString::getCString(v18); Src[2] = (void *)15; Src[3] = (void *)15; strcpy((char *)Src, "RegisterAccount"); v27 = 0; v28 = 0; v29 = 0; v20 = -1; do ++v20; while ( v19[v20] ); sub_14003D230(&v27, v19, v20); *(_OWORD *)Block = 0; v25 = 0u; Block[0] = sub_14003D460(0x50u); *(_QWORD *)&v25 = 65; *((_QWORD *)&v25 + 1) = 79; strcpy((char *)Block[0], "https://www.boomlings.com/database/accounts/registerGJAccount.php"); GJAccountManager::ProcessHttpRequest(a1, (const char *)Block, (const char *)&v27, (const char *)Src, 24); sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); sub_14003D310((__int64)a4); return 1; } }