//
// sub_1800E5488 from 0x1800e5488 to 0x1800e559e (278 bytes)
//
// 3 xrefs:
// > sub_1800E5438 @ 0x1800e5474
// > ??> @ 0x1801c55b0
// > ??> @ 0x1801c55bc
//
// 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
//
__int64 sub_1800E5488()
{
char v0; // bl
char v1; // di
_QWORD *v2; // rax
if ( !sub_1800E4F34(0) )
return 0;
v0 = sub_1800E4DC8();
v1 = 1;
if ( dword_1801B6738 )
{
sub_1800E5974(7);
__debugbreak();
JUMPOUT(0x1800E559ELL);
}
dword_1801B6738 = 1;
if ( sub_1800E4E38() )
{
sub_1800E5BB8();
sub_1800E4DAC();
sub_1800E5B94();
if ( !initterm_e((_PIFV *)&First, (_PIFV *)&Last) )
{
if ( sub_1800E4E04() )
{
initterm((_PVFV *)&qword_1800EB1F8, (_PVFV *)&qword_1800EB378);
dword_1801B6738 = 2;
v1 = 0;
}
}
}
sub_1800E5094(v0);
if ( v1 )
return 0;
v2 = (_QWORD *)sub_1800E5BB0();
if ( *v2 )
{
if ( sub_1800E4FFC((__int64)v2) )
_guard_dispatch_icall_fptr();
}
++dword_1801B6788;
return 1;
}