Function at 0x437835
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446801
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4570cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test dword [0x469540], 0x200
je 0x43787e
push edi
mov edx, 0x44b750
mov ecx, 0x457208
call fcn.00427395
xor ebx, ebx
mov esi, 0x4575f4
cmp dword [edi + 0x5c], ebx
je 0x437899
mov eax, dword [0x4575f4]
mov ecx, esi
push 0x3d415f
call dword [eax + 4]
cmp byte [edi + 0x13b], bl
je 0x4378b0
mov eax, dword [0x4575f4]
mov ecx, esi
push 0x3d4160
call dword [eax + 4]
mov byte [edi + 0x13b], bl
cmp dword [edi + 0x38], ebx
je 0x4378ca
mov eax, dword [0x4575f4]
mov ecx, esi
push 0x3d4161
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x30
pop esi
push esi
mov dword [edi + 0x38], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x6c], esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x64], 0x438ecc
mov dword [ebp - 0x44], 0x44cd2c
call fcn.00401cf3
test ax, ax
jne 0x43790c
mov ebx, 0x80004005
jmp 0x437c82
xor eax, eax
inc eax
push ebx
mov byte [edi + 0x138], al
call dword [sym.imp.IMM32.dll_ImmDisableIME]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437928
call esi
mov ecx, 0x44a010
call fcn.0040bece
mov ecx, 0x2710
mov dword [edi + 0x254], eax
cmp eax, ecx
jae 0x437947
mov dword [edi + 0x254], ecx
mov ecx, 0x449f60
call fcn.0040bece
mov ecx, 0x449f30
mov dword [edi + 0x250], eax
call fcn.0040bece
mov ecx, 0x449ff0
mov dword [edi + 0x258], eax
call fcn.0040bece
sub esp, 0xc
mov dword [edi + 0x25c], eax
mov edx, 0x44cd2c
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x8000000
push edx
call fcn.00401d89
mov dword [edi + 0x5c], eax
test eax, eax
je 0x437902
mov ecx, 0x449fd0
call fcn.0040bece
lea ecx, [edi + 0x190]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov ecx, 0x44a060
call fcn.0040bece
push 2
pop ecx
push 6
mov word [ebp - 0x32], cx
xor edx, edx
pop ecx
push 0xd
mov word [ebp - 0x26], cx
inc edx
pop ecx
mov dword [edi + 0x188], eax
mov eax, dword [edi + 0x5c]
push 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov word [ebp - 0x1c], cx
xor ecx, ecx
push 3
push eax
mov dword [edi + 0x18c], ebx
mov word [ebp - 0x34], dx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x28], dx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x1a], cx
mov dword [ebp - 0x18], 0x20
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
je 0x437902
lea eax, [edi + 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00427136
cmp byte [edi + 0x13c], bl
push 5
pop edx
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, 0x105
cmovne edx, eax
mov dword [ebp - 0x38], 0xfff
push ecx
mov ecx, dword [edi + 0x5c]
lea eax, [ebp - 0x3c]
push eax
call fcn.00442293
pop ecx
pop ecx
test eax, eax
jne 0x437a6b
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x3d4185
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0xffffffffffffffeb
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x437a8c
call esi
test eax, eax
jne 0x437902
cmp byte [edi + 0x13c], bl
mov eax, 0x107
push 7
pop edx
cmovne edx, eax
mov dword [ebp - 0x3c], 0x1388
push ecx
mov ecx, dword [edi + 0x5c]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x2710
call fcn.00442293
pop ecx
pop ecx
test eax, eax
jne 0x437ad7
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x3d4187
call dword [eax + 4]
mov ecx, edi
call fcn.00437cff
push edi
push dword [edi + 0x58]
lea ecx, [ebp - 0x24]
call fcn.0043a6fd
cmp dword [edi + 0x60], ebx
je 0x437b10
lea esi, [edi + 0x64]
cmp dword [esi], ebx
je 0x437b10
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00439296
mov eax, dword [ebp - 0x24]
shr eax, 0xb
test al, 1
lea eax, [edi + 0x60]
cmovne esi, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
mov byte [edi + 0x139], al
mov byte [edi + 0x13a], al
call fcn.0043a7ea
mov esi, dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
push ebx
call esi
push eax
lea ecx, [edi + 0x198]
call fcn.0040e9c4
xor edx, edx
inc edx
push edx
call esi
push eax
lea ecx, [edi + 0x19c]
call fcn.0040e9c4
lea esi, [edi + 0x198]
cmp dword [esi], ebx
je 0x437b62
lea eax, [edi + 0x19c]
cmp dword [eax], ebx
jne 0x437b7a
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x3d4188
call dword [eax + 4]
lea eax, [edi + 0x19c]
cmp dword [esi], ebx
je 0x437c24
cmp dword [eax], ebx
je 0x437c24
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
test eax, eax
je 0x437ba6
push edi
push dword [edi + 0x58]
mov ecx, eax
call fcn.00436c47
mov esi, eax
jmp 0x437ba8
mov esi, ebx
test esi, esi
jne 0x437bec
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x3d4189
call dword [eax + 4]
mov eax, dword [edi + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jne 0x437bdd
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x3d418a
call dword [eax + 4]
test esi, esi
je 0x437c48
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x437c48
mov edx, dword [edi + 0x58]
lea eax, [edi + 0x1a0]
mov dword [ebp - 0x38], eax
lea ecx, [esi + 8]
push dword [ebp - 0x38]
mov eax, dword [edx]
push ecx
push 0x2101
push edx
call dword [eax + 0x14]
test eax, eax
js 0x437bbe
mov eax, dword [edi + 0x1a0]
push 0xffffffffffffffff
push dword [edi + 0x198]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
jmp 0x437bdd
mov eax, dword [esi]
test eax, eax
je 0x437c33
push eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x19c]
mov ecx, dword [eax]
test ecx, ecx
je 0x437c48
push ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x469ab0]
push ebx
push 0x437720
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [edi + 0x674], eax
test eax, eax
jne 0x437c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437c82
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x3d418b
call dword [eax + 4]
cmp byte [edi + 0x13a], 0
jne 0x437c92
mov ecx, edi
call fcn.0043742c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004429bf
mov esp, ebp
pop ebp
ret