//
// GJAccountManager::ProcessHttpRequest from 0x1403052b0 to 0x1403053fe (334 bytes)
//
// 9 xrefs:
// > GJAccountManager::registerAccount @ 0x140306145
// > GJAccountManager::openRegister @ 0x140306559
// > GJAccountManager::loginAccount @ 0x1403069c5
// > GJAccountManager::getAccountBackupURL @ 0x14030715e
// > GJAccountManager::backupAccount @ 0x140307a00
// > GJAccountManager::getAccountSyncURL @ 0x1403081d8
// > GJAccountManager::syncAccount @ 0x140308799
// > GJAccountManager::updateAccountSettings @ 0x140309ec9
// > ??> @ 0x14091e518
//
// 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=4
void __fastcall GJAccountManager::ProcessHttpRequest(
cocos2d::CCObject *a1,
const char *a2,
const char *a3,
const char *a4,
int a5)
{
cocos2d::extension::CCHttpRequest *v9; // rbx
const char *v10; // rdx
const char *v11; // rax
const char *v12; // rdx
__int64 v13; // r8
const char *v14; // rdx
__int64 v15; // rdx
__int64 v16; // rcx
cocos2d::extension::CCHttpClient *Instance; // rax
v9 = (cocos2d::extension::CCHttpRequest *)operator new(0xE0u);
cocos2d::extension::CCHttpRequest::CCHttpRequest(v9);
*(_QWORD *)v9 = &cocos2d::extension::CCHttpRequest::`vftable';
v10 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v10 = *(const char **)a2;
cocos2d::extension::CCHttpRequest::setUrl(v9, v10);
*((_DWORD *)v9 + 14) = 1;
*((_QWORD *)v9 + 19) = a1;
*((_QWORD *)v9 + 20) = GJAccountManager::onProcessHttpRequestCompleted;
if ( a1 )
cocos2d::CCObject::retain(a1);
if ( (unsigned int)(a5 - 22) <= 1 )
*((_DWORD *)v9 + 53) = 600;
v11 = a3;
if ( *((_QWORD *)a3 + 3) <= 0xFu )
{
v12 = a3;
}
else
{
v11 = *(const char **)a3;
v12 = *(const char **)a3;
}
v13 = -1;
do
++v13;
while ( v11[v13] );
cocos2d::extension::CCHttpRequest::setRequestData(v9, v12, v13);
v14 = a4;
if ( *((_QWORD *)a4 + 3) > 0xFu )
v14 = *(const char **)a4;
cocos2d::extension::CCHttpRequest::setTag(v9, v14);
*((_DWORD *)v9 + 50) = a5;
Instance = (cocos2d::extension::CCHttpClient *)cocos2d::extension::CCHttpClient::getInstance(v16, v15);
cocos2d::extension::CCHttpClient::send(Instance, v9);
cocos2d::CCObject::release(v9);
sub_14003D310((__int64)a2);
sub_14003D310((__int64)a3);
sub_14003D310((__int64)a4);
}