Function at 0x4017df
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x405b80
push 0xffffffffffffffff
push 0x49af58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4caff4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x70]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
call fcn.004281c4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405bd0
push 0x80004005
call fcn.004017c6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
xor ebp, ebp
cmp dword [esi + 0x60], ebx
mov dword [esp + 0x2c], ebx
je 0x405d98
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x405d44
push 0x72
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jns 0x405c0f
mov ebp, 0x72
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00425fdb
mov edi, eax
mov eax, dword [esp + 0x18]
cmp dword [esi + 0xa8], eax
mov dword [esp + 0x14], edi
je 0x405cc4
test eax, 0x100
mov dword [esi + 0xa8], eax
je 0x405c63
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0x100
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0xa0], 1
jmp 0x405cc4
test eax, 0x200
je 0x405c88
mov eax, dword [esi + 0x20]
push ebx
push 0x64
push 0x200
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0xa4], 1
jmp 0x405cc4
cmp dword [esi + 0xa0], ebx
mov edi, dword [sym.imp.USER32.dll_KillTimer]
je 0x405ca7
mov ecx, dword [esi + 0x20]
push 0x100
push ecx
call edi
mov dword [esi + 0xa0], ebx
cmp dword [esi + 0xa4], ebx
je 0x405cc0
mov edx, dword [esi + 0x20]
push 0x200
push edx
call edi
mov dword [esi + 0xa4], ebx
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x405cdc
push eax
push edi
mov ecx, esi
call fcn.004010dc
test eax, eax
jne 0x405cdc
cmp edi, ebx
jne 0x405d20
cmp ebp, 0x72
je 0x405d25
mov eax, dword [esi + 0x8c]
push eax
mov dword [esi + 0x70], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x405dc4
cmp ebp, 0x72
jne 0x405d44
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jns 0x405d3c
mov edx, dword [esi + 0x74]
mov dword [esi + 0x70], edx
jmp 0x405d88
mov eax, dword [esi + 0x84]
jmp 0x405d85
test byte [esp + 0x18], 0x5e
push 0x11
je 0x405d6a
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jns 0x405d65
mov edx, dword [esi + 0x80]
mov dword [esi + 0x70], edx
jmp 0x405d88
mov eax, dword [esi + 0x7c]
jmp 0x405d85
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jns 0x405d7f
mov edx, dword [esi + 0x78]
mov dword [esi + 0x70], edx
jmp 0x405d88
mov eax, dword [esi + 0x88]
mov dword [esi + 0x70], eax
mov esi, dword [esi + 0x70]
cmp dword [esp + 0x20], esi
je 0x405d98
push esi
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405dc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4