//
// GameLevelManager::requestThreadMembers from 0x140252270 to 0x1402525a3 (819 bytes)
//
// 2 xrefs:
// > MemberListPopup::init @ 0x1400ebf2e
// > ??> @ 0x14091c4f0
//
// 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:28:42 +0000
//
// Hidden C++ exception states: #wind=4
char __fastcall GameLevelManager::requestThreadMembers(__int64 a1, int a2)
{
cocos2d::CCString *v4; // rax
const char *CString; // rax
const char *v6; // rsi
size_t v7; // rdi
size_t v8; // r8
__int64 v9; // rbx
void *v10; // r8
size_t v11; // r8
__int64 v12; // rbx
__int64 v13; // rax
__int64 v14; // rcx
void *v15; // rcx
cocos2d::CCString *v16; // rax
const char *v17; // rax
cocos2d::CCString *v18; // rax
char *v19; // rax
size_t v20; // r8
size_t v21; // r8
_QWORD *v22; // rdx
__int128 v24; // [rsp+40h] [rbp-69h] BYREF
__int64 v25; // [rsp+50h] [rbp-59h]
__int64 v26; // [rsp+58h] [rbp-51h]
__int128 v27; // [rsp+60h] [rbp-49h] BYREF
__int64 v28; // [rsp+70h] [rbp-39h]
__int64 v29; // [rsp+78h] [rbp-31h]
__int128 *v30; // [rsp+80h] [rbp-29h]
__int128 *v31; // [rsp+88h] [rbp-21h]
void *Block[2]; // [rsp+98h] [rbp-11h] BYREF
__int128 v33; // [rsp+A8h] [rbp-1h]
_QWORD Src[4]; // [rsp+B8h] [rbp+Fh] BYREF
if ( a2 <= 0 )
return 0;
v4 = cocos2d::CCString::createWithFormat("threadMembers_%i", a2);
CString = cocos2d::CCString::getCString(v4);
v6 = CString;
*(_OWORD *)Block = 0;
v33 = 0;
v7 = -1;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003D230(Block, CString, v8);
v9 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1200), Block);
if ( *((_QWORD *)&v33 + 1) > 0xFu )
{
v10 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v33 + 1) + 1LL) >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
}
if ( v9 )
return 0;
*(_OWORD *)Block = 0;
v33 = 0;
v11 = -1;
do
++v11;
while ( v6[v11] );
sub_14003D230(Block, v6, v11);
v12 = *(_QWORD *)(a1 + 1200);
v13 = cocos2d::CCNode::create();
cocos2d::CCDictionary::setObject(v12, v13, Block);
if ( *((_QWORD *)&v33 + 1) > 0xFu )
{
v15 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v33 + 1) + 1LL) >= 0x1000 )
{
v15 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
GameLevelManager::getBasePostString(v14, Src);
v16 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_14070D040);
v17 = cocos2d::CCString::getCString(v16);
v18 = cocos2d::CCString::createWithFormat("&threadID=%i&secret=%s", a2, v17);
v19 = (char *)cocos2d::CCString::getCString(v18);
v20 = -1;
do
++v20;
while ( v19[v20] );
sub_140044D80(Src, v19, v20);
v30 = &v24;
v31 = &v27;
v24 = 0;
v25 = 0;
v26 = 0;
v21 = -1;
do
++v21;
while ( v6[v21] );
sub_14003D230(&v24, v6, v21);
v22 = Src;
if ( Src[3] > 0xFu )
v22 = (_QWORD *)Src[0];
v27 = 0;
v28 = 0;
v29 = 0;
do
++v7;
while ( *((_BYTE *)v22 + v7) );
sub_14003D230(&v27, v22, v7);
*(_OWORD *)Block = 0;
v33 = 0u;
Block[0] = sub_14003D460(0x40u);
*(_QWORD *)&v33 = 57;
*((_QWORD *)&v33 + 1) = 63;
strcpy((char *)Block[0], "https://www.boomlings.com/database/getGJThreadMembers.php");
GameLevelManager::ProcessHttpRequest(
(cocos2d::CCActionManager **)a1,
(__int64)Block,
(const char *)&v27,
(const char *)&v24,
0x61u);
sub_14003D310((__int64)Src);
return 1;
}