Function at 0x4af110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593bf5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5f0a00]
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 edi, ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
cmp esi, 0xf
jne 0x4af223
mov dword [edi + 0x10], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xffffff
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
push edx
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0xe0]
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
mov ecx, edi
movups xmmword [ebp - 0x20], xmm0
call dword [eax + 0xd4]
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x3c]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00477af0
mov ecx, dword [ebp - 0x28]
and eax, 0xfffffff7
or eax, 0x24
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax - 8]
push eax
call dword [edx + 0x58]
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, edi
call dword [eax + 0xe4]
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff4
mov byte [ebp - 4], 2
cmp ecx, dword [0x5f012c]
je 0x4af203
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4af203
push ecx
call fcn.00408c50
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4af3b0
mov eax, dword [ecx + 4]
add ecx, 4
call dword [eax + 8]
jmp 0x4af3b0
cmp esi, 0x201
jne 0x4af25b
mov eax, ebx
movsx ecx, bx
shr eax, 0x10
cwde
push eax
push ecx
push edx
mov ecx, edi
mov dword [edi + 0x10], 1
call fcn.0047acb0
mov ecx, edi
call fcn.0044c420
push dword [edi + 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x3c]
jmp 0x4af3b0
cmp esi, 7
jne 0x4af2f5
push 1
push 0
push 0
mov dword [edi + 0x10], 1
call fcn.00477640
mov esi, eax
mov ecx, edi
push esi
call fcn.00474eb0
mov edx, dword [esi]
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x5a6d14
mov ecx, esi
call dword [edx + 0x5c]
push dword [ebp - 0x38]
mov eax, dword [edi]
mov ecx, edi
push 1
push 0
call dword [eax + 0xe8]
push esi
mov ecx, edi
call fcn.004af620
push esi
mov ecx, edi
call fcn.0047c800
mov ecx, edi
call fcn.0044c420
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x7c]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xec]
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.0047bb20
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
cmp dword [edi + 0x10], 0
jne 0x4af3bf
mov esi, dword [ebp + 8]
jmp 0x4af42f
cmp esi, 8
jne 0x4af32b
mov eax, dword [edi]
push 0
mov dword [edi + 0x10], 1
call dword [eax + 0xec]
mov ecx, edi
call fcn.0044c420
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x7c]
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.0047abd0
jmp 0x4af3b0
cmp esi, 0x100
jne 0x4af34f
mov eax, ebx
mov dword [edi + 0x10], 1
shr eax, 0x10
push eax
movzx eax, bx
push eax
movzx eax, dx
push eax
call fcn.004aef60
jmp 0x4af3b0
cmp esi, 0x101
jne 0x4af373
mov eax, ebx
mov dword [edi + 0x10], 1
shr eax, 0x10
push eax
movzx eax, bx
push eax
movzx eax, dx
push eax
call fcn.004af050
jmp 0x4af3b0
cmp esi, 0x104
jne 0x4af3e2
push 0x12
mov dword [edi + 0x10], 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4af3a9
mov ecx, dword [ebp - 0x28]
mov eax, ebx
shr eax, 0x10
push eax
movzx eax, bx
push eax
movzx eax, cx
mov ecx, edi
push eax
call fcn.004aef60
jmp 0x4af3b0
mov dword [edi + 0x10], 0
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
cmp dword [edi + 0x10], 0
je 0x4af42f
mov eax, 1
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.00551e44
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0x105
jne 0x4af42f
movzx eax, dx
mov dword [edi + 0x10], 1
mov dword [ebp - 0x2c], eax
cmp eax, 0x12
je 0x4af412
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4af412
mov dword [edi + 0x10], 0
jmp 0x4af426
mov eax, ebx
mov ecx, edi
shr eax, 0x10
push eax
movzx eax, bx
push eax
push dword [ebp - 0x2c]
call fcn.004af050
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
cmp dword [edi + 0x10], 0
jne 0x4af3bf
push eax
push ebx
push dword [ebp - 0x28]
mov ecx, edi
push esi
call fcn.00413620
jmp 0x4af3c4