Function at 0x4a0deb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.004a177b
test eax, eax
je 0x4a0e07
xor eax, eax
jmp 0x4a101e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 9
je 0x4a0e21
cmp dword [ebp - 0x1c], 0xd
je 0x4a0e5c
cmp dword [ebp - 0x1c], 0x1b
je 0x4a0e47
jmp 0x4a0e71
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
xor edx, edx
test ecx, ecx
setl dl
push edx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
push 4
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
push 5
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x7c], 0
je 0x4a0e94
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x7c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x7c]
mov eax, dword [edx]
call dword [eax + 0x78]
jmp 0x4a101e
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x84], 0
je 0x4a0ec1
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x84], 1
je 0x4a0ec1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x84], 4
je 0x4a0ec1
mov dword [ebp - 0x20], 0
jmp 0x4a0ec8
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub eax, 0x23
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 5
ja case.default.0x4a0eea
mov ecx, dword [ebp - 0x24]
jmp dword [ecx*4 + 0x4a1024]
mov edx, dword [ebp - 8]
neg edx
sbb edx, edx
add edx, 2
push edx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
xor eax, eax
cmp dword [ebp - 8], 0
setne al
inc eax
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 3
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
push 6
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
push 7
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0xec]
jmp 0x4a101e
mov al, byte [ebp + 8]
push eax
call fcn.0049e0d0
mov ecx, eax
call fcn.004aa60e
mov byte [ebp - 4], al
movsx ecx, byte [ebp - 4]
test ecx, ecx
je 0x4a1019
mov dword [ebp - 0xc], 0xffffffff
mov dl, byte [ebp - 4]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004a1538
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a1005
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.0048b4f0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004a1254
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x28]
call dword [edx + 0x88]
mov eax, 1
jmp 0x4a101e
cmp dword [ebp + 8], 0x10
je 0x4a1019
cmp dword [ebp + 8], 0x11
je 0x4a1019
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
mov esp, ebp
pop ebp
ret 4