//
// sub_18001FE34 from 0x18001fe34 to 0x18001febf (139 bytes)
//
// 2 xrefs:
// > sub_18001FCFC @ 0x18001fd02
// > ??> @ 0x18004d208
//
// 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 12:15:45 +0000
//
char __fastcall sub_18001FE34(unsigned int a1)
{
int v2; // eax
if ( !byte_18004A589 )
{
if ( a1 > 1 )
{
sub_18001FFBC(5);
JUMPOUT(0x18001FEBELL);
}
LOBYTE(v2) = __uncaught_exception();
if ( !v2 || a1 )
{
*(__m128i *)&Table._first = _mm_load_si128((const __m128i *)&xmmword_1800257F0);
Table._end = (_PVFV *)-1LL;
*(_OWORD *)&stru_18004A5A8._first = *(_OWORD *)&Table._first;
stru_18004A5A8._end = (_PVFV *)-1LL;
}
else if ( initialize_onexit_table(&Table) || initialize_onexit_table(&stru_18004A5A8) )
{
return 0;
}
byte_18004A589 = 1;
}
return 1;
}