//
// __scrt_initialize_onexit_tables from 0x1800df900 to 0x1800df98b (139 bytes)
//
// 2 xrefs:
// > __scrt_dllmain_before_initialize_c @ 0x1800df7ce
// > ??> @ 0x1801bb088
//
// 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
//
char __fastcall _scrt_initialize_onexit_tables(unsigned int a1)
{
int v2; // eax
if ( !byte_1801AC6C9 )
{
if ( a1 > 1 )
{
_scrt_fastfail(5);
JUMPOUT(0x1800DF98ALL);
}
LOBYTE(v2) = __uncaught_exception();
if ( !v2 || a1 )
{
*(__m128i *)&Table._first = _mm_load_si128((const __m128i *)&xmmword_180122920);
Table._end = (_PVFV *)-1LL;
*(_OWORD *)&stru_1801AC6E8._first = *(_OWORD *)&Table._first;
stru_1801AC6E8._end = (_PVFV *)-1LL;
}
else if ( initialize_onexit_table(&Table) || initialize_onexit_table(&stru_1801AC6E8) )
{
return 0;
}
byte_1801AC6C9 = 1;
}
return 1;
}