//
// GameLevelManager::requestThreadMembers from 0x827e28 to 0x828194 (876 bytes)
//
// 3 xrefs:
// > MemberListPopup::init @ 0xc6af34
// > MemberListPopup::init @ 0xc6af5c
// > ??> @ 0x60088
//
// This function is hookable on this platform (idp: arm, 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:55:04 +0000
//
__int64 __fastcall GameLevelManager::requestThreadMembers(GameLevelManager *this, const char *a2)
{
unsigned int v3; // w23
cocos2d::CCString *v4; // x0
char *CString; // x25
size_t v6; // x0
size_t v7; // x20
__int64 v8; // x26
unsigned __int64 v9; // x0
char *v10; // x3
__int64 v11; // x20
cocos2d::CCNode *v12; // x0
__int64 v14; // x22
cocos2d::CCObject *v15; // x20
size_t v16; // x0
cocos2d::CCString *v17; // x0
__int64 v18; // x0
cocos2d::CCString *v19; // x0
size_t v20; // x0
const char *v21; // x1
size_t v22; // x0
size_t v23; // x0
char *v24; // [xsp+58h] [xbp+58h]
char *v25; // [xsp+58h] [xbp+58h]
__int64 v26[2]; // [xsp+68h] [xbp+68h] BYREF
void *v27; // [xsp+78h] [xbp+78h]
__int64 v28[2]; // [xsp+80h] [xbp+80h] BYREF
void *v29; // [xsp+90h] [xbp+90h]
__int64 v30[2]; // [xsp+98h] [xbp+98h] BYREF
void *v31; // [xsp+A8h] [xbp+A8h]
unsigned __int64 v32; // [xsp+B0h] [xbp+B0h] BYREF
size_t v33; // [xsp+B8h] [xbp+B8h]
void *v34; // [xsp+C0h] [xbp+C0h]
v3 = (unsigned int)a2;
if ( (int)a2 <= 0 )
return 0;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"threadMembers_%i", a2);
v32 = 0;
CString = (char *)cocos2d::CCString::getCString(v4);
v33 = 0;
v34 = nullptr;
v6 = strlen(CString);
v7 = v6;
v8 = *((_QWORD *)this + 136);
if ( v6 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C79C();
if ( v6 > 0x16 )
{
v9 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v32 = v9 | 1;
v10 = (char *)operator new(v9);
v34 = v10;
v33 = v7;
LABEL_5:
v10 = (char *)memcpy(v10, CString, v7);
goto LABEL_6;
}
LOBYTE(v32) = 2 * v6;
v10 = (char *)&v32 + 1;
if ( v6 )
goto LABEL_5;
LABEL_6:
v10[v7] = 0;
v11 = cocos2d::CCDictionary::objectForKey(v8, &v32);
v12 = (cocos2d::CCNode *)(unsigned __int8)v32;
if ( (v32 & 1) != 0 )
{
operator delete(v34);
if ( v11 )
return 0;
}
else if ( v11 )
{
return 0;
}
v14 = *((_QWORD *)this + 136);
v15 = (cocos2d::CCObject *)cocos2d::CCNode::create(v12);
v32 = 0;
v33 = 0;
v34 = nullptr;
v16 = strlen(CString);
std::string::__init((__int64 *)&v32, CString, v16);
cocos2d::CCDictionary::setObject(v14, v15);
if ( (v32 & 1) != 0 )
operator delete(v34);
GameLevelManager::getBasePostString(v26);
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
v18 = cocos2d::CCString::getCString(v17);
v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&threadID=%i&secret=%s",
(const char *)v3,
v18);
v24 = (char *)cocos2d::CCString::getCString(v19);
v20 = strlen(v24);
std::string::append((__int64)v26, v24, v20);
v28[0] = 0;
v28[1] = 0;
v29 = nullptr;
std::string::__init(v28, "https://www.boomlings.com/database/getGJThreadMembers.php", 0x39u);
v21 = (char *)v26 + 1;
if ( (v26[0] & 1) != 0 )
v21 = (const char *)v27;
v25 = (char *)v21;
v30[0] = 0;
v30[1] = 0;
v31 = nullptr;
v22 = strlen(v21);
std::string::__init(v30, v25, v22);
v32 = 0;
v33 = 0;
v34 = nullptr;
v23 = strlen(CString);
std::string::__init((__int64 *)&v32, CString, v23);
GameLevelManager::ProcessHttpRequest(this, v28, (__int64)v30, (char *)&v32, 97);
if ( (v32 & 1) != 0 )
operator delete(v34);
if ( (v30[0] & 1) != 0 )
operator delete(v31);
if ( (v28[0] & 1) != 0 )
operator delete(v29);
if ( (v26[0] & 1) != 0 )
operator delete(v27);
return 1;
}