//
// GJMultiplayerManager::getBasePostString from 0x140283ed0 to 0x140283fb5 (229 bytes)
//
// 2 xrefs:
// > GJMultiplayerManager::uploadComment @ 0x140283738
// > ??> @ 0x1406d14e4
//
// 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
//
// Hidden C++ exception states: #wind=3
_QWORD *__fastcall GJMultiplayerManager::getBasePostString(__int64 a1, _QWORD *a2)
{
GJAccountManager *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_1406C2EC0 )
{
v7 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
}
GameLevelManager::getBasePostString(a1, a2);
sub_140041270(a2, "&username=", 0xAu);
v3 = GJAccountManager::sharedState();
sub_14003BDB0((__int64)v8, (__int64)&v3->m_username);
v4 = v8;
if ( v8[3] > (void *)0xF )
v4 = (void **)v8[0];
v5 = -1;
do
++v5;
while ( *((_BYTE *)v4 + v5) );
sub_140041270(a2, v4, v5);
sub_14003A830((__int64)v8);
return a2;
}