//
// AccountReviewPopup::onClosePopup from 0x1400bcaa0 to 0x1400bcb88 (232 bytes)
//
// 2 xrefs:
// > ??> @ 0x140722478
// > ??> @ 0x1409138d4
//
// 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=2
void __fastcall AccountReviewPopup::onClosePopup(__int64 a1, __int64 a2)
{
__int64 v4; // rdx
__int64 v5; // rbp
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
if ( !*(_BYTE *)(a1 + 600) || a2 != *(_QWORD *)(a1 + 592) )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 992LL))(a2, 0);
LOBYTE(v4) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 520LL))(a2, v4);
v5 = 0;
if ( a2 == *(_QWORD *)(a1 + 592) )
*(_QWORD *)(a1 + 592) = 0;
if ( *(_BYTE *)(a1 + 529) )
{
*(_BYTE *)(a1 + 529) = 0;
if ( a1 != 792 )
v5 = a1 - 16;
v6 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v6 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v6 + 1384) = v5;
GameLevelManager::adminGetAccountReview(v6, *(unsigned int *)(a1 + 48));
PagedListPopup::loadPage(a1 - 792, *(unsigned int *)(a1 - 112));
}
}
}