//
// sub_14028DA80 from 0x14028da80 to 0x14028dbcb (331 bytes)
//
// 4 xrefs:
// > sub_1402A63F0 @ 0x1402a63f7
// > ??> @ 0x140573ef0
// > ??> @ 0x1406d17a8
// > ??> @ 0x1406d17b4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
char *__fastcall sub_14028DA80(char *Block, char a2)
{
char *v4; // rdi
__int64 v5; // rax
void *v6; // rax
*(_QWORD *)Block = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 40) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 41) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 42) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 43) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 44) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 51) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 54) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 79) = &GJWriteMessagePopup::`vftable';
v4 = Block + 640;
*((_QWORD *)Block + 80) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 81) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)Block + 82) = &GJWriteMessagePopup::`vftable';
v5 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v6 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v5 = qword_1406C2EC0;
}
if ( *(char **)(v5 + 848) == v4 )
*(_QWORD *)(v5 + 848) = 0;
sub_14003A830((__int64)(Block + 728));
sub_14003A830((__int64)(Block + 696));
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}