//
// sub_1800D9F00 from 0x1800d9f00 to 0x1800d9f72 (114 bytes)
//
// 4 xrefs:
// > sub_1800D7FA0 @ 0x1800d7fb0
// > sub_1800D8880 @ 0x1800d89f7
// > sub_1800DA0D0 @ 0x1800da3bb
// > ??> @ 0x1801c4b84
//
// 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:34 +0000
//
__int64 __fastcall sub_1800D9F00(__int64 a1)
{
__int64 result; // rax
result = *(_QWORD *)(a1 + 72);
if ( *(_QWORD *)(result + 144) == a1 )
{
if ( !--dword_1801B52BC )
{
SetThreadExecutionState(0x80000000);
if ( (unsigned int)sub_1800E1CB0(5) )
SystemParametersInfoW(0x5Du, uiParam, nullptr, 0);
}
sub_1800DBE00(*(_QWORD *)(a1 + 72), 0);
return sub_1800E3440(*(_QWORD *)(a1 + 72));
}
return result;
}