Function at 0x4f8b70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f8dfb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 1
jl 0x4f8bd7
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004f8554
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 8]
call fcn.0040f49c
cmp al, 1
jne 0x4f8bd7
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004f88c8
test al, al
je 0x4f8d8a
cmp dword [ebp - 0xc], 0
jge 0x4f8bf8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004f8554
mov eax, dword [ebp - 0x21c]
call fcn.00404d80
cmp eax, dword [ebp - 0x10]
jle 0x4f8c4b
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 4]
call fcn.004f8554
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx - 1]
mov edx, dword [0x5f2788]
and eax, 0xff
bt dword [edx], eax
jae 0x4f8c4b
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 0xc]
jg 0x4f8c6b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f8b40
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x4f8d7c
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x214], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x100
jne 0x4f8c96
mov byte [ebp - 0x204], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d98
and eax, 0x7f
movzx eax, word [eax*2 + 0x5f119c]
mov byte [ebp + eax - 0x214], 0x81
lea eax, [ebp - 0x214]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4f8d69
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d98
and eax, 0x7f
movzx eax, word [eax*2 + 0x5f119c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0049fc6c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d98
and eax, 0x7f
movzx eax, word [eax*2 + 0x5f119c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0049fc6c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8d70
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x230], edx
jmp 0x4f8ddd
cmp dword [ebp - 0xc], 0
jge 0x4f8d95
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
call fcn.004f8554
mov eax, dword [ebp - 0x224]
call fcn.00404d80
cmp eax, dword [ebp - 0xc]
jg 0x4f8dcf
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 4]
call fcn.004f8554
mov eax, dword [ebp - 0x228]
call fcn.00404d80
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f8b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8e02
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00404ae4
ret