//
// GameLevelManager::adminThreadAction from 0x8253b0 to 0x825790 (992 bytes)
//
// 4 xrefs:
// > AccountReviewPopup::deleteEntry @ 0xc41390
// > ThreadViewPopup::requestDeleteMessage @ 0xc69170
// > ThreadOptionsPopup::FLAlert_Clicked @ 0xc6c178
// > ??> @ 0x5ec30
//
// 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::adminThreadAction(
cocos2d::CCObject *a1,
char *a2,
unsigned __int8 *a3,
__int64 a4)
{
unsigned int v7; // w21
int v8; // w4
__int64 v9; // x4
unsigned int v10; // w22
cocos2d::CCString *v11; // x0
const char *CString; // x0
char *v13; // x25
size_t v14; // x0
__int64 v15; // x26
__int64 v16; // x26
cocos2d::CCNode *v17; // x0
__int64 v19; // x27
cocos2d::CCObject *v20; // x26
size_t v21; // x0
unsigned __int8 *v22; // x27
cocos2d::CCString *v23; // x0
__int64 v24; // x0
cocos2d::CCString *v25; // x0
size_t v26; // x0
const char *v27; // x1
size_t v28; // x0
size_t v29; // x0
int v30; // w4
char *v31; // [xsp+68h] [xbp+68h]
char *v32; // [xsp+68h] [xbp+68h]
__int64 v33[2]; // [xsp+78h] [xbp+78h] BYREF
void *v34; // [xsp+88h] [xbp+88h]
__int64 v35[2]; // [xsp+90h] [xbp+90h] BYREF
void *v36; // [xsp+A0h] [xbp+A0h]
__int64 v37[2]; // [xsp+A8h] [xbp+A8h] BYREF
void *v38; // [xsp+B8h] [xbp+B8h]
__int64 v39; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v40; // [xsp+C8h] [xbp+C8h]
void *v41; // [xsp+D0h] [xbp+D0h]
v7 = (unsigned int)a2;
if ( (int)a2 <= 0 )
return 0;
v8 = *a3;
if ( (v8 & 1) != 0 )
{
v9 = *((_QWORD *)a3 + 1);
if ( v9 != 4 )
goto LABEL_4;
}
else
{
LODWORD(v9) = v8 >> 1;
if ( (_DWORD)v9 != 4 )
{
v9 = (int)v9;
goto LABEL_4;
}
}
v10 = 101;
if ( !(unsigned int)std::string::compare((__int64)a3, 0, 0xFFFFFFFFFFFFFFFFLL, "lock", 4u) )
goto LABEL_8;
v30 = *a3;
if ( (v30 & 1) != 0 )
v9 = *((_QWORD *)a3 + 1);
else
v9 = v30 >> 1;
LABEL_4:
v10 = 103;
if ( v9 == 6 )
{
if ( !(unsigned int)std::string::compare((__int64)a3, 0, 0xFFFFFFFFFFFFFFFFLL, "unlock", 6u) )
v10 = 102;
else
v10 = 103;
}
LABEL_8:
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"adminThread_%i_%i",
(const char *)v7,
v10);
CString = (const char *)cocos2d::CCString::getCString(v11);
v39 = 0;
v13 = (char *)CString;
v40 = 0;
v41 = nullptr;
v14 = strlen(CString);
v15 = *((_QWORD *)a1 + 136);
std::string::__init(&v39, v13, v14);
v16 = cocos2d::CCDictionary::objectForKey(v15, &v39);
v17 = (cocos2d::CCNode *)(unsigned __int8)v39;
if ( (v39 & 1) != 0 )
{
operator delete(v41);
if ( v16 )
return 0;
}
else if ( v16 )
{
return 0;
}
v19 = *((_QWORD *)a1 + 136);
v20 = (cocos2d::CCObject *)cocos2d::CCNode::create(v17);
v39 = 0;
v40 = 0;
v41 = nullptr;
v21 = strlen(v13);
std::string::__init(&v39, v13, v21);
cocos2d::CCDictionary::setObject(v19, v20);
if ( (v39 & 1) != 0 )
operator delete(v41);
GameLevelManager::getBasePostString(v33);
v22 = a3 + 1;
if ( (*a3 & 1) != 0 )
v22 = *((unsigned __int8 **)a3 + 2);
v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
v24 = cocos2d::CCString::getCString(v23);
v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&threadID=%i&action=%s&messageID=%lli&secret=%s",
(const char *)v7,
v22,
a4,
v24);
v31 = (char *)cocos2d::CCString::getCString(v25);
v26 = strlen(v31);
std::string::append((__int64)v33, v31, v26);
v35[0] = 0;
v35[1] = 0;
v36 = nullptr;
std::string::__init(v35, "https://www.boomlings.com/database/adminThreadAction.php", 0x38u);
v27 = (char *)v33 + 1;
if ( (v33[0] & 1) != 0 )
v27 = (const char *)v34;
v32 = (char *)v27;
v37[0] = 0;
v37[1] = 0;
v38 = nullptr;
v28 = strlen(v27);
std::string::__init(v37, v32, v28);
v39 = 0;
v40 = 0;
v41 = nullptr;
v29 = strlen(v13);
std::string::__init(&v39, v13, v29);
GameLevelManager::ProcessHttpRequest(a1, v35, (__int64)v37, (char *)&v39, 100);
if ( (v39 & 1) != 0 )
operator delete(v41);
if ( (v37[0] & 1) != 0 )
operator delete(v38);
if ( (v35[0] & 1) != 0 )
operator delete(v36);
if ( (v33[0] & 1) != 0 )
operator delete(v34);
return 1;
}