//
// GameLevelManager::getUserList from 0x140257250 to 0x14025747d (557 bytes)
//
// 4 xrefs:
// > FriendPickerPopup::init @ 0x1400e7591
// > FriendsProfilePage::init @ 0x14021454f
// > FriendsProfilePage::forceReloadList @ 0x1402157a8
// > ??> @ 0x14091c634
//
// 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:44 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall GameLevelManager::getUserList(cocos2d::CCActionManager **a1, int a2)
{
__int64 *v4; // rdi
__int64 v5; // rcx
cocos2d::CCString *v6; // rax
const char *CString; // rax
cocos2d::CCString *v8; // rax
char *v9; // rax
size_t v10; // rbx
size_t v11; // r8
size_t v12; // r8
_QWORD *v13; // rdx
__int128 v14; // [rsp+40h] [rbp-59h] BYREF
__int64 v15; // [rsp+50h] [rbp-49h]
__int64 v16; // [rsp+58h] [rbp-41h]
__int128 v17; // [rsp+60h] [rbp-39h] BYREF
__int64 v18; // [rsp+70h] [rbp-29h]
__int64 v19; // [rsp+78h] [rbp-21h]
__int128 v20; // [rsp+80h] [rbp-19h] BYREF
__int64 v21; // [rsp+90h] [rbp-9h]
__int64 v22; // [rsp+98h] [rbp-1h]
__int128 *v23; // [rsp+A0h] [rbp+7h]
__int128 *v24; // [rsp+A8h] [rbp+Fh]
_QWORD Src[4]; // [rsp+B8h] [rbp+1Fh] BYREF
if ( a2 )
{
if ( a2 == 3 )
{
v4 = &qword_14075A508;
}
else
{
v4 = &qword_14075A4F8;
if ( a2 != 4 )
v4 = (__int64 *)"get_blocked";
}
}
else
{
v4 = (__int64 *)"get_friends";
}
if ( !GameLevelManager::isDLActive((__int64)a1, v4) )
{
GameLevelManager::addDLToActive((__int64)a1, v4);
GameLevelManager::getBasePostString(v5, Src);
v6 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_14070D040);
CString = cocos2d::CCString::getCString(v6);
v8 = cocos2d::CCString::createWithFormat("&type=%i&secret=%s", a2, CString);
v9 = (char *)cocos2d::CCString::getCString(v8);
v10 = -1;
v11 = -1;
do
++v11;
while ( v9[v11] );
sub_140044D80(Src, v9, v11);
v23 = &v17;
v24 = &v20;
v17 = 0;
v18 = 0;
v19 = 0;
v12 = -1;
do
++v12;
while ( *((_BYTE *)v4 + v12) );
sub_14003D230(&v17, v4, v12);
v13 = Src;
if ( Src[3] > 0xFu )
v13 = (_QWORD *)Src[0];
v20 = 0;
v21 = 0;
v22 = 0;
do
++v10;
while ( *((_BYTE *)v13 + v10) );
sub_14003D230(&v20, v13, v10);
v14 = 0;
*(_QWORD *)&v14 = sub_14003D460(0x40u);
v15 = 54;
v16 = 63;
strcpy((char *)v14, "https://www.boomlings.com/database/getGJUserList20.php");
GameLevelManager::ProcessHttpRequest(a1, (__int64)&v14, (const char *)&v20, (const char *)&v17, 0x2Au);
sub_14003D310((__int64)Src);
}
}