{"type": "func", "start": 6443330736, "end": 6443331075, "name": "sub_1800D6CB0", "pseudocode": "// \n// sub_1800D6CB0 from 0x1800d6cb0 to 0x1800d6e03 (339 bytes)\n// \n// 2 xrefs:\n// > sub_1800D5870 @ 0x1800d58ed\n// > <???> @ 0x1801ba980\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nHCURSOR __fastcall sub_1800D6CB0(__int64 a1, int a2)\n{\n  HCURSOR result; // rax\n  __int64 v5; // rcx\n  HCURSOR CursorW; // rax\n  struct tagPOINT Point; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( *(HWND *)(a1 + 880) == GetActiveWindow() )\n  {\n    if ( a2 == 212995 )\n    {\n      if ( GetCursorPos(&Point) )\n      {\n        ScreenToClient(*(HWND *)(a1 + 880), &Point);\n        *(double *)&qword_1801ABFD8 = (double)Point.x;\n        *(double *)&qword_1801ABFE0 = (double)Point.y;\n      }\n      sub_1800D5230(a1);\n      if ( *(_DWORD *)(a1 + 504) )\n        sub_1800D8000(a1);\n      sub_1800D77E0(a1);\n      qword_1801ABFE8 = a1;\n    }\n    else\n    {\n      if ( qword_1801ABFE8 == a1 && *(_DWORD *)(a1 + 504) )\n        sub_1800D7EB0(a1);\n      ClipCursor(nullptr);\n      qword_1801ABFF0 = 0;\n      if ( qword_1801ABFE8 == a1 )\n      {\n        qword_1801ABFE8 = 0;\n        sub_1800D6E10(a1);\n      }\n    }\n  }\n  result = (HCURSOR)sub_1800D7D00(a1);\n  if ( (_DWORD)result )\n  {\n    if ( *(_DWORD *)(a1 + 124) == 212993 )\n    {\n      v5 = *(_QWORD *)(a1 + 80);\n      if ( v5 )\n      {\n        return SetCursor(*(HCURSOR *)(v5 + 8));\n      }\n      else\n      {\n        CursorW = LoadCursorW(nullptr, (LPCWSTR)0x7F00);\n        return SetCursor(CursorW);\n      }\n    }\n    else\n    {\n      return SetCursor(nullptr);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D6CB0 from 0x1800d6cb0 to 0x1800d6e03 (339 bytes)\n; \n; 2 xrefs:\n; > sub_1800D5870 @ 0x1800d58ed\n; > <???> @ 0x1801ba980\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800d6cb0\npush    rdi                                                            ; +0x5, 0x1800d6cb5\nsub     rsp, 20h                                                       ; +0x6, 0x1800d6cb6\nmov     edi, edx                                                       ; +0xa, 0x1800d6cba\nmov     rbx, rcx                                                       ; +0xc, 0x1800d6cbc\ncall    cs:GetActiveWindow                                             ; +0xf, 0x1800d6cbf\ncmp     [rbx+370h], rax                                                ; +0x15, 0x1800d6cc5\njnz     loc_1800D6D9C                                                  ; +0x1c, 0x1800d6ccc\ncmp     edi, 34003h                                                    ; +0x22, 0x1800d6cd2\njnz     short loc_1800D6D49                                            ; +0x28, 0x1800d6cd8\nlea     rcx, [rsp+28h+Point]; lpPoint                                  ; +0x2a, 0x1800d6cda\ncall    cs:GetCursorPos                                                ; +0x2f, 0x1800d6cdf\ntest    eax, eax                                                       ; +0x35, 0x1800d6ce5\njz      short loc_1800D6D1F                                            ; +0x37, 0x1800d6ce7\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x39, 0x1800d6ce9\nlea     rdx, [rsp+28h+Point]; lpPoint                                  ; +0x40, 0x1800d6cf0\ncall    cs:ScreenToClient                                              ; +0x45, 0x1800d6cf5\nmovd    xmm0, [rsp+28h+Point.x]                                        ; +0x4b, 0x1800d6cfb\nmovd    xmm1, [rsp+28h+Point.y]                                        ; +0x51, 0x1800d6d01\ncvtdq2pd xmm0, xmm0                                                    ; +0x57, 0x1800d6d07\ncvtdq2pd xmm1, xmm1                                                    ; +0x5b, 0x1800d6d0b\nmovsd   cs:qword_1801ABFD8, xmm0                                       ; +0x5f, 0x1800d6d0f\nmovsd   cs:qword_1801ABFE0, xmm1                                       ; +0x67, 0x1800d6d17\nmov     rcx, rbx                                                       ; +0x6f, 0x1800d6d1f\ncall    sub_1800D5230                                                  ; +0x72, 0x1800d6d22\ncmp     dword ptr [rbx+1F8h], 0                                        ; +0x77, 0x1800d6d27\njz      short loc_1800D6D38                                            ; +0x7e, 0x1800d6d2e\nmov     rcx, rbx                                                       ; +0x80, 0x1800d6d30\ncall    sub_1800D8000                                                  ; +0x83, 0x1800d6d33\nmov     rcx, rbx                                                       ; +0x88, 0x1800d6d38\ncall    sub_1800D77E0                                                  ; +0x8b, 0x1800d6d3b\nmov     cs:qword_1801ABFE8, rbx                                        ; +0x90, 0x1800d6d40\njmp     short loc_1800D6D9C                                            ; +0x97, 0x1800d6d47\ncmp     cs:qword_1801ABFE8, rbx                                        ; +0x99, 0x1800d6d49\njnz     short loc_1800D6D63                                            ; +0xa0, 0x1800d6d50\ncmp     dword ptr [rbx+1F8h], 0                                        ; +0xa2, 0x1800d6d52\njz      short loc_1800D6D63                                            ; +0xa9, 0x1800d6d59\nmov     rcx, rbx                                                       ; +0xab, 0x1800d6d5b\ncall    sub_1800D7EB0                                                  ; +0xae, 0x1800d6d5e\nxor     ecx, ecx; lpRect                                               ; +0xb3, 0x1800d6d63\ncall    cs:ClipCursor                                                  ; +0xb5, 0x1800d6d65\nxor     eax, eax                                                       ; +0xbb, 0x1800d6d6b\ncmp     cs:qword_1801ABFE8, rbx                                        ; +0xbd, 0x1800d6d6d\nmov     cs:qword_1801ABFF0, rax                                        ; +0xc4, 0x1800d6d74\njnz     short loc_1800D6D9C                                            ; +0xcb, 0x1800d6d7b\nmovsd   xmm2, cs:qword_1801ABFE0                                       ; +0xcd, 0x1800d6d7d\nmov     rcx, rbx                                                       ; +0xd5, 0x1800d6d85\nmovsd   xmm1, cs:qword_1801ABFD8                                       ; +0xd8, 0x1800d6d88\nmov     cs:qword_1801ABFE8, rax                                        ; +0xe0, 0x1800d6d90\ncall    sub_1800D6E10                                                  ; +0xe7, 0x1800d6d97\nmov     rcx, rbx                                                       ; +0xec, 0x1800d6d9c\ncall    sub_1800D7D00                                                  ; +0xef, 0x1800d6d9f\ntest    eax, eax                                                       ; +0xf4, 0x1800d6da4\njz      short loc_1800D6DF8                                            ; +0xf6, 0x1800d6da6\ncmp     dword ptr [rbx+7Ch], 34001h                                    ; +0xf8, 0x1800d6da8\njnz     short loc_1800D6DF0                                            ; +0xff, 0x1800d6daf\nmov     rcx, [rbx+50h]                                                 ; +0x101, 0x1800d6db1\ntest    rcx, rcx                                                       ; +0x105, 0x1800d6db5\njz      short loc_1800D6DCF                                            ; +0x108, 0x1800d6db8\nmov     rcx, [rcx+8]                                                   ; +0x10a, 0x1800d6dba\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x10e, 0x1800d6dbe\nadd     rsp, 20h                                                       ; +0x113, 0x1800d6dc3\npop     rdi                                                            ; +0x117, 0x1800d6dc7\njmp     cs:SetCursor                                                   ; +0x118, 0x1800d6dc8\nmov     edx, 7F00h; lpCursorName                                       ; +0x11f, 0x1800d6dcf\nxor     ecx, ecx; hInstance                                            ; +0x124, 0x1800d6dd4\ncall    cs:LoadCursorW                                                 ; +0x126, 0x1800d6dd6\nmov     rcx, rax                                                       ; +0x12c, 0x1800d6ddc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12f, 0x1800d6ddf\nadd     rsp, 20h                                                       ; +0x134, 0x1800d6de4\npop     rdi                                                            ; +0x138, 0x1800d6de8\njmp     cs:SetCursor                                                   ; +0x139, 0x1800d6de9\nxor     ecx, ecx; hCursor                                              ; +0x140, 0x1800d6df0\ncall    cs:SetCursor                                                   ; +0x142, 0x1800d6df2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x148, 0x1800d6df8\nadd     rsp, 20h                                                       ; +0x14d, 0x1800d6dfd\npop     rdi                                                            ; +0x151, 0x1800d6e01\nretn                                                                   ; +0x152, 0x1800d6e02", "xrefs": ["sub_1800D5870 @ 0x1800d58ed", "<???> @ 0x1801ba980"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}