//
// sub_1400A65A0 from 0x1400a65a0 to 0x1400a671d (381 bytes)
//
// 3 xrefs:
// > sub_1400ABC44 @ 0x1400abc4b
// > ??> @ 0x14071fa08
// > ??> @ 0x1409131fc
//
// 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:08 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall sub_1400A65A0(char *Block, char a2)
{
char *v4; // rdi
__int64 v5; // rax
void *v6; // rax
__int64 v7; // rax
*(_QWORD *)Block = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 40) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 41) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 42) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 43) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 44) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 51) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 54) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 68) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 83) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 84) = &AccountBanPopup::`vftable';
v4 = Block + 1000;
*((_QWORD *)Block + 125) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 126) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 127) = &AccountBanPopup::`vftable';
*((_QWORD *)Block + 128) = &AccountBanPopup::`vftable';
v5 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(char **)(v5 + 1384) == v4 )
*(_QWORD *)(v5 + 1384) = 0;
v7 = *((_QWORD *)Block + 163);
if ( v7 )
*(_QWORD *)(v7 + 664) = 0;
sub_14003D310((__int64)(Block + 1040));
SetupTriggerPopup::dSetupTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}