Function at 0x4609c670
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov ebx, ecx
call fcn.4609e4bf
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4609c6a1
mov eax, 0x8007000e
jmp 0x4609c8f4
mov ecx, dword [ebx + 0x60]
test cl, cl
jns 0x4609c8f2
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test ecx, 0x20002
je 0x4609c718
movzx eax, word [0x460ec788]
mov edx, dword [ebx + 0x7c]
add eax, 3
mov dword [ebp - 0xc], eax
cmp edx, esi
jle 0x4609c6d5
sub edx, esi
mov dword [ebp - 8], edx
jmp 0x4609c6dc
mov eax, esi
sub eax, edx
mov dword [ebp - 8], eax
mov edx, dword [ebx + 0x80]
cmp edx, edi
jle 0x4609c6ea
sub edx, edi
jmp 0x4609c6f0
mov eax, edi
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jge 0x4609c707
cmp edx, eax
jge 0x4609c707
mov al, byte [ebp + 0x10]
mov byte [ebx + 0x73], al
jmp 0x4609c8f2
mov eax, ecx
shl eax, 0xd
xor eax, ecx
and eax, 0x40000000
xor eax, ecx
mov dword [ebx + 0x60], eax
movzx ecx, di
shl ecx, 0x10
push 0
movzx eax, si
or ecx, eax
mov dword [ebx + 0x7c], esi
push ecx
push 0
push 0x200
mov ecx, ebx
mov dword [ebx + 0x80], edi
call fcn.460a05dc
test eax, eax
jne 0x4609c8f2
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4609c75d
push 2
pop eax
mov dword [ebp - 8], 1
jmp 0x4609c767
xor eax, eax
mov dword [ebp - 8], 2
inc eax
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
sets cl
mov dword [ebp - 0xc], ecx
test ax, ax
js 0x4609c794
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [ebp - 0xc]
xor edx, edx
test ax, ax
sets dl
jmp 0x4609c797
mov edx, dword [ebp - 0x10]
test ecx, ecx
jne 0x4609c7f4
test edx, edx
jne 0x4609c7f4
push 4
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4609c8eb
test byte [ebx + 0xc], 2
jne 0x4609c8eb
test dword [ebx + 0x60], 0x1000000
je 0x4609c7d4
cmp dword [ebx + 0x14], esi
jne 0x4609c7cd
cmp dword [ebx + 0x18], edi
je 0x4609c7d4
mov ecx, ebx
call fcn.4609c978
test dword [ebx + 0x60], 0x200
je 0x4609c8eb
push 1
push dword [ebp + 0x10]
mov ecx, ebx
push edi
push esi
call fcn.4609c22a
jmp 0x4609c8eb
mov edx, dword [ebx + 0x60]
test edx, 0x20000
je 0x4609c875
test dl, 0x10
jne 0x4609c875
movzx ecx, di
and edx, 4
shl ecx, 0x10
or edx, 0xc00
movzx eax, si
or ecx, eax
shr edx, 2
push ecx
push dword [ebp + 0x10]
mov ecx, ebx
push edx
call fcn.4609e030
test eax, eax
jne 0x4609c875
mov edi, dword [ebx + 0x1c]
push 0x1b2
mov eax, dword [edi]
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
push dword [ebp + 0x14]
lea ecx, [ebx + 0x34]
push dword [ebp - 0x18]
call fcn.460b24b2
mov edi, dword [ebx + 0x1c]
and dword [ebx + 0x60], 0xfffffdff
push 0
mov eax, dword [edi]
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
and dword [ebx + 0x60], 0xfffffffd
jmp 0x4609c8eb
test dword [ebx + 0x60], 0x200
je 0x4609c8eb
mov esi, dword [ebx + 0x38]
xor eax, eax
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
test esi, esi
je 0x4609c89c
cmp dword [esi + 0x10], eax
setne al
test eax, eax
je 0x4609c8b2
mov ecx, dword [ebx + 0x24]
lea eax, [ebp - 0x14]
push eax
call fcn.460929f4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push edx
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.460cf2b4
test dword [ebx + 0x60], 0x800000
jne 0x4609c8eb
mov edi, dword [ebx + 0x1c]
push 0x32
push 0x1b0
mov eax, dword [edi]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
test eax, eax
je 0x4609c8eb
or dword [ebx + 0x60], 0x800000
and dword [ebx + 0x60], 0xfffdffff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.460ea320
mov esp, ebp
pop ebp
ret 0x10