Function at 0x4c5868
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4c5870
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c5cce
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c589c
mov byte [ebp - 5], 1
jmp 0x4c58a0
mov byte [ebp - 5], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f8]
mov eax, ebx
call fcn.004b8fdc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x2e8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4c58e5
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2f8]
mov eax, ebx
call fcn.004b8fdc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x2e8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 6], 0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x328]
test ebx, ebx
je 0x4c5942
mov eax, ebx
call fcn.004dddd8
test eax, eax
je 0x4c5942
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.004dddd8
cmp dword [eax + 0x30], 0
je 0x4c5942
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.004dddd8
mov eax, dword [eax + 0x30]
call fcn.00485ed4
test al, al
je 0x4c5942
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
cmp dword [eax + 8], 0
je 0x4c5ca6
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x328]
mov ebx, esi
mov eax, esi
call fcn.004dddd8
mov eax, dword [eax + 0x30]
call fcn.00487808
mov eax, ebx
call fcn.004ede48
xor eax, eax
push ebp
push 0x4c5c56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
cmp dword [eax + 0x2e4], 2
jne 0x4c59a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32c], 0
je 0x4c59a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.004dddd8
mov eax, dword [eax + 0x30]
call fcn.004882b8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32c], 0
jne 0x4c5c16
push ebp
call fcn.004c5798
pop ecx
jmp 0x4c5c16
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x334]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
call fcn.004efa9c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c5fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c5add
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x2e4], 0
jne 0x4c5a34
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004c5724
test al, al
jne 0x4c5aca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x2e4], 1
jne 0x4c5a64
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004046ec
je 0x4c5aca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x2e4], 2
jne 0x4c5c0f
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov eax, dword [ebp - 0x24]
call fcn.004045a0
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404800
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov edx, dword [ebp - 0x28]
pop eax
call fcn.004046ec
jne 0x4c5c0f
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x32c], 0
jmp 0x4c5c25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x2e4], 0
jne 0x4c5b13
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.004c56b4
test al, al
jne 0x4c5bd3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x2e4], 1
jne 0x4c5b5b
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00408a78
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00408a78
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004046ec
je 0x4c5bd3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
cmp dword [eax + 0x2e4], 2
jne 0x4c5c0f
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov eax, dword [ebp - 0x44]
call fcn.004045a0
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404800
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00408a78
mov eax, dword [ebp - 0x3c]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.004b8fdc
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408a78
mov edx, dword [ebp - 0x48]
pop eax
call fcn.004046ec
jne 0x4c5c0f
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x334]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
call fcn.004efa9c
call fcn.0041e4ac
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.004e41a8
mov eax, dword [ebp - 4]
mov byte [eax + 0x32c], 0
jmp 0x4c5c25
push ebp
call fcn.004c5798
pop ecx
push ebp
call fcn.004c573c
pop ecx
test al, al
je 0x4c59c1
cmp byte [ebp - 6], 0
jne 0x4c5c32
mov eax, ebx
call fcn.004edf14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5c5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.004dddd8
mov eax, dword [eax + 0x30]
call fcn.00487828
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5cd5
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00404304
lea eax, [ebp - 0x50]
mov edx, 0x12
call fcn.00404304
ret