{"type": "func", "start": 6443342224, "end": 6443342295, "name": "sub_1800D9990", "pseudocode": "// \n// sub_1800D9990 from 0x1800d9990 to 0x1800d99d7 (71 bytes)\n// \n// 2 xrefs:\n// > sub_1800D8640 @ 0x1800d86c3\n// > <???> @ 0x1801c4b24\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 __fastcall sub_1800D9990(__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_1800E1AF0(65544, \"Win32: Failed to register raw input device\");\n  return result;\n}", "assembly": "; \n; sub_1800D9990 from 0x1800d9990 to 0x1800d99d7 (71 bytes)\n; \n; 2 xrefs:\n; > sub_1800D8640 @ 0x1800d86c3\n; > <???> @ 0x1801c4b24\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, 0x1800d9990\nmov     rax, [rcx+370h]                                                ; +0x4, 0x1800d9994\nmov     edx, 1; uiNumDevices                                           ; +0xb, 0x1800d999b\nlea     rcx, [rsp+38h+pRawInputDevices]; pRawInputDevices              ; +0x10, 0x1800d99a0\nmov     qword ptr [rsp+38h+pRawInputDevices.usUsagePage], 20001h       ; +0x15, 0x1800d99a5\nmov     [rsp+38h+pRawInputDevices.hwndTarget], rax                     ; +0x1e, 0x1800d99ae\nlea     r8d, [rdx+0Fh]; cbSize                                         ; +0x23, 0x1800d99b3\ncall    cs:RegisterRawInputDevices                                     ; +0x27, 0x1800d99b7\ntest    eax, eax                                                       ; +0x2d, 0x1800d99bd\njnz     short loc_1800D99D2                                            ; +0x2f, 0x1800d99bf\nlea     rdx, aWin32FailedToR; \"Win32: Failed to register raw input dev\"... ; +0x31, 0x1800d99c1\nmov     ecx, 10008h                                                    ; +0x38, 0x1800d99c8\ncall    sub_1800E1AF0                                                  ; +0x3d, 0x1800d99cd\nadd     rsp, 38h                                                       ; +0x42, 0x1800d99d2\nretn                                                                   ; +0x46, 0x1800d99d6", "xrefs": ["sub_1800D8640 @ 0x1800d86c3", "<???> @ 0x1801c4b24"], "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"}