//
// sub_1800D7D00 from 0x1800d7d00 to 0x1800d7da0 (160 bytes)
//
// 3 xrefs:
// > sub_1800D6C40 @ 0x1800d6c49
// > sub_1800D6CB0 @ 0x1800d6d9f
// > ??> @ 0x1801baa34
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
BOOL __fastcall sub_1800D7D00(__int64 a1)
{
HWND v2; // rdi
struct tagPOINT Point; // [rsp+20h] [rbp-28h] BYREF
struct tagRECT Rect; // [rsp+28h] [rbp-20h] BYREF
if ( !GetCursorPos(&Point) )
return 0;
v2 = *(HWND *)(a1 + 880);
if ( WindowFromPoint(Point) != v2 )
return 0;
GetClientRect(v2, &Rect);
ClientToScreen(*(HWND *)(a1 + 880), (LPPOINT)&Rect);
ClientToScreen(*(HWND *)(a1 + 880), (LPPOINT)&Rect.right);
return PtInRect(&Rect, Point);
}