Function at 0x1001f040
Capabilities:
Log keystrokes via polling
Print debug messages
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0e46
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [section..data]
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 ebx, ecx
mov dword [ebp - 0x454], ebx
mov esi, dword [ebp + 0x14]
lea edi, [ebx + 0xec4]
push edi
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x458], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov byte [esi], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x1001fa84
mov esi, dword [ebp + 8]
cmp esi, 2
jne 0x1001f0bb
push 0x80
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [ebx + 0xfe0], 0
jne 0x1001f10b
cmp esi, 0x101
je 0x1001f0ef
cmp esi, 0x105
je 0x1001f0ef
cmp esi, 0x205
jne 0x1001f10b
push 2
push 0
mov ecx, ebx
call fcn.10020520
test al, al
je 0x1001f442
mov ecx, ebx
call fcn.100204c0
test al, al
je 0x1001f10b
mov al, byte [ebx + 0xeb4]
test al, al
jne 0x1001f10b
mov byte [ebx + 0xfe0], 1
cmp esi, 0x113
jne 0x1001f617
mov eax, dword [ebp + 0xc]
cmp eax, 0x80
jne 0x1001f445
mov esi, dword [0x100f081c]
mov eax, 0xaaaaaaab
inc esi
mul esi
mov ecx, esi
mov dword [0x100f081c], esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
jne 0x1001f242
cmp byte [ebx + 0x1006], cl
je 0x1001f1c7
lea ecx, [ebx + 0x978]
call fcn.100281d0
test al, al
je 0x1001f1c7
cmp dword [ebx + 0xd04], 0
je 0x1001f1c7
cmp byte [ebx + 0x1004], 0
je 0x1001f1c7
mov ecx, ebx
call fcn.1001ef50
movzx esi, al
mov byte [ebp - 0x430], al
cmp esi, dword [0x100e7014]
je 0x1001f1a1
push esi
push str.keyboard_is_front_wnd__d
push 0xde
push str.vbox::CInputMgr::OnMsg
call fcn.100989a0
add esp, 0x10
push dword [ebp - 0x430]
lea ecx, [ebx + 0xf34]
mov dword [0x100e7014], esi
call fcn.1001e400
push 1
lea ecx, [ebx + 0xf34]
call fcn.1001e440
jmp 0x1001f23c
cmp byte [ebx + 0x1005], 0
je 0x1001f22f
cmp byte [ebx + 0xfe0], 0
je 0x1001f22f
mov ecx, ebx
call fcn.1001ef50
movzx esi, al
mov byte [ebp - 0x430], al
cmp esi, dword [0x100e7018]
je 0x1001f209
push esi
push str.keyboard2_is_front_wnd__d
push 0xed
push str.vbox::CInputMgr::OnMsg
call fcn.100989a0
add esp, 0x10
push dword [ebp - 0x430]
lea ecx, [ebx + 0xf34]
mov dword [0x100e7018], esi
call fcn.1001e400
push 0
lea ecx, [ebx + 0xf34]
call fcn.1001e440
jmp 0x1001f23c
push 0
lea ecx, [ebx + 0xf34]
call fcn.1001e400
mov esi, dword [0x100f081c]
mov eax, 0xcccccccd
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub esi, eax
jne 0x1001f2bd
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebx + 0xffc]
mov dword [ebp - 0x430], eax
mov edx, dword [ecx]
mov dword [ebp - 0x428], edx
cmp edx, ecx
je 0x1001f2bd
mov edi, eax
mov eax, edi
sub eax, dword [edx + 0x28]
cmp eax, 0x7530
jbe 0x1001f29e
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebx + 0xffc]
call fcn.10025130
mov edx, dword [eax]
mov dword [ebp - 0x428], edx
jmp 0x1001f2af
lea ecx, [ebp - 0x428]
call fcn.1000a810
mov edx, dword [ebp - 0x428]
cmp edx, dword [ebx + 0xffc]
jne 0x1001f275
lea edi, [ebx + 0xec4]
lea ecx, [ebx + 0xf34]
call fcn.1003d3e0
mov ecx, dword [0x100f081c]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
jne 0x1001f374
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebx + 0x1040]
fstp qword [ebp - 0x450]
call fcn.10025460
cmp dword [ebx + 0x1044], 0xa
jbe 0x1001f337
mov eax, dword [ebx + 0x1040]
mov edx, dword [eax]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 0x1044]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebx + 0x1040]
xorps xmm1, xmm1
movapd xmm0, xmm1
mov ecx, dword [edx]
cmp ecx, edx
je 0x1001f36c
lea ebx, [ebx]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1001f361
comisd xmm0, xmmword [ecx + 8]
jbe 0x1001f366
movsd xmm0, qword [ecx + 8]
mov ecx, dword [ecx]
cmp ecx, edx
jne 0x1001f350
movsd qword [ebx + 0x1038], xmm0
cmp byte [ebx + 0xf2c], 0
je 0x1001f605
mov byte [ebp - 0x421], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea ecx, [ebp - 0x428]
push ecx
push eax
mov dword [ebp - 0x428], 0
call esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push ecx
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
cmp dword [ebp - 0x428], eax
je 0x1001f3dc
call esi
cmp dword [ebp - 0x430], eax
jne 0x1001f3e0
mov al, 1
jmp 0x1001f3e6
mov al, byte [ebp - 0x421]
cmp byte [ebx + 0xf2d], 0
je 0x1001f5aa
test al, al
jne 0x1001f442
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x438], 0
push 1
lea eax, [ebp - 0x440]
movq qword [ebp - 0x440], xmm0
push eax
mov dword [ebp - 0x440], 0x20001
mov dword [ebp - 0x43c], 1
mov dword [ebp - 0x438], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov byte [ebx + 0xf2d], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 0x422], 0
cmp esi, 0x20a
jne 0x1001f6e0
movzx eax, ax
test al, 8
jne 0x1001f6e0
push 0x9a
lea ecx, [ebx + 0x18]
push 0
call fcn.1005a720
test al, al
jne 0x1001f6d9
push 0x9b
push 0
lea ecx, [ebx + 0x18]
call fcn.1005a720
test al, al
jne 0x1001f6d9
cmp byte [ebx + 0xebd], al
sete al
test al, al
je 0x1001f6e0
lea eax, [ebp - 0x420]
mov byte [ebp - 0x422], 1
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 0x10]
movsx eax, cx
mov dword [ebp - 0x42c], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x42c]
mov ecx, ebx
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1001ff10
mov eax, dword [ebp - 0x434]
mov ecx, ebx
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x450]
push eax
call fcn.100200d0
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx ecx, ax
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, 0xfffffffd
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
cmovl eax, ecx
mov ecx, 3
cmp eax, ecx
cmovg eax, ecx
mov ecx, ebx
mov dword [ebp - 0x430], eax
call fcn.1001e600
test al, al
jne 0x1001f6c9
mov ecx, ebx
call fcn.1001e650
test al, al
jne 0x1001f6c9
mov ecx, dword [ebx + 0xc]
push dword [ebp - 0x430]
push dword [ebp - 0x44c]
mov eax, dword [ecx]
push dword [ebp - 0x450]
call dword [eax + 0x18]
jmp 0x1001f6e0
test al, al
je 0x1001f442
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
push 0xc
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x440]
push 1
movq qword [ebp - 0x440], xmm0
push eax
mov dword [ebp - 0x440], 0x20001
mov dword [ebp - 0x43c], 0x100
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
setne al
mov byte [ebx + 0xf2d], al
jmp 0x1001f442
cmp byte [ebx + 0xf2d], 0
je 0x1001f442
jmp 0x1001f3f7
cmp esi, 0x411
jne 0x1001f442
mov eax, dword [0x100f1104]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
test al, 1
jne 0x1001f641
or eax, 1
mov dword [0x100f1104], eax
call esi
mov dword [0x100f1100], eax
call esi
mov esi, dword [0x100f0818]
mov ebx, eax
mov ecx, ebx
sub ecx, dword [ebp + 0x10]
cmp esi, ecx
cmovbe esi, ecx
mov ecx, ebx
sub ecx, dword [0x100f1100]
mov dword [0x100f0818], esi
cmp ecx, 0x3e8
jb 0x1001fa84
push 0x3ff
lea eax, [ebp - 0x40f]
mov byte [ebp - 0x410], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push esi
push str.testmsg_max_delay:__d_ms_n
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100f1100], ebx
mov dword [0x100f0818], 0
jmp 0x1001fa84
mov ecx, dword [ebx + 0xc]
push dword [ebp - 0x430]
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x1001f6e0
mov byte [ebp - 0x422], 1
mov byte [ebp - 0x428], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x421]
push dword [ebp - 0x444]
mov byte [ebp - 0x421], 0
push ecx
lea ecx, [ebp - 0x428]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebx + 0x18]
push dword [ebp + 0xc]
push esi
push dword [ebx + 8]
call fcn.1005ab50
cmp byte [ebp - 0x422], 0
jne 0x1001f76b
cmp byte [ebp - 0x421], 0
jne 0x1001f76b
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x10]
lea ecx, [ebx + 0x710]
push dword [ebp + 0xc]
push esi
push dword [ebx + 8]
call fcn.1006fee0
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 0x10]
lea ecx, [ebx + 0x978]
push dword [ebp + 0xc]
push esi
push dword [ebx + 8]
call fcn.10028220
cmp esi, 0x100
je 0x1001f797
cmp esi, 0x104
jne 0x1001f7b8
test dword [ebp + 0x10], 0x40000000
jne 0x1001f7b8
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x440]
push ecx
push eax
push 1
lea ecx, [ebx + 0x18]
call fcn.100580e0
lea eax, [ebp - 0x440]
mov ecx, ebx
push eax
call fcn.1001e6c0
mov ecx, ebx
call fcn.1001e5b0
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x440]
test al, al
push edx
mov eax, dword [ecx]
je 0x1001f7e2
call dword [eax + 0x14]
jmp 0x1001f7e5
call dword [eax + 0x10]
push dword [ebx + 0xc]
push dword [ebp - 0x428]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push ecx
lea ecx, [ebx + 0xda4]
call fcn.1001ddc0
cmp esi, 0x113
jne 0x1001f821
cmp dword [ebp + 0xc], 0x80
jne 0x1001fa70
inc dword [0x100f0814]
jmp 0x1001fa70
cmp esi, 0x100
je 0x1001f835
cmp esi, 0x104
jne 0x1001f9bb
test dword [ebp + 0x10], 0x40000000
jne 0x1001f9bb
mov eax, dword [ebx + 0x1048]
mov esi, dword [eax]
mov dword [ebp - 0x428], esi
cmp esi, eax
je 0x1001f89d
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1001f884
push esi
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebx + 0x1048]
call fcn.10025570
mov esi, dword [eax]
mov dword [ebp - 0x428], esi
jmp 0x1001f895
lea ecx, [ebp - 0x428]
call fcn.1000a810
mov esi, dword [ebp - 0x428]
cmp esi, dword [ebx + 0x1048]
jne 0x1001f854
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0x1048]
mov dword [ebp - 0x444], eax
mov ecx, esi
lea eax, [ebp - 0x444]
push eax
call fcn.100254f0
movdqa xmm0, xmmword [0x100d12b0]
lea edi, [ebp - 0x420]
xor cl, cl
mov dword [ebp - 0x428], ecx
mov ecx, 4
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
movdqu xmmword [ebp - 0x420], xmm0
mov dword [ebp - 0x430], ecx
lea ebx, [ecx - 3]
lea esp, [esp]
cmp dword [edi], eax
je 0x1001f922
push edi
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.100257c0
mov ecx, dword [ebp - 0x428]
movzx ecx, cl
mov eax, dword [eax]
cmp eax, dword [esi]
mov eax, dword [ebp + 0xc]
cmovne ecx, ebx
mov dword [ebp - 0x428], ecx
mov ecx, dword [ebp - 0x430]
add edi, 4
dec ecx
mov dword [ebp - 0x430], ecx
jne 0x1001f8f0
mov dword [ebp - 0x444], eax
mov ecx, esi
lea eax, [ebp - 0x444]
push eax
call fcn.100254f0
mov ecx, dword [ebp - 0x428]
mov ebx, dword [ebp - 0x454]
mov edx, dword [ebp + 0xc]
mov byte [eax + 1], cl
mov ecx, dword [esi]
lea edi, [ebx + 0xec4]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001f9b6
cmp dword [eax + 0x10], edx
je 0x1001f96d
mov word [eax + 0x14], 0x101
cmp byte [eax + 0xd], 0
jne 0x1001f9b2
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1001f992
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x1001f9b2
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x1001f986
jmp 0x1001f9b2
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1001f9b0
jmp 0x1001f9a0
cmp eax, dword [ecx + 8]
jne 0x1001f9b0
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1001f9a0
mov eax, ecx
cmp eax, dword [esi]
jne 0x1001f962
mov esi, dword [ebp + 8]
jmp 0x1001f9be
mov edx, dword [ebp + 0xc]
cmp esi, 0x51
jne 0x1001fa23
mov ecx, dword [ebx + 0x1048]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001fa70
cmp byte [eax + 0xd], 0
mov word [eax + 0x14], 0x101
jne 0x1001fa19
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1001f9fe
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x1001fa19
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x1001f9f2
jmp 0x1001fa19
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1001fa17
cmp eax, dword [ecx + 8]
jne 0x1001fa17
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1001fa07
mov eax, ecx
cmp eax, dword [ebx + 0x1048]
jne 0x1001f9d3
jmp 0x1001fa70
cmp esi, 0x101
je 0x1001fa33
cmp esi, 0x105
jne 0x1001fa70
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], edx
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebx + 0x1048]
call fcn.10025dd0
push dword [ebp - 0x44c]
lea eax, [ebp - 0x458]
push dword [ebp - 0x450]
lea ecx, [ebx + 0x1048]
push eax
call fcn.100259e0
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x1001fa84
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.100ad688
mov esp, ebp
pop ebp
ret 0x10