{"type": "func", "start": 6443341888, "end": 6443341959, "name": "sub_1800D9840", "pseudocode": "// \n// sub_1800D9840 from 0x1800d9840 to 0x1800d9887 (71 bytes)\n// \n// 2 xrefs:\n// > sub_1800D8640 @ 0x1800d86ee\n// > <???> @ 0x1801c4b0c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:34 +0000\n// \n\nint sub_1800D9840()\n{\n  int result; // eax\n  RAWINPUTDEVICE pRawInputDevices; // [rsp+20h] [rbp-18h] BYREF\n\n  *(_DWORD *)&pRawInputDevices.usUsagePage = 131073;\n  pRawInputDevices.dwFlags = 1;\n  pRawInputDevices.hwndTarget = nullptr;\n  result = RegisterRawInputDevices(&pRawInputDevices, 1u, 0x10u);\n  if ( !result )\n    return sub_1800E1AF0(65544, \"Win32: Failed to remove raw input device\");\n  return result;\n}", "assembly": "; \n; sub_1800D9840 from 0x1800d9840 to 0x1800d9887 (71 bytes)\n; \n; 2 xrefs:\n; > sub_1800D8640 @ 0x1800d86ee\n; > <???> @ 0x1801c4b0c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:34 +0000\n; \nsub     rsp, 38h                                                       ; +0x0, 0x1800d9840\nmov     edx, 1; uiNumDevices                                           ; +0x4, 0x1800d9844\nmov     dword ptr [rsp+38h+pRawInputDevices.usUsagePage], 20001h       ; +0x9, 0x1800d9849\nlea     rcx, [rsp+38h+pRawInputDevices]; pRawInputDevices              ; +0x11, 0x1800d9851\nmov     [rsp+38h+pRawInputDevices.dwFlags], edx                        ; +0x16, 0x1800d9856\nmov     [rsp+38h+pRawInputDevices.hwndTarget], 0                       ; +0x1a, 0x1800d985a\nlea     r8d, [rdx+0Fh]; cbSize                                         ; +0x23, 0x1800d9863\ncall    cs:RegisterRawInputDevices                                     ; +0x27, 0x1800d9867\ntest    eax, eax                                                       ; +0x2d, 0x1800d986d\njnz     short loc_1800D9882                                            ; +0x2f, 0x1800d986f\nlea     rdx, aWin32FailedToR_0; \"Win32: Failed to remove raw input devic\"... ; +0x31, 0x1800d9871\nmov     ecx, 10008h                                                    ; +0x38, 0x1800d9878\ncall    sub_1800E1AF0                                                  ; +0x3d, 0x1800d987d\nadd     rsp, 38h                                                       ; +0x42, 0x1800d9882\nretn                                                                   ; +0x46, 0x1800d9886", "xrefs": ["sub_1800D8640 @ 0x1800d86ee", "<???> @ 0x1801c4b0c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}