//
// __scrt_initialize_onexit_tables from 0x1404d0af4 to 0x1404d0b7f (139 bytes)
//
// 2 xrefs:
// > pre_c_initialization @ 0x1404d0de7
// > ??> @ 0x1406dd6c4
//
// 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)
{
if ( !byte_1406C1041 )
{
if ( a1 > 1 )
{
_scrt_fastfail(5);
JUMPOUT(0x1404D0B7ELL);
}
if ( !(unsigned int)_scrt_is_ucrt_dll_in_use() || a1 )
{
*(__m128i *)&Table._first = _mm_load_si128((const __m128i *)&xmmword_140624400);
Table._end = (_PVFV *)-1LL;
*(_OWORD *)&stru_1406C1060._first = *(_OWORD *)&Table._first;
stru_1406C1060._end = (_PVFV *)-1LL;
}
else if ( initialize_onexit_table(&Table) || initialize_onexit_table(&stru_1406C1060) )
{
return 0;
}
byte_1406C1041 = 1;
}
return 1;
}