//
// AccountReviewPopup::adminActionConfirmed from 0x1400bc670 to 0x1400bc8a4 (564 bytes)
//
// 2 xrefs:
// > ??> @ 0x140721a50
// > ??> @ 0x1409138b0
//
// 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:26:17 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall AccountReviewPopup::adminActionConfirmed(__int64 a1, int a2, __int64 a3, __int64 a4)
{
const char *v5; // rdi
BOOL v6; // r14d
__int64 v7; // r15
__int64 v8; // rbx
__int64 v9; // rsi
int v10; // r12d
cocos2d::CCString *v11; // rax
unsigned int CString; // r13d
cocos2d::CCString *v13; // rax
const char *v14; // rax
size_t v15; // rbx
size_t v16; // r8
char v17; // si
void *v18; // r8
__int64 v19; // rsi
__int64 v20; // rax
void *v23; // [rsp+50h] [rbp-68h]
void *Block[2]; // [rsp+58h] [rbp-60h] BYREF
__int64 v25; // [rsp+68h] [rbp-50h]
unsigned __int64 v26; // [rsp+70h] [rbp-48h]
v5 = "Deleting posts...";
if ( a2 != 2 )
v5 = "Deleting comments...";
v6 = a2 == 2;
v7 = a1 - 816;
if ( a1 == 816 )
v8 = 0;
else
v8 = a1 - 40;
v9 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v23 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v23);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v9 + 1384) = v8;
v10 = *(_DWORD *)(a1 + 24);
v11 = cocos2d::CCString::createWithFormat("adminDelete_%i_%i", v10, v6);
CString = (unsigned int)cocos2d::CCString::getCString(v11);
v13 = cocos2d::CCString::createWithFormat("&scope=%i", v6);
v14 = cocos2d::CCString::getCString(v13);
*(_OWORD *)Block = 0;
v25 = 0;
v26 = 0;
v15 = -1;
v16 = -1;
do
++v16;
while ( v14[v16] );
sub_14003D230(Block, v14, v16);
v17 = GameLevelManager::sendAdminAction(
v9,
CString,
(unsigned int)"https://www.boomlings.com/database/adminDeleteUserComments.php",
79,
v10,
(__int64)Block,
a4,
a3);
if ( v26 > 0xF )
{
v18 = Block[0];
if ( v26 + 1 >= 0x1000 )
{
v18 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v18);
}
if ( v17 )
{
v19 = a1 - 24;
if ( !v7 )
v19 = 0;
*(_OWORD *)Block = 0;
v25 = 0;
v26 = 0;
do
++v15;
while ( v5[v15] );
sub_14003D230(Block, v5, v15);
v20 = UploadActionPopup::create(v19, Block);
*(_QWORD *)(a1 + 568) = v20;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v20 + 1064LL))(v20);
}
}