//
// GJMultiplayerManager::getBasePostString from 0x10073a010 to 0x10073a0ac (156 bytes)
//
// 3 xrefs:
// > GJMultiplayerManager::joinLobby @ 0x100739cf9
// > GJMultiplayerManager::exitLobby @ 0x10073a7c2
// > GJMultiplayerManager::uploadComment @ 0x10073ab83
//
// 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:26 +0000
//
std::string *__fastcall GJMultiplayerManager::getBasePostString(std::string *this)
{
__int64 v1; // rax
__int64 v2; // rax
const std::string::value_type *v3; // rsi
std::string::value_type __s[16]; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
GameLevelManager::sharedState();
GameLevelManager::getBasePostString(this);
std::string::append(this, "&username=");
v1 = GJAccountManager::sharedState((__int64)this, (__int64)"&username=");
if ( (*(_BYTE *)(v1 + 328) & 1) != 0 )
{
sub_10001AD30(__s, *(const void **)(v1 + 344), *(_QWORD *)(v1 + 336));
}
else
{
v2 = v1 + 328;
__p = *(void **)(v2 + 16);
*(_OWORD *)__s = *(_OWORD *)v2;
}
if ( (__s[0] & 1) != 0 )
v3 = (const std::string::value_type *)__p;
else
v3 = &__s[1];
std::string::append(this, v3);
if ( (__s[0] & 1) != 0 )
operator delete(__p);
return this;
}