//
// GameLevelManager::sendAdminAction from 0x830c20 to 0x83101c (1020 bytes)
//
// 17 xrefs:
// > GameLevelManager::adminDeleteUserComments @ 0x831110
// > GameLevelManager::adminCommentBan @ 0x8312a0
// > GameLevelManager::adminUploadBan @ 0x8313f4
// > GameLevelManager::adminMessageBan @ 0x831548
// > GameLevelManager::adminFreezeAccount @ 0x83169c
// > GameLevelManager::adminTrendingBan @ 0x831754
// > GameLevelManager::adminNameLock @ 0x831820
// > GameLevelManager::adminCommentUnban @ 0x831918
// > GameLevelManager::adminUploadUnban @ 0x831a64
// > GameLevelManager::adminCloseCase @ 0x831c04
// > GameLevelManager::adminMessageUnban @ 0x831d30
// > GameLevelManager::adminUnfreezeAccount @ 0x831e7c
// > GameLevelManager::adminTrendingUnban @ 0x831fc8
// > GameLevelManager::adminNameUnlock @ 0x832114
// > GameLevelManager::adminQueueMute @ 0x832260
// > GameLevelManager::adminQueueUnmute @ 0x8323ac
// > ??> @ 0xed2f8
//
// 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:08 +0000
//
__int64 __fastcall GameLevelManager::sendAdminAction(
cocos2d::CCObject *a1,
char *a2,
char *a3,
int a4,
int a5,
__int64 a6,
char *a7,
__int64 *a8)
{
size_t v14; // x0
size_t v15; // x27
__int64 v16; // x26
char *v17; // x4
__int64 v18; // x1
cocos2d::CCNode *v19; // x0
size_t v21; // x0
cocos2d::CCString *v22; // x0
size_t v23; // x0
void *v24; // x1
size_t v25; // x2
cocos2d::CCString *v26; // x0
const char *v27; // x0
cocos2d::CCString *v28; // x0
size_t v29; // x0
size_t v30; // x0
const char *v31; // x1
size_t v32; // x0
size_t v33; // x0
int v34[2]; // [xsp+60h] [xbp+60h]
unsigned __int64 v35; // [xsp+68h] [xbp+68h]
cocos2d::CCObject *v36; // [xsp+68h] [xbp+68h]
cocos2d::CCObject *v37; // [xsp+68h] [xbp+68h]
cocos2d::CCObject *CString; // [xsp+68h] [xbp+68h]
cocos2d::CCObject *v39; // [xsp+68h] [xbp+68h]
char *v41; // [xsp+70h] [xbp+70h]
__int64 v43[2]; // [xsp+88h] [xbp+88h] BYREF
void *v44; // [xsp+98h] [xbp+98h]
__int64 v45[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v46; // [xsp+B0h] [xbp+B0h]
__int64 v47[2]; // [xsp+B8h] [xbp+B8h] BYREF
void *v48; // [xsp+C8h] [xbp+C8h]
unsigned __int64 v49; // [xsp+D0h] [xbp+D0h] BYREF
size_t v50; // [xsp+D8h] [xbp+D8h]
void *v51; // [xsp+E0h] [xbp+E0h]
if ( a5 <= 0 )
return 0;
v49 = 0;
v50 = 0;
v51 = nullptr;
v14 = strlen(a2);
v15 = v14;
v16 = *((_QWORD *)a1 + 136);
if ( v14 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C79C();
if ( v14 > 0x16 )
{
v35 = (v14 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v50 = v14;
v17 = (char *)operator new(v35);
v51 = v17;
v49 = v35 | 1;
LABEL_5:
v17 = (char *)memcpy(v17, a2, v15);
goto LABEL_6;
}
LOBYTE(v49) = 2 * v14;
v17 = (char *)&v49 + 1;
if ( v14 )
goto LABEL_5;
LABEL_6:
v17[v15] = 0;
v18 = cocos2d::CCDictionary::objectForKey(v16, &v49);
v19 = (cocos2d::CCNode *)(unsigned __int8)v49;
if ( (v49 & 1) != 0 )
{
v36 = (cocos2d::CCObject *)v18;
operator delete(v51);
if ( v36 )
return 0;
}
else if ( v18 )
{
return 0;
}
*(_QWORD *)v34 = *((_QWORD *)a1 + 136);
v37 = (cocos2d::CCObject *)cocos2d::CCNode::create(v19);
v49 = 0;
v50 = 0;
v51 = nullptr;
v21 = strlen(a2);
std::string::__init((__int64 *)&v49, a2, v21);
cocos2d::CCDictionary::setObject(v34[0], v37);
if ( (v49 & 1) != 0 )
operator delete(v51);
GameLevelManager::getBasePostString(v43);
v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&targetAccountID=%i",
(const char *)(unsigned int)a5);
CString = (cocos2d::CCObject *)cocos2d::CCString::getCString(v22);
v23 = strlen((const char *)CString);
std::string::append((__int64)v43, CString, v23);
if ( (*(_BYTE *)a6 & 1) != 0 )
{
v24 = *(void **)(a6 + 16);
v25 = *(_QWORD *)(a6 + 8);
}
else
{
v24 = (void *)(a6 + 1);
v25 = *(_BYTE *)a6 >> 1;
}
std::string::append((__int64)v43, v24, v25);
v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
v27 = (const char *)cocos2d::CCString::getCString(v26);
v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&secret=%s", v27);
v39 = (cocos2d::CCObject *)cocos2d::CCString::getCString(v28);
v29 = strlen((const char *)v39);
std::string::append((__int64)v43, v39, v29);
GameLevelManager::appendModReason((int)a1, (__int64)v43, a7, a8);
v45[0] = 0;
v45[1] = 0;
v46 = nullptr;
v30 = strlen(a3);
std::string::__init(v45, a3, v30);
v31 = (char *)v43 + 1;
if ( (v43[0] & 1) != 0 )
v31 = (const char *)v44;
v41 = (char *)v31;
v47[0] = 0;
v47[1] = 0;
v48 = nullptr;
v32 = strlen(v31);
std::string::__init(v47, v41, v32);
v49 = 0;
v50 = 0;
v51 = nullptr;
v33 = strlen(a2);
std::string::__init((__int64 *)&v49, a2, v33);
GameLevelManager::ProcessHttpRequest(a1, v45, (__int64)v47, (char *)&v49, a4);
if ( (v49 & 1) != 0 )
operator delete(v51);
if ( (v47[0] & 1) != 0 )
operator delete(v48);
if ( (v45[0] & 1) != 0 )
operator delete(v46);
if ( (v43[0] & 1) != 0 )
operator delete(v44);
return 1;
}