//
// sub_1800D90E0 from 0x1800d90e0 to 0x1800d9168 (136 bytes)
//
// 6 xrefs:
// > sub_1800D7E10 @ 0x1800d7f14
// > sub_1800D8880 @ 0x1800d88cc
// > sub_1800D8880 @ 0x1800d8a95
// > sub_1800D8DC0 @ 0x1800d8dee
// > sub_1800DA0D0 @ 0x1800da3c2
// > ??> @ 0x1801c4ad0
//
// 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:33 +0000
//
__int64 __fastcall sub_1800D90E0(__int64 a1)
{
if ( !dword_1801B52BC )
{
SetThreadExecutionState(0x80000002);
if ( (unsigned int)sub_1800E1CB0(5) )
{
SystemParametersInfoW(0x5Eu, 0, &uiParam, 0);
SystemParametersInfoW(0x5Du, 0, nullptr, 0);
}
}
if ( !*(_QWORD *)(*(_QWORD *)(a1 + 72) + 144LL) )
++dword_1801B52BC;
sub_1800E3490(*(_QWORD *)(a1 + 72), a1 + 44);
return sub_1800DBE00(*(_QWORD *)(a1 + 72), a1);
}