//
// sub_1800E50E4 from 0x1800e50e4 to 0x1800e511e (58 bytes)
//
// 2 xrefs:
// > atexit @ 0x1800e5124
// > ??> @ 0x1801c5580
//
// 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
//
void (__cdecl *__fastcall sub_1800E50E4(void (__cdecl *Function)()))()
{
int v2; // eax
__int64 v3; // rdx
if ( Table._first == (_PVFV *)-1LL )
v2 = crt_atexit(Function);
else
v2 = register_onexit_function(&Table, (_onexit_t)Function);
v3 = 0;
if ( !v2 )
return Function;
return (void (__cdecl *)())v3;
}