//
// GJAccountManager::ProcessHttpRequest from 0x10039ea48 to 0x10039eb88 (320 bytes)
//
// 7 xrefs:
// > GJAccountManager::registerAccount @ 0x1003a04b8
// > GJAccountManager::loginAccount @ 0x1003a06d0
// > GJAccountManager::getAccountBackupURL @ 0x1003a0ad8
// > GJAccountManager::backupAccount @ 0x1003a0dc0
// > GJAccountManager::getAccountSyncURL @ 0x1003a1004
// > GJAccountManager::syncAccount @ 0x1003a11e8
// > GJAccountManager::updateAccountSettings @ 0x1003a1654
//
// 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
//
void __fastcall GJAccountManager::ProcessHttpRequest(
cocos2d::CCObject *a1,
const std::string::value_type *a2,
char *a3,
const std::string::value_type *a4,
int a5)
{
char *v10; // x19
unsigned int v11; // w0
cocos2d::extension::CCHttpClient *Instance; // x0
v10 = (char *)operator new(0xD8u);
cocos2d::CCObject::CCObject((__int64)v10);
*(_QWORD *)v10 = off_100781258;
*((_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) == 0x14 )
*((_DWORD *)v10 + 51) = 600;
if ( a3[23] < 0 )
a3 = *(char **)a3;
v11 = strlen(a3);
sub_1000B24E8((_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(Instance, (cocos2d::extension::CCHttpRequest *)v10);
cocos2d::CCObject::release((cocos2d::CCObject *)v10);
}