//
// GJMultiplayerManager::getBasePostString from 0x140391b90 to 0x140391c75 (229 bytes)
//
// 2 xrefs:
// > GJMultiplayerManager::uploadComment @ 0x1403913bf
// > ??> @ 0x140923000
//
// 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:31:11 +0000
//
// Hidden C++ exception states: #wind=3
_QWORD *__fastcall GJMultiplayerManager::getBasePostString(__int64 a1, _QWORD *a2)
{
__int64 v3; // rax
void **v4; // rdx
size_t v5; // r8
void *v7; // [rsp+30h] [rbp-38h]
void *v8[4]; // [rsp+38h] [rbp-30h] BYREF
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
GameLevelManager::getBasePostString(a1, a2);
sub_140044D80(a2, "&username=", 0xAu);
v3 = GJAccountManager::sharedState();
sub_14003F4F0((__int64)v8, v3 + 328);
v4 = v8;
if ( v8[3] > (void *)0xF )
v4 = (void **)v8[0];
v5 = -1;
do
++v5;
while ( *((_BYTE *)v4 + v5) );
sub_140044D80(a2, v4, v5);
sub_14003D310((__int64)v8);
return a2;
}