Function at 0x4e5048
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4e5050
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e53ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4e507c
mov byte [ebp - 5], 1
jmp 0x4e5080
mov byte [ebp - 5], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f8]
mov eax, ebx
call fcn.004d29d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x2f0]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4e50c5
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f8]
mov eax, ebx
call fcn.004d29d0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x2f0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 6], 0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x31c]
test ebx, ebx
je 0x4e53c4
mov eax, ebx
call fcn.004ffcf0
test eax, eax
je 0x4e53c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.004ffcf0
cmp dword [eax + 0x30], 0
je 0x4e53c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.004ffcf0
mov eax, dword [eax + 0x30]
call fcn.00490454
test al, al
je 0x4e53c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
cmp dword [eax + 8], 0
je 0x4e53c4
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x31c]
mov ebx, esi
mov eax, esi
call fcn.004ffcf0
mov eax, dword [eax + 0x30]
call fcn.00491d88
mov eax, ebx
call fcn.00510e34
xor eax, eax
push ebp
push 0x4e5374
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x218], 2
jne 0x4e5195
mov eax, dword [ebp - 4]
cmp byte [eax + 0x320], 0
je 0x4e5195
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.004ffcf0
mov eax, dword [eax + 0x30]
call fcn.00492838
mov eax, dword [ebp - 4]
cmp byte [eax + 0x320], 0
jne 0x4e5334
push ebp
call fcn.004e4f78
pop ecx
jmp 0x4e5334
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.00512cd8
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004e56dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4e5271
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
jne 0x4e5223
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004d29d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004e4f04
test al, al
jne 0x4e525e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4e532d
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004d29d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004046cc
jne 0x4e532d
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x320], 0
jmp 0x4e5343
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
jne 0x4e52a6
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004d29d0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004e4e94
test al, al
jne 0x4e52f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4e532d
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00408b80
mov eax, dword [ebp - 0x24]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004d29d0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00408b80
mov edx, dword [ebp - 0x28]
pop eax
call fcn.004046cc
jne 0x4e532d
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.00512cd8
call fcn.0041e6ec
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0050633c
mov eax, dword [ebp - 4]
mov byte [eax + 0x320], 0
jmp 0x4e5343
push ebp
call fcn.004e4f78
pop ecx
push ebp
call fcn.004e4f1c
pop ecx
test al, al
je 0x4e51b1
cmp byte [ebp - 6], 0
jne 0x4e5350
mov eax, ebx
call fcn.00510f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e537b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.004ffcf0
mov eax, dword [eax + 0x30]
call fcn.00491da8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e53f3
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004042e4
lea eax, [ebp - 0x30]
mov edx, 0xa
call fcn.004042e4
ret