//
// GameLevelManager::sendAdminAction from 0x1402412b0 to 0x14024161b (875 bytes)
//
// 17 xrefs:
// > AccountBanPopup::executeAction @ 0x1400a979d
// > AccountBanPopup::executeAction @ 0x1400a9994
// > AccountBanPopup::executeAction @ 0x1400a9af3
// > AccountBanPopup::executeAction @ 0x1400a9cb0
// > AccountBanPopup::executeAction @ 0x1400a9eed
// > AccountBanPopup::executeAction @ 0x1400aa059
// > AccountBanPopup::executeAction @ 0x1400aa2a1
// > AccountBanPopup::executeAction @ 0x1400aa3f5
// > AccountBanPopup::executeAction @ 0x1400aa58d
// > AccountBanPopup::executeAction @ 0x1400aa6e5
// > AccountBanPopup::executeAction @ 0x1400aa87d
// > AccountBanPopup::executeAction @ 0x1400aa9dd
// > AccountBanPopup::executeAction @ 0x1400aab8c
// > AccountBanPopup::executeAction @ 0x1400aad12
// > AccountReviewPopup::adminActionConfirmed @ 0x1400bc7c3
// > GameLevelManager::adminCloseCase @ 0x140247c9a
// > ??> @ 0x14091c1cc
//
// 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:36 +0000
//
// Hidden C++ exception states: #wind=4
char __fastcall GameLevelManager::sendAdminAction(
__int64 a1,
_BYTE *a2,
_BYTE *a3,
unsigned int a4,
int a5,
size_t *a6,
__int64 a7,
__int64 a8)
{
size_t v11; // rdi
size_t v12; // r8
__int64 v13; // rbx
void *v14; // r8
size_t v15; // r8
__int64 v16; // rbx
__int64 v17; // rax
__int64 v18; // rcx
void *v19; // rcx
cocos2d::CCString *v20; // rax
char *CString; // rax
size_t v22; // r8
void *v23; // rdx
cocos2d::CCString *v24; // rax
const char *v25; // rax
cocos2d::CCString *v26; // rax
char *v27; // rax
size_t v28; // r8
__int64 v29; // rcx
size_t v30; // r8
_QWORD *v31; // rdx
size_t v32; // r8
__int128 v35; // [rsp+58h] [rbp-99h] BYREF
__int64 v36; // [rsp+68h] [rbp-89h]
__int64 v37; // [rsp+70h] [rbp-81h]
__int128 v38; // [rsp+78h] [rbp-79h] BYREF
__int64 v39; // [rsp+88h] [rbp-69h]
__int64 v40; // [rsp+90h] [rbp-61h]
void *Block[2]; // [rsp+A0h] [rbp-51h] BYREF
__int128 v42; // [rsp+B0h] [rbp-41h]
_QWORD Src[4]; // [rsp+C0h] [rbp-31h] BYREF
if ( a5 <= 0 )
return 0;
*(_OWORD *)Block = 0;
v42 = 0;
v11 = -1;
v12 = -1;
do
++v12;
while ( a2[v12] );
sub_14003D230(Block, a2, v12);
v13 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1200), Block);
if ( *((_QWORD *)&v42 + 1) > 0xFu )
{
v14 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v42 + 1) + 1LL) >= 0x1000 )
{
v14 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v14);
}
if ( v13 )
return 0;
*(_OWORD *)Block = 0;
v42 = 0;
v15 = -1;
do
++v15;
while ( a2[v15] );
sub_14003D230(Block, a2, v15);
v16 = *(_QWORD *)(a1 + 1200);
v17 = cocos2d::CCNode::create();
cocos2d::CCDictionary::setObject(v16, v17, Block);
if ( *((_QWORD *)&v42 + 1) > 0xFu )
{
v19 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v42 + 1) + 1LL) >= 0x1000 )
{
v19 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v19);
}
GameLevelManager::getBasePostString(v18, Src);
v20 = cocos2d::CCString::createWithFormat("&targetAccountID=%i", a5);
CString = (char *)cocos2d::CCString::getCString(v20);
v22 = -1;
do
++v22;
while ( CString[v22] );
sub_140044D80(Src, CString, v22);
v23 = a6;
if ( a6[3] > 0xF )
v23 = (void *)*a6;
sub_140044D80(Src, v23, a6[2]);
v24 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_14070D040);
v25 = cocos2d::CCString::getCString(v24);
v26 = cocos2d::CCString::createWithFormat("&secret=%s", v25);
v27 = (char *)cocos2d::CCString::getCString(v26);
v28 = -1;
do
++v28;
while ( v27[v28] );
sub_140044D80(Src, v27, v28);
GameLevelManager::appendModReason(v29, Src, a7, a8);
*(_OWORD *)Block = 0;
v42 = 0u;
v30 = -1;
do
++v30;
while ( a2[v30] );
sub_14003D230(Block, a2, v30);
v31 = Src;
if ( Src[3] > 0xFu )
v31 = (_QWORD *)Src[0];
v35 = 0;
v36 = 0;
v37 = 0;
v32 = -1;
do
++v32;
while ( *((_BYTE *)v31 + v32) );
sub_14003D230(&v35, v31, v32);
v38 = 0;
v39 = 0;
v40 = 0;
do
++v11;
while ( a3[v11] );
sub_14003D230(&v38, a3, v11);
GameLevelManager::ProcessHttpRequest(
(cocos2d::CCActionManager **)a1,
(__int64)&v38,
(const char *)&v35,
(const char *)Block,
a4);
sub_14003D310((__int64)Src);
return 1;
}