Function at 0x4ea74f
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69d205
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x816078]
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 esi, ecx
test byte [0x831a81], 2
je 0x4ea795
push esi
mov edx, 0x6febb8
mov ecx, 0x816d30
call fcn.00448544
xor ebx, ebx
mov edi, 0x81cf10
cmp dword [esi + 0x5c], ebx
je 0x4ea7b0
mov eax, dword [0x81cf10]
mov ecx, edi
push 0x3d415f
call dword [eax + 4]
cmp byte [esi + 0x15b], bl
je 0x4ea7c7
mov eax, dword [0x81cf10]
mov ecx, edi
push 0x3d4160
call dword [eax + 4]
mov byte [esi + 0x15b], bl
cmp dword [esi + 0x38], ebx
je 0x4ea7e1
mov eax, dword [0x81cf10]
mov ecx, edi
push 0x3d4161
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x30
pop edi
push edi
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0064f890
add esp, 0xc
mov dword [ebp - 0x6c], edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x64], 0x4ebf53
mov dword [ebp - 0x44], 0x7043f4
call fcn.004ee3d3
test ax, ax
jne 0x4ea823
mov ebx, 0x80004005
jmp 0x4eabdb
xor eax, eax
inc eax
push ebx
mov byte [esi + 0x158], al
call dword [sym.imp.IMM32.dll_ImmDisableIME]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ea83f
call edi
mov ecx, 0x6e3e50
call fcn.00432087
mov ecx, 0x2710
mov dword [esi + 0x274], eax
cmp eax, ecx
jae 0x4ea85e
mov dword [esi + 0x274], ecx
mov ecx, 0x6e2a30
call fcn.00432087
mov ecx, 0x6e2860
mov dword [esi + 0x270], eax
call fcn.00432087
mov ecx, 0x6e3d60
mov dword [esi + 0x278], eax
call fcn.00432087
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x8000000
mov edx, 0x7043f4
mov dword [esi + 0x27c], eax
push edx
xor ecx, ecx
call fcn.0044fd15
mov dword [esi + 0x5c], eax
test eax, eax
je 0x4ea819
mov ecx, 0x6e3cc0
call fcn.00432087
mov ecx, 0x6e4150
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x1b4], ebx
call fcn.00432087
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 [esi + 0x1a8], eax
mov eax, dword [esi + 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 [esi + 0x1ac], 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 0x4ea819
mov ecx, dword [esi + 0x1b4]
mov eax, dword [esi + 0x1b0]
cmp ecx, ebx
jg 0x4eac09
jl 0x4eac09
cmp eax, 0xffffffff
ja 0x4eac09
cmp ecx, ebx
jl 0x4eac09
jg 0x4ea969
cmp eax, ebx
jb 0x4eac09
cmp byte [esi + 0x15c], bl
mov edx, 0x105
push ecx
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 5
pop eax
cmove edx, eax
mov dword [ebp - 0x38], 0xfff
call fcn.004cbf6a
pop ecx
pop ecx
test eax, eax
jne 0x4ea9a9
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x3d4185
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0xffffffffffffffeb
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x4ea9ca
call edi
test eax, eax
jne 0x4ea819
cmp byte [esi + 0x15c], bl
lea eax, [ebp - 0x3c]
push ecx
mov ecx, dword [esi + 0x5c]
mov edx, 0x107
push eax
push 7
pop eax
cmove edx, eax
mov dword [ebp - 0x3c], 0x1388
mov dword [ebp - 0x38], 0x2710
call fcn.004cbf6a
pop ecx
pop ecx
test eax, eax
jne 0x4eaa15
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x3d4187
call dword [eax + 4]
mov ecx, esi
call fcn.004eac5e
push esi
push dword [esi + 0x58]
lea ecx, [ebp - 0x24]
call fcn.004ed9fd
cmp dword [esi + 0x60], ebx
je 0x4eaa4b
cmp dword [esi + 0x64], ebx
je 0x4eaa4b
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004ec334
mov eax, dword [ebp - 0x24]
shr eax, 0xb
not al
and eax, 1
push dword [esi + eax*4 + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
mov byte [esi + 0x159], al
mov byte [esi + 0x15a], al
call fcn.004edb1e
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov ecx, dword [esi + 0x1b8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x4eaa88
push ecx
mov dword [esi + 0x1b8], ebx
call edi
mov eax, dword [ebp - 0x38]
push 1
mov dword [esi + 0x1b8], eax
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov ecx, eax
mov eax, dword [esi + 0x1bc]
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x4eaab1
push eax
mov dword [esi + 0x1bc], ebx
call edi
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x1bc], ecx
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x4eaac5
test ecx, ecx
jne 0x4eaadd
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x3d4188
call dword [eax + 4]
mov eax, dword [esi + 0x1b8]
test eax, eax
je 0x4eab8e
cmp dword [esi + 0x1bc], ebx
je 0x4eab85
push 0x14
call fcn.006707e1
pop ecx
test eax, eax
je 0x4eab0c
push esi
push dword [esi + 0x58]
mov ecx, eax
call fcn.004e991f
mov edi, eax
jmp 0x4eab0e
mov edi, ebx
test edi, edi
jne 0x4eab52
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x3d4189
call dword [eax + 4]
mov eax, dword [esi + 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jne 0x4eab43
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x3d418a
call dword [eax + 4]
test edi, edi
je 0x4eaba1
lea eax, [edi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4eaba1
mov edx, dword [esi + 0x58]
lea eax, [esi + 0x1c0]
push eax
lea eax, [edi + 8]
push eax
mov ecx, dword [edx]
push 0x2101
push edx
call dword [ecx + 0x14]
test eax, eax
js 0x4eab24
mov ecx, dword [esi + 0x1c0]
push 0xffffffffffffffff
push dword [esi + 0x1b8]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x6c]
jmp 0x4eab43
push eax
mov dword [esi + 0x1b8], ebx
call edi
mov eax, dword [esi + 0x1bc]
test eax, eax
je 0x4eaba1
push eax
mov dword [esi + 0x1bc], ebx
call edi
push dword [0x8315a4]
push ebx
push 0x4ea625
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x694], eax
test eax, eax
jne 0x4eabdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4eabdb
mov eax, dword [0x81cf10]
mov ecx, 0x81cf10
push 0x3d418b
call dword [eax + 4]
cmp byte [esi + 0x15a], 0
jne 0x4eabeb
mov ecx, esi
call fcn.004ea331
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.0064c681
mov esp, ebp
pop ebp
ret
call fcn.00413cf7
int3