//
// GameLevelManager::getUserList from 0x4ba6e8 to 0x4ba832 (330 bytes)
//
// 3 xrefs:
// > FriendsProfilePage::forceReloadList @ 0x5f39ac
// > FriendsProfilePage::init @ 0x5f44e0
// > FriendPickerPopup::init @ 0x74a3b4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:15 +0000
//
int __fastcall GameLevelManager::getUserList(GameLevelManager *this, const char *a2)
{
const char *v2; // r11
const char *v5; // r5
int result; // r0
int v7; // r2
int v8; // r3
cocos2d::CCString *v9; // r0
int CString; // r0
cocos2d::CCString *v11; // r0
char *v12; // r0
size_t v13; // r0
size_t v14; // r0
char *v15[3]; // [sp+14h] [bp-38h] BYREF
int v16[3]; // [sp+20h] [bp-2Ch] BYREF
int v17[3]; // [sp+2Ch] [bp-20h] BYREF
int v18[3]; // [sp+38h] [bp-14h] BYREF
if ( a2 )
{
if ( a2 == (_BYTE *)&dword_0 + 3 )
{
v5 = "get_following";
}
else if ( a2 == &byte_4 )
{
v5 = "get_muted";
}
else
{
v5 = "get_blocked";
}
}
else
{
v5 = "get_friends";
}
result = GameLevelManager::isDLActive(this, v5);
if ( !result )
{
GameLevelManager::addDLToActive(this, v5, v7, v8);
GameLevelManager::getBasePostString((GameLevelManager *)v15);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
CString = cocos2d::CCString::getCString(v9);
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&type=%i&secret=%s",
a2,
CString);
v12 = (char *)cocos2d::CCString::getCString(v11);
std::string::append(v15, v12);
memset(v16, 0, sizeof(v16));
std::string::__init(v16, "https://www.boomlings.com/database/getGJUserList20.php", 0x36u);
v17[0] = 0;
v17[1] = 0;
if ( ((int)v15[0] & 1) == 0 )
v2 = (char *)v15 + 1;
v17[2] = 0;
if ( ((int)v15[0] & 1) != 0 )
v2 = v15[2];
v13 = strlen(v2);
std::string::__init(v17, v2, v13);
memset(v18, 0, sizeof(v18));
v14 = strlen(v5);
std::string::__init(v18, v5, v14);
GameLevelManager::ProcessHttpRequest(this, v16, (int)v17, (int)v18, 42);
std::string::~string((int)v18);
std::string::~string((int)v17);
std::string::~string((int)v16);
return std::string::~string((int)v15);
}
return result;
}