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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af126
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 0x1001ed94
mov esi, dword [ebp + 8]
cmp esi, 2
jne 0x1001e3db
push 0x80
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [ebx + 0xfe0], 0
jne 0x1001e42b
cmp esi, 0x101
je 0x1001e40f
cmp esi, 0x105
je 0x1001e40f
cmp esi, 0x205
jne 0x1001e42b
push 2
push 0
mov ecx, ebx
call fcn.1001f830
test al, al
je 0x1001e762
mov ecx, ebx
call fcn.1001f7d0
test al, al
je 0x1001e42b
mov al, byte [ebx + 0xeb4]
test al, al
jne 0x1001e42b
mov byte [ebx + 0xfe0], 1
cmp esi, 0x113
jne 0x1001e91c
mov eax, dword [ebp + 0xc]
cmp eax, 0x80
jne 0x1001e765
mov esi, dword [0x100ec590]
mov eax, 0xaaaaaaab
inc esi
mul esi
mov ecx, esi
mov dword [0x100ec590], esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
jne 0x1001e562
cmp byte [ebx + 0x1006], cl
je 0x1001e4e7
lea ecx, [ebx + 0x978]
call fcn.10027460
test al, al
je 0x1001e4e7
cmp dword [ebx + 0xd04], 0
je 0x1001e4e7
cmp byte [ebx + 0x1004], 0
je 0x1001e4e7
mov ecx, ebx
call fcn.1001e270
movzx esi, al
mov byte [ebp - 0x430], al
cmp esi, dword [0x100e4014]
je 0x1001e4c1
push esi
push str.keyboard_is_front_wnd__d
push 0xde
push str.vbox::CInputMgr::OnMsg
call fcn.10095c20
add esp, 0x10
push dword [ebp - 0x430]
lea ecx, [ebx + 0xf34]
mov dword [0x100e4014], esi
call fcn.1001d770
push 1
lea ecx, [ebx + 0xf34]
call fcn.1001d7b0
jmp 0x1001e55c
cmp byte [ebx + 0x1005], 0
je 0x1001e54f
cmp byte [ebx + 0xfe0], 0
je 0x1001e54f
mov ecx, ebx
call fcn.1001e270
movzx esi, al
mov byte [ebp - 0x430], al
cmp esi, dword [0x100e4018]
je 0x1001e529
push esi
push str.keyboard2_is_front_wnd__d
push 0xed
push str.vbox::CInputMgr::OnMsg
call fcn.10095c20
add esp, 0x10
push dword [ebp - 0x430]
lea ecx, [ebx + 0xf34]
mov dword [0x100e4018], esi
call fcn.1001d770
push 0
lea ecx, [ebx + 0xf34]
call fcn.1001d7b0
jmp 0x1001e55c
push 0
lea ecx, [ebx + 0xf34]
call fcn.1001d770
mov esi, dword [0x100ec590]
mov eax, 0xcccccccd
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub esi, eax
jne 0x1001e5dd
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 0x1001e5dd
mov edi, eax
mov eax, edi
sub eax, dword [edx + 0x28]
cmp eax, 0x7530
jbe 0x1001e5be
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebx + 0xffc]
call fcn.100243c0
mov edx, dword [eax]
mov dword [ebp - 0x428], edx
jmp 0x1001e5cf
lea ecx, [ebp - 0x428]
call fcn.10009e10
mov edx, dword [ebp - 0x428]
cmp edx, dword [ebx + 0xffc]
jne 0x1001e595
lea edi, [ebx + 0xec4]
lea ecx, [ebx + 0xf34]
call fcn.1003c5e0
mov ecx, dword [0x100ec590]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
jne 0x1001e694
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.100246f0
cmp dword [ebx + 0x1044], 0xa
jbe 0x1001e657
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 0x1001e68c
lea ebx, [ebx]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1001e681
comisd xmm0, xmmword [ecx + 8]
jbe 0x1001e686
movsd xmm0, qword [ecx + 8]
mov ecx, dword [ecx]
cmp ecx, edx
jne 0x1001e670
movsd qword [ebx + 0x1038], xmm0
cmp byte [ebx + 0xf2c], 0
je 0x1001e90a
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 0x1001e6fc
call esi
cmp dword [ebp - 0x430], eax
jne 0x1001e700
mov al, 1
jmp 0x1001e706
mov al, byte [ebp - 0x421]
cmp byte [ebx + 0xf2d], 0
je 0x1001e8af
test al, al
jne 0x1001e762
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 0x1001e9e6
movzx eax, ax
test al, 8
jne 0x1001e9e6
push 0x9a
lea ecx, [ebx + 0x18]
push 0
call fcn.10059160
test al, al
jne 0x1001e9df
push 0x9b
push 0
lea ecx, [ebx + 0x18]
call fcn.10059160
test al, al
jne 0x1001e9df
cmp byte [ebx + 0xebd], al
sete al
test al, al
je 0x1001e9e6
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.1001f220
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.1001f3e0
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.1001d970
mov ecx, dword [ebx + 0xc]
test al, al
push dword [ebp - 0x430]
mov eax, dword [ecx]
je 0x1001e9ce
call dword [eax + 0x1c]
jmp 0x1001e9e6
test al, al
je 0x1001e762
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 0x1001e762
cmp byte [ebx + 0xf2d], 0
je 0x1001e762
jmp 0x1001e717
cmp esi, 0x411
jne 0x1001e762
mov eax, dword [0x100ece74]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
test al, 1
jne 0x1001e946
or eax, 1
mov dword [0x100ece74], eax
call esi
mov dword [0x100ece70], eax
call esi
mov esi, dword [0x100ec58c]
mov ebx, eax
mov ecx, ebx
sub ecx, dword [ebp + 0x10]
cmp esi, ecx
cmovbe esi, ecx
mov ecx, ebx
sub ecx, dword [0x100ece70]
mov dword [0x100ec58c], esi
cmp ecx, 0x3e8
jb 0x1001ed94
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 [0x100ece70], ebx
mov dword [0x100ec58c], 0
jmp 0x1001ed94
push dword [ebp - 0x44c]
push dword [ebp - 0x450]
call dword [eax + 0x18]
jmp 0x1001e9e6
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.10059380
cmp byte [ebp - 0x422], 0
jne 0x1001ea71
cmp byte [ebp - 0x421], 0
jne 0x1001ea71
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.1006e530
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.100274b0
cmp esi, 0x100
je 0x1001ea9d
cmp esi, 0x104
jne 0x1001eabe
test dword [ebp + 0x10], 0x40000000
jne 0x1001eabe
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [ebp - 0x440]
push ecx
push eax
push 1
lea ecx, [ebx + 0x18]
call fcn.10056b20
lea eax, [ebp - 0x440]
mov ecx, ebx
push eax
call fcn.1001d9e0
mov ecx, ebx
call fcn.1001d920
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x440]
test al, al
push edx
mov eax, dword [ecx]
je 0x1001eae8
call dword [eax + 0x14]
jmp 0x1001eaeb
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.1001d360
cmp esi, 0x113
jne 0x1001eb27
cmp dword [ebp + 0xc], 0x80
jne 0x1001ed80
inc dword [0x100ec588]
jmp 0x1001ed80
cmp esi, 0x100
je 0x1001eb3b
cmp esi, 0x104
jne 0x1001eccb
test dword [ebp + 0x10], 0x40000000
jne 0x1001eccb
mov eax, dword [ebx + 0x1048]
mov esi, dword [eax]
mov dword [ebp - 0x428], esi
cmp esi, eax
je 0x1001eba9
lea ebx, [ebx]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1001eb90
push esi
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebx + 0x1048]
call fcn.10024800
mov esi, dword [eax]
mov dword [ebp - 0x428], esi
jmp 0x1001eba1
lea ecx, [ebp - 0x428]
call fcn.10009e10
mov esi, dword [ebp - 0x428]
cmp esi, dword [ebx + 0x1048]
jne 0x1001eb60
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.10024780
movdqa xmm0, xmmword [0x100ce4b0]
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]
cmp dword [edi], eax
je 0x1001ec2a
push edi
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.10024a50
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 0x1001ebf8
mov dword [ebp - 0x444], eax
mov ecx, esi
lea eax, [ebp - 0x444]
push eax
call fcn.10024780
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 0x1001ecc6
lea ebx, [ebx]
cmp dword [eax + 0x10], edx
je 0x1001ec7b
mov word [eax + 0x14], 0x101
cmp byte [eax + 0xd], 0
jne 0x1001ecc2
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1001eca0
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x1001ecc2
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x1001ec94
jmp 0x1001ecc2
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1001ecc0
lea esp, [esp]
cmp eax, dword [ecx + 8]
jne 0x1001ecc0
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1001ecb0
mov eax, ecx
cmp eax, dword [esi]
jne 0x1001ec70
mov esi, dword [ebp + 8]
jmp 0x1001ecce
mov edx, dword [ebp + 0xc]
cmp esi, 0x51
jne 0x1001ed33
mov ecx, dword [ebx + 0x1048]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001ed80
cmp byte [eax + 0xd], 0
mov word [eax + 0x14], 0x101
jne 0x1001ed29
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x1001ed0e
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x1001ed29
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x1001ed02
jmp 0x1001ed29
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1001ed27
cmp eax, dword [ecx + 8]
jne 0x1001ed27
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1001ed17
mov eax, ecx
cmp eax, dword [ebx + 0x1048]
jne 0x1001ece3
jmp 0x1001ed80
cmp esi, 0x101
je 0x1001ed43
cmp esi, 0x105
jne 0x1001ed80
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], edx
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebx + 0x1048]
call fcn.10025060
push dword [ebp - 0x44c]
lea eax, [ebp - 0x458]
push dword [ebp - 0x450]
lea ecx, [ebx + 0x1048]
push eax
call fcn.10024c70
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x1001ed94
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.100ab974
mov esp, ebp
pop ebp
ret 0x10