//
// AccountReviewPopup::onBans from 0x1400b96d0 to 0x1400b9a61 (913 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::init @ 0x1400b0544
// > ??> @ 0x14091379c
//
// 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:16 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall AccountReviewPopup::onBans(__int64 a1)
{
__int64 *v1; // rdi
__int64 v2; // rbx
__int64 v3; // rdx
__int64 v4; // r8
__int64 v5; // rax
int v7; // ebx
int v8; // edi
int v9; // esi
int v10; // ebp
int v11; // r14d
int v12; // r15d
int v13; // r12d
_QWORD *v14; // r13
__int64 (__fastcall *v15)(_QWORD *); // rdx
_WORD v16[8]; // [rsp+50h] [rbp-78h] BYREF
__int64 v17; // [rsp+60h] [rbp-68h]
__int64 v18; // [rsp+68h] [rbp-60h]
__int128 v19; // [rsp+70h] [rbp-58h] BYREF
__int64 v20; // [rsp+80h] [rbp-48h]
__int64 v21; // [rsp+88h] [rbp-40h]
if ( *(_BYTE *)(a1 + 1320) )
{
v7 = *(_DWORD *)(a1 + 1316);
v8 = *(_DWORD *)(a1 + 1312);
v9 = *(_DWORD *)(a1 + 1308);
v10 = *(_DWORD *)(a1 + 1072);
v11 = *(_DWORD *)(a1 + 1068);
v12 = *(_DWORD *)(a1 + 1064);
v13 = *(_DWORD *)(a1 + 840);
v14 = operator new(0x520u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v14);
*v14 = &AccountBanPopup::`vftable';
v14[40] = &AccountBanPopup::`vftable';
v14[41] = &AccountBanPopup::`vftable';
v14[42] = &AccountBanPopup::`vftable';
v14[43] = &AccountBanPopup::`vftable';
v14[44] = &AccountBanPopup::`vftable';
v14[51] = &AccountBanPopup::`vftable';
v14[54] = &AccountBanPopup::`vftable';
v14[68] = &AccountBanPopup::`vftable';
v14[83] = &AccountBanPopup::`vftable';
v14[84] = &AccountBanPopup::`vftable';
v14[125] = &AccountBanPopup::`vftable';
v14[126] = &AccountBanPopup::`vftable';
v14[127] = &AccountBanPopup::`vftable';
v14[128] = &AccountBanPopup::`vftable';
*((_DWORD *)v14 + 258) = 0;
*((_OWORD *)v14 + 65) = 0;
v14[132] = 0;
v14[133] = 15;
*((_BYTE *)v14 + 1040) = 0;
v14[134] = 0;
v14[135] = 0;
v14[136] = 0;
*((_DWORD *)v14 + 274) = 0;
v14[138] = 0;
v14[139] = 0;
v14[140] = 0;
v14[141] = 0;
v14[142] = 0;
v14[143] = 0;
v14[144] = 0;
v14[145] = 0;
v14[146] = 0;
v14[147] = 0;
v14[148] = 0;
v14[149] = 0;
v14[150] = 0;
v14[151] = 0;
v14[152] = 0;
v14[153] = 0;
v14[154] = 0;
v14[155] = 0;
v14[156] = 0;
v14[157] = 0;
v14[158] = 0;
v14[159] = 0;
v14[160] = 0;
v14[161] = 0;
v14[162] = 0;
v14[163] = 0;
if ( AccountBanPopup::init((__int64)v14, v13, (size_t *)(a1 + 848), v12, v11, v10, v9, v8, v7) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v14);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v14 + 8LL))(v14, 1);
v14 = nullptr;
}
v15 = *(__int64 (__fastcall **)(_QWORD *))(*v14 + 1064LL);
if ( (char *)v15 == (char *)SetupTriggerPopup::show )
return SetupTriggerPopup::show(v14);
else
return v15(v14);
}
else
{
v1 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
v19 = 0;
v20 = 0;
v21 = 15;
LOBYTE(v19) = 0;
v16[7] = 0;
v17 = 13;
v18 = 15;
strcpy((char *)v16, "Still loading");
v2 = *v1;
v5 = TextAlertPopup::create(v16, v3, v4, 150, &v19);
return (*(__int64 (__fastcall **)(__int64 *, __int64, __int64))(v2 + 456))(v1, v5, 1000);
}
}