//
// GJMultiplayerManager::onProcessHttpRequestCompleted from 0x100738520 to 0x100738670 (336 bytes)
//
// 1 xrefs:
// > GJMultiplayerManager::ProcessHttpRequest @ 0x100738442
//
// 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 12:36:25 +0000
//
void __fastcall GJMultiplayerManager::onProcessHttpRequestCompleted(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rbx
__int64 v4; // rax
const char *v5; // r15
unsigned int v6; // r14d
size_t v7; // rax
size_t v8; // r12
char *v9; // r13
size_t v10; // rbx
__int128 v11; // [rsp+0h] [rbp-80h] BYREF
void *v12; // [rsp+10h] [rbp-70h]
__int128 v13; // [rsp+20h] [rbp-60h] BYREF
void *__p; // [rsp+30h] [rbp-50h]
_QWORD __dst[2]; // [rsp+38h] [rbp-48h] BYREF
void *v16; // [rsp+48h] [rbp-38h]
unsigned int v17; // [rsp+54h] [rbp-2Ch]
v3 = a1;
v4 = *(_QWORD *)(a3 + 56);
if ( (*(_BYTE *)(v4 + 112) & 1) != 0 )
v5 = *(const char **)(v4 + 128);
else
v5 = (const char *)(v4 + 113);
v6 = *(_DWORD *)(v4 + 192);
GameToolbox::getResponse((__int64)&v13, a3);
if ( (v13 & 1) != 0 )
{
sub_10001AD30(&v11, __p, *((unsigned __int64 *)&v13 + 1));
}
else
{
v12 = __p;
v11 = v13;
}
v7 = strlen(v5);
if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v8 = v7;
if ( v7 >= 0x17 )
{
v17 = v6;
v10 = 26;
if ( (v7 | 7) != 0x17 )
v10 = (v7 | 7) + 1;
v9 = (char *)operator new(v10);
v16 = v9;
__dst[0] = v10 | 1;
__dst[1] = v8;
v3 = a1;
v6 = v17;
goto LABEL_14;
}
LOBYTE(__dst[0]) = 2 * v7;
v9 = (char *)__dst + 1;
if ( v7 )
LABEL_14:
memmove(v9, v5, v8);
v9[v8] = 0;
GJMultiplayerManager::handleIt(v3, 1, &v11, __dst, v6);
if ( (__dst[0] & 1) != 0 )
{
operator delete(v16);
if ( (v11 & 1) == 0 )
{
LABEL_17:
if ( (v13 & 1) == 0 )
return;
goto LABEL_18;
}
}
else if ( (v11 & 1) == 0 )
{
goto LABEL_17;
}
operator delete(v12);
if ( (v13 & 1) != 0 )
LABEL_18:
operator delete(__p);
}