//
// GameLevelManager::adminMessageBan from 0x83143c to 0x831590 (340 bytes)
//
// 2 xrefs:
// > AccountBanPopup::executeAction @ 0xc91348
// > ??> @ 0xf0028
//
// 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:09 +0000
//
__int64 __fastcall GameLevelManager::adminMessageBan(
cocos2d::CCObject *a1,
const char *a2,
unsigned __int8 a3,
unsigned int a4,
char *a5,
__int64 *a6)
{
unsigned int v6; // w20
int v8; // w24
int v9; // w21
cocos2d::CCString *v13; // x0
char *CString; // x26
cocos2d::CCString *v15; // x0
size_t v16; // x0
char *v17; // [xsp+50h] [xbp+50h]
__int64 v19[2]; // [xsp+60h] [xbp+60h] BYREF
void *v20; // [xsp+70h] [xbp+70h]
v6 = 0;
v8 = (int)a2;
v9 = a3;
if ( ((int)a4 <= 0) <= (unsigned int)a3 )
{
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"adminMsgBan_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v13);
if ( v9 )
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&mode=%s&durationMinutes=%i",
"perm",
a4);
else
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&mode=%s&durationMinutes=%i",
"temp",
a4);
v19[0] = 0;
v17 = (char *)cocos2d::CCString::getCString(v15);
v19[1] = 0;
v20 = nullptr;
v16 = strlen(v17);
std::string::__init(v19, v17, v16);
v6 = (unsigned __int8)GameLevelManager::sendAdminAction(
a1,
CString,
"https://www.boomlings.com/database/adminMessageBan.php",
99,
v8,
(__int64)v19,
a5,
a6);
if ( (v19[0] & 1) != 0 )
operator delete(v20);
}
return v6;
}