//
// __scrt_initialize_onexit_tables from 0x1406778c8 to 0x140677953 (139 bytes)
//
// 2 xrefs:
// > pre_c_initialization @ 0x140677d47
// > ??> @ 0x1409326cc
//
// 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:36:00 +0000
//
char __fastcall _scrt_initialize_onexit_tables(unsigned int a1)
{
if ( !byte_140909701 )
{
if ( a1 > 1 )
{
sub_1406782F8(5);
JUMPOUT(0x140677952LL);
}
if ( !(unsigned int)_scrt_is_ucrt_dll_in_use() || a1 )
{
*(__m128i *)&Table._first = _mm_load_si128((const __m128i *)&xmmword_140836CE0);
Table._end = (_PVFV *)-1LL;
*(_OWORD *)&stru_140909720._first = *(_OWORD *)&Table._first;
stru_140909720._end = (_PVFV *)-1LL;
}
else if ( initialize_onexit_table(&Table) || initialize_onexit_table(&stru_140909720) )
{
return 0;
}
byte_140909701 = 1;
}
return 1;
}