//
// GameLevelManager::adminCloseCase from 0x140247bc0 to 0x140247d6e (430 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::reviewChoicePicked @ 0x1400ba595
// > ??> @ 0x14091c2ec
//
// 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:39 +0000
//
// Hidden C++ exception states: #wind=2
char __fastcall GameLevelManager::adminCloseCase(__int64 a1, int a2, unsigned int a3, __int64 a4)
{
cocos2d::CCString *v8; // rax
char *CString; // r14
cocos2d::CCString *v10; // rax
const char *v11; // rax
size_t v12; // r8
char v13; // bl
void *v14; // rcx
void *v15; // rcx
void *Block[2]; // [rsp+40h] [rbp-68h] BYREF
__int64 v18; // [rsp+50h] [rbp-58h]
void *v19[2]; // [rsp+58h] [rbp-50h] BYREF
__int128 v20; // [rsp+68h] [rbp-40h]
if ( a3 > 2 )
return 0;
v8 = cocos2d::CCString::createWithFormat("adminCase_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v8);
v10 = cocos2d::CCString::createWithFormat("&outcome=%i", a3);
v11 = cocos2d::CCString::getCString(v10);
*(_OWORD *)v19 = 0;
v20 = 0;
v12 = -1;
do
++v12;
while ( v11[v12] );
sub_14003D230(v19, v11, v12);
*(_OWORD *)Block = 0;
v18 = 0;
v13 = GameLevelManager::sendAdminAction(
a1,
CString,
"https://www.boomlings.com/database/adminCloseCase.php",
0x5Au,
a2,
(size_t *)v19,
a4,
(__int64)Block);
v14 = Block[0];
if ( Block[0] )
{
if ( ((v18 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 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 ( *((_QWORD *)&v20 + 1) > 0xFu )
{
v15 = v19[0];
if ( (unsigned __int64)(*((_QWORD *)&v20 + 1) + 1LL) >= 0x1000 )
{
v15 = *((void **)v19[0] - 1);
if ( (unsigned __int64)((char *)v19[0] - (char *)v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
return v13;
}