Function at 0x51ed00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51efc9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51ed32
mov byte [ebp - 5], 1
jmp 0x51ed36
mov byte [ebp - 5], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x360]
mov eax, ebx
call fcn.00505b9c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x340]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x51ed7b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x360]
mov eax, ebx
call fcn.00505b9c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x340]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x398]
test ebx, ebx
je 0x51efa6
mov eax, ebx
call fcn.0054253c
test eax, eax
je 0x51efa6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
call fcn.0054253c
cmp dword [eax + 0x30], 0
je 0x51efa6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
call fcn.0054253c
mov eax, dword [eax + 0x30]
call fcn.0049dc9c
test al, al
je 0x51efa6
movzx ebx, byte [0x51efd8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x388]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
jne 0x51edf8
movzx eax, byte [0x51efdc]
or al, bl
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x51ee18
movzx eax, byte [0x51efe0]
or al, bl
mov ebx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x370]
mov eax, dword [esi + 0x340]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, dword [esi + 0x33c]
jne 0x51ee40
movzx eax, byte [0x51efe4]
or al, bl
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x33c]
sub eax, 1
jb 0x51ee5b
je 0x51ee61
dec eax
je 0x51ee67
jmp 0x51ee6d
mov byte [ebp - 0xd], 0
jmp 0x51ee71
mov byte [ebp - 0xd], 1
jmp 0x51ee71
mov byte [ebp - 0xd], 2
jmp 0x51ee71
mov byte [ebp - 0xd], 2
cmp byte [ebp - 5], 0
je 0x51ee87
cmp byte [ebp - 0xd], 0
jne 0x51ee83
mov byte [ebp - 0xd], 1
jmp 0x51ee87
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39c], 0
jne 0x51ee9d
cmp byte [ebp - 0xd], 2
jne 0x51ee9d
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
mov eax, dword [eax + 0x33c]
sub eax, 1
jb 0x51eeb8
je 0x51eebe
dec eax
je 0x51eec4
jmp 0x51eeca
mov byte [ebp - 0xe], 0
jmp 0x51eece
mov byte [ebp - 0xe], 1
jmp 0x51eece
mov byte [ebp - 0xe], 2
jmp 0x51eece
mov byte [ebp - 0xe], 0
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x370]
mov esi, dword [edi + 0x33c]
test esi, esi
jl 0x51ef19
mov edx, esi
mov eax, dword [edi + 0x340]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
je 0x51ef19
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x370]
mov edx, dword [esi + 0x33c]
mov eax, dword [esi + 0x340]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [eax + 0x40]
lea eax, [ebp - 0xc]
call fcn.00404ec8
jmp 0x51ef21
lea eax, [ebp - 0xc]
call fcn.00404e30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x394]
mov eax, dword [eax + 0x33c]
sub eax, 1
jb 0x51ef3f
je 0x51ef45
dec eax
je 0x51ef4b
dec eax
je 0x51ef51
jmp 0x51ef57
mov byte [ebp - 0xf], 0
jmp 0x51ef5b
mov byte [ebp - 0xf], 1
jmp 0x51ef5b
mov byte [ebp - 0xf], 2
jmp 0x51ef5b
mov byte [ebp - 0xf], 3
jmp 0x51ef5b
mov byte [ebp - 0xf], 0
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
call fcn.00505b9c
mov eax, dword [ebp - 0x1c]
push eax
push ebx
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x398]
mov edx, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x360]
test al, al
je 0x51efa6
mov eax, dword [ebp - 4]
mov byte [eax + 0x39c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51efd0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404e54
lea eax, [ebp - 0xc]
call fcn.00404e30
ret