{"type": "func", "start": 6443335680, "end": 6443335751, "name": "sub_1800D8000", "pseudocode": "// \n// sub_1800D8000 from 0x1800d8000 to 0x1800d8047 (71 bytes)\n// \n// 2 xrefs:\n// > sub_1800D6CB0 @ 0x1800d6d33\n// > <???> @ 0x1801baa64\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\nint __fastcall sub_1800D8000(__int64 a1)\n{\n  HWND v1; // rax\n  int result; // eax\n  RAWINPUTDEVICE pRawInputDevices; // [rsp+20h] [rbp-18h] BYREF\n\n  v1 = *(HWND *)(a1 + 880);\n  *(_QWORD *)&pRawInputDevices.usUsagePage = 131073;\n  pRawInputDevices.hwndTarget = v1;\n  result = RegisterRawInputDevices(&pRawInputDevices, 1u, 0x10u);\n  if ( !result )\n    return sub_1800D9BA0(65544, \"Win32: Failed to register raw input device\");\n  return result;\n}", "assembly": "; \n; sub_1800D8000 from 0x1800d8000 to 0x1800d8047 (71 bytes)\n; \n; 2 xrefs:\n; > sub_1800D6CB0 @ 0x1800d6d33\n; > <???> @ 0x1801baa64\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\nsub     rsp, 38h                                                       ; +0x0, 0x1800d8000\nmov     rax, [rcx+370h]                                                ; +0x4, 0x1800d8004\nmov     edx, 1; uiNumDevices                                           ; +0xb, 0x1800d800b\nlea     rcx, [rsp+38h+pRawInputDevices]; pRawInputDevices              ; +0x10, 0x1800d8010\nmov     qword ptr [rsp+38h+pRawInputDevices.usUsagePage], 20001h       ; +0x15, 0x1800d8015\nmov     [rsp+38h+pRawInputDevices.hwndTarget], rax                     ; +0x1e, 0x1800d801e\nlea     r8d, [rdx+0Fh]; cbSize                                         ; +0x23, 0x1800d8023\ncall    cs:RegisterRawInputDevices                                     ; +0x27, 0x1800d8027\ntest    eax, eax                                                       ; +0x2d, 0x1800d802d\njnz     short loc_1800D8042                                            ; +0x2f, 0x1800d802f\nlea     rdx, aWin32FailedToR; \"Win32: Failed to register raw input dev\"... ; +0x31, 0x1800d8031\nmov     ecx, 10008h                                                    ; +0x38, 0x1800d8038\ncall    sub_1800D9BA0                                                  ; +0x3d, 0x1800d803d\nadd     rsp, 38h                                                       ; +0x42, 0x1800d8042\nretn                                                                   ; +0x46, 0x1800d8046", "xrefs": ["sub_1800D6CB0 @ 0x1800d6d33", "<???> @ 0x1801baa64"], "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"}