//
// GameLevelManager::adminGetReportedContent from 0x8243a0 to 0x8246d4 (820 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::requestPage @ 0xc3f894
// > ??> @ 0x81f88
//
// 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:03 +0000
//
__int64 __fastcall GameLevelManager::adminGetReportedContent(
GameLevelManager *this,
const char *a2,
unsigned int a3,
unsigned int a4,
unsigned int a5)
{
unsigned int v5; // w20
cocos2d::CCString *v10; // x0
const char *CString; // x0
char *v12; // x26
size_t v13; // x0
__int64 v14; // x27
__int64 v15; // x27
cocos2d::CCNode *v16; // x0
__int64 v18; // x28
cocos2d::CCObject *v19; // x27
size_t v20; // x0
cocos2d::CCString *v21; // x0
__int64 v22; // x0
cocos2d::CCString *v23; // x0
size_t v24; // x0
const char *v25; // x1
size_t v26; // x0
size_t v27; // x0
char *v28; // [xsp+68h] [xbp+68h]
char *v29; // [xsp+68h] [xbp+68h]
__int64 v30[2]; // [xsp+78h] [xbp+78h] BYREF
void *v31; // [xsp+88h] [xbp+88h]
__int64 v32[2]; // [xsp+90h] [xbp+90h] BYREF
void *v33; // [xsp+A0h] [xbp+A0h]
__int64 v34[2]; // [xsp+A8h] [xbp+A8h] BYREF
void *v35; // [xsp+B8h] [xbp+B8h]
__int64 v36; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v37; // [xsp+C8h] [xbp+C8h]
void *v38; // [xsp+D0h] [xbp+D0h]
v5 = (unsigned int)a2;
if ( (int)a2 <= 0 || (a3 & 0x80000000) != 0 )
return 0;
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"adminReported_%i", a2);
CString = (const char *)cocos2d::CCString::getCString(v10);
v36 = 0;
v12 = (char *)CString;
v37 = 0;
v38 = nullptr;
v13 = strlen(CString);
v14 = *((_QWORD *)this + 136);
std::string::__init(&v36, v12, v13);
v15 = cocos2d::CCDictionary::objectForKey(v14, &v36);
v16 = (cocos2d::CCNode *)(unsigned __int8)v36;
if ( (v36 & 1) != 0 )
{
operator delete(v38);
if ( v15 )
return 0;
}
else if ( v15 )
{
return 0;
}
v18 = *((_QWORD *)this + 136);
v19 = (cocos2d::CCObject *)cocos2d::CCNode::create(v16);
v36 = 0;
v37 = 0;
v38 = nullptr;
v20 = strlen(v12);
std::string::__init(&v36, v12, v20);
cocos2d::CCDictionary::setObject(v18, v19);
if ( (v36 & 1) != 0 )
operator delete(v38);
GameLevelManager::getBasePostString(v30);
v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
v22 = cocos2d::CCString::getCString(v21);
v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&targetAccountID=%i&page=%i&sort=%i&ctype=%i&secret=%s",
(const char *)v5,
a3,
a4,
a5,
v22);
v28 = (char *)cocos2d::CCString::getCString(v23);
v24 = strlen(v28);
std::string::append((__int64)v30, v28, v24);
v32[0] = 0;
v32[1] = 0;
v33 = nullptr;
std::string::__init(v32, "https://www.boomlings.com/database/adminGetReportedContent.php", 0x3Eu);
v25 = (char *)v30 + 1;
if ( (v30[0] & 1) != 0 )
v25 = (const char *)v31;
v29 = (char *)v25;
v34[0] = 0;
v34[1] = 0;
v35 = nullptr;
v26 = strlen(v25);
std::string::__init(v34, v29, v26);
v36 = 0;
v37 = 0;
v38 = nullptr;
v27 = strlen(v12);
std::string::__init(&v36, v12, v27);
GameLevelManager::ProcessHttpRequest(this, v32, (__int64)v34, (char *)&v36, 85);
if ( (v36 & 1) != 0 )
operator delete(v38);
if ( (v34[0] & 1) != 0 )
operator delete(v35);
if ( (v32[0] & 1) != 0 )
operator delete(v33);
if ( (v30[0] & 1) != 0 )
operator delete(v31);
return 1;
}