//
// GJAccountManager::ProcessHttpRequest from 0x100444f80 to 0x1004450c0 (320 bytes)
//
// 8 xrefs:
// > GJAccountManager::registerAccount @ 0x100446b74
// > GJAccountManager::openRegister @ 0x100446e48
// > GJAccountManager::loginAccount @ 0x100447078
// > GJAccountManager::getAccountBackupURL @ 0x100447480
// > GJAccountManager::backupAccount @ 0x10044777c
// > GJAccountManager::getAccountSyncURL @ 0x1004479c4
// > GJAccountManager::syncAccount @ 0x100447ba8
// > GJAccountManager::updateAccountSettings @ 0x1004480f0
//
// 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 11:05:14 +0000
//
_DWORD *__fastcall GJAccountManager::ProcessHttpRequest(
__int64 a1,
const std::string::value_type *a2,
char *a3,
const std::string::value_type *a4,
int a5)
{
char *v10; // x19
unsigned int v11; // w0
void *Instance; // x0
v10 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v10);
*(_QWORD *)v10 = off_1008CEAF0;
*((_OWORD *)v10 + 4) = 0u;
*((_QWORD *)v10 + 22) = 0;
*((_QWORD *)v10 + 23) = 0;
*((_QWORD *)v10 + 21) = 0;
*((_QWORD *)v10 + 16) = 0;
*((_OWORD *)v10 + 5) = 0u;
*((_OWORD *)v10 + 6) = 0u;
*((_OWORD *)v10 + 7) = 0u;
*((_DWORD *)v10 + 14) = 5;
*((_DWORD *)v10 + 48) = 0;
v10[196] = 0;
*((_QWORD *)v10 + 25) = 0;
*((_DWORD *)v10 + 52) = 0;
*(_OWORD *)(v10 + 151) = 0u;
v10[167] = 0;
*(_OWORD *)(v10 + 135) = 0u;
if ( a2[23] < 0 )
a2 = *(const std::string::value_type **)a2;
std::string::assign((std::string *)(v10 + 64), a2);
*((_DWORD *)v10 + 14) = 1;
*((_QWORD *)v10 + 17) = a1;
*((_QWORD *)v10 + 18) = GJAccountManager::onProcessHttpRequestCompleted;
*((_QWORD *)v10 + 19) = 0;
if ( a1 )
cocos2d::CCObject::retain(a1);
if ( (a5 & 0xFFFFFFFE) == 0x16 )
*((_DWORD *)v10 + 51) = 600;
if ( a3[23] < 0 )
a3 = *(char **)a3;
v11 = strlen(a3);
sub_1000D788C((_QWORD *)v10 + 11, a3, &a3[v11], v11);
if ( a4[23] < 0 )
a4 = *(const std::string::value_type **)a4;
std::string::assign((std::string *)(v10 + 112), a4);
*((_DWORD *)v10 + 48) = a5;
Instance = cocos2d::extension::CCHttpClient::getInstance();
cocos2d::extension::CCHttpClient::send((__int64)Instance, (__int64)v10);
return cocos2d::CCObject::release(v10);
}