//
// sub_1800E4F70 from 0x1800e4f70 to 0x1800e4ffb (139 bytes)
//
// 2 xrefs:
// > sub_1800E4E38 @ 0x1800e4e3e
// > ??> @ 0x1801c5550
//
// 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:22:38 +0000
//
char __fastcall sub_1800E4F70(unsigned int a1)
{
int v2; // eax
if ( !byte_1801B6749 )
{
if ( a1 > 1 )
{
sub_1800E5974(5);
JUMPOUT(0x1800E4FFALL);
}
LOBYTE(v2) = __uncaught_exception();
if ( !v2 || a1 )
{
*(__m128i *)&Table._first = _mm_load_si128((const __m128i *)&xmmword_18012B610);
Table._end = (_PVFV *)-1LL;
*(_OWORD *)&stru_1801B6768._first = *(_OWORD *)&Table._first;
stru_1801B6768._end = (_PVFV *)-1LL;
}
else if ( initialize_onexit_table(&Table) || initialize_onexit_table(&stru_1801B6768) )
{
return 0;
}
byte_1801B6749 = 1;
}
return 1;
}