//
// sub_1800D85D0 from 0x1800d85d0 to 0x1800d8634 (100 bytes)
//
// 2 xrefs:
// > sub_1800DD410 @ 0x1800dd477
// > ??> @ 0x1801c4a34
//
// 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
//
HCURSOR __fastcall sub_1800D85D0(__int64 a1)
{
HCURSOR result; // rax
__int64 v3; // rcx
HCURSOR CursorW; // rax
result = (HCURSOR)sub_1800D9690();
if ( (_DWORD)result )
{
if ( *(_DWORD *)(a1 + 124) == 212993 )
{
v3 = *(_QWORD *)(a1 + 80);
if ( v3 )
{
return SetCursor(*(HCURSOR *)(v3 + 8));
}
else
{
CursorW = LoadCursorW(nullptr, (LPCWSTR)0x7F00);
return SetCursor(CursorW);
}
}
else
{
return SetCursor(nullptr);
}
}
return result;
}