//
// GameLevelManager::adminGetReportQueue from 0x140244880 to 0x140244b9a (794 bytes)
//
// 2 xrefs:
// > ReportQueuePopup::requestPage @ 0x1400c7f68
// > ??> @ 0x14091c298
//
// 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:37 +0000
//
// Hidden C++ exception states: #wind=4
char __fastcall GameLevelManager::adminGetReportQueue(__int64 a1, int a2, int a3, int a4)
{
__int64 v8; // rbx
void *v9; // r8
__int64 v10; // rbx
__int64 v11; // rax
__int64 v12; // rcx
void *v13; // rcx
cocos2d::CCString *v14; // rax
const char *CString; // rax
cocos2d::CCString *v16; // rax
char *v17; // rax
size_t v18; // rbx
size_t v19; // r8
_QWORD *v20; // rdx
int Reserved; // [rsp+20h] [rbp-99h]
int v23; // [rsp+28h] [rbp-91h]
__int128 v24; // [rsp+40h] [rbp-79h] BYREF
__int64 v25; // [rsp+50h] [rbp-69h]
__int64 v26; // [rsp+58h] [rbp-61h]
__int128 v27; // [rsp+60h] [rbp-59h] BYREF
__int64 v28; // [rsp+70h] [rbp-49h]
__int64 v29; // [rsp+78h] [rbp-41h]
__int128 *v30; // [rsp+80h] [rbp-39h]
__int128 *v31; // [rsp+88h] [rbp-31h]
void *Block[2]; // [rsp+98h] [rbp-21h] BYREF
__int128 v33; // [rsp+A8h] [rbp-11h]
_QWORD Src[4]; // [rsp+B8h] [rbp-1h] BYREF
if ( a2 < 0 )
return 0;
*(_OWORD *)Block = 0;
v33 = 0;
sub_14003D230(Block, "adminReportQueue", 0x10u);
v8 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1200), Block);
if ( *((_QWORD *)&v33 + 1) > 0xFu )
{
v9 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v33 + 1) + 1LL) >= 0x1000 )
{
v9 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v9);
}
if ( v8 )
return 0;
*(_OWORD *)Block = 0;
v33 = 0;
sub_14003D230(Block, "adminReportQueue", 0x10u);
v10 = *(_QWORD *)(a1 + 1200);
v11 = cocos2d::CCNode::create();
cocos2d::CCDictionary::setObject(v10, v11, Block);
if ( *((_QWORD *)&v33 + 1) > 0xFu )
{
v13 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v33 + 1) + 1LL) >= 0x1000 )
{
v13 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v13);
}
GameLevelManager::getBasePostString(v12, Src);
v23 = 98;
Reserved = 103;
v14 = cocos2d::CCString::createWithFormat(
"%c%s%s%c%c%s",
87,
"mfd",
"2893",
Reserved,
v23,
(const char *)&word_14070D040);
CString = cocos2d::CCString::getCString(v14);
v16 = cocos2d::CCString::createWithFormat("&page=%i&sort=%i&mode=%i&flags=1&secret=%s", a2, a3, a4, CString);
v17 = (char *)cocos2d::CCString::getCString(v16);
v18 = -1;
v19 = -1;
do
++v19;
while ( v17[v19] );
sub_140044D80(Src, v17, v19);
v30 = &v24;
v31 = &v27;
v24 = 0;
v25 = 0;
v26 = 0;
sub_14003D230(&v24, "adminReportQueue", 0x10u);
v20 = Src;
if ( Src[3] > 0xFu )
v20 = (_QWORD *)Src[0];
v27 = 0;
v28 = 0;
v29 = 0;
do
++v18;
while ( *((_BYTE *)v20 + v18) );
sub_14003D230(&v27, v20, v18);
*(_OWORD *)Block = 0;
v33 = 0u;
Block[0] = sub_14003D460(0x40u);
*(_QWORD *)&v33 = 58;
*((_QWORD *)&v33 + 1) = 63;
strcpy((char *)Block[0], "https://www.boomlings.com/database/adminGetReportQueue.php");
GameLevelManager::ProcessHttpRequest(
(cocos2d::CCActionManager **)a1,
(__int64)Block,
(const char *)&v27,
(const char *)&v24,
0x57u);
sub_14003D310((__int64)Src);
return 1;
}