Function at 0x4b6590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61d1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6b1a94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
lea edi, [ecx + 0x1e0]
mov dword [ebp - 0x18], edi
cmp dword [edi], ebx
jne 0x4b65d5
cmp byte [ebp + 0xc], 0
je 0x4b6888
xor al, al
mov byte [ebp + 0xf], al
cmp byte [ecx + 0x220], al
je 0x4b65f8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xff00
test cx, ax
setne al
mov byte [ebp + 0xf], al
mov esi, dword [edi]
test esi, esi
je 0x4b66a3
test al, al
jne 0x4b66a3
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x4b666d
mov al, byte [ecx + 0x220]
test al, al
je 0x4b666d
mov eax, dword [ecx + 0x1e4]
add ecx, 0x1e4
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx + 4]
sub ecx, eax
cmp ecx, 4
jb 0x4b666d
sar ecx, 2
xor edx, edx
test ecx, ecx
je 0x4b666d
cmp dword [eax + edx*4], esi
lea ecx, [edx*4]
je 0x4b665e
mov ecx, dword [ebp - 0x14]
inc edx
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jb 0x4b6640
jmp 0x4b666d
add eax, ecx
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004baae0
mov eax, dword [esi + 0x254]
test eax, eax
je 0x4b66a3
mov dword [esi + 0x254], 0
cmp eax, 3
jne 0x4b6699
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x4b6699
push 0
push 0
call fcn.004b6590
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
mov esi, dword [ebp - 0x10]
cmp byte [esi + 0x220], 0
je 0x4b67f8
test ebx, ebx
je 0x4b67f8
cmp byte [ebp + 0xf], 0
je 0x4b6763
mov eax, dword [esi + 0x1e4]
xor dl, dl
mov ecx, dword [esi + 0x1e8]
mov byte [ebp + 0xb], 0
mov byte [ebp + 0xf], dl
cmp eax, ecx
je 0x4b6708
nop
mov edx, dword [eax]
cmp edx, ebx
jne 0x4b66f0
cmp byte [ebp + 0xf], 0
mov byte [ebp + 0xb], 1
jne 0x4b6705
cmp edx, dword [edi]
jne 0x4b66fe
cmp byte [ebp + 0xb], 0
mov byte [ebp + 0xf], 1
jne 0x4b6705
add eax, 4
cmp eax, ecx
jne 0x4b66e0
mov dl, byte [ebp + 0xf]
cmp dword [edi], 0
je 0x4b671d
test dl, dl
jne 0x4b671d
push edi
lea ecx, [esi + 0x1e4]
call fcn.004bab40
cmp byte [ebp + 0xb], 0
jne 0x4b67f8
mov eax, dword [ebx]
push ebx
mov dword [ebp + 8], ebx
call dword [eax + 4]
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x1e4]
call fcn.004988a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b67f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4b67f5
mov eax, dword [esi + 0x1e8]
lea ecx, [esi + 0x1e4]
sub eax, dword [ecx]
sar eax, 2
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x4b67f8
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
cmp esi, edi
je 0x4b67ed
mov ebx, dword [esi]
cmp ebx, dword [ebp + 8]
je 0x4b67e0
mov ecx, dword [ebx + 0x258]
test ecx, ecx
je 0x4b67b0
mov al, byte [ecx + 0x220]
test al, al
je 0x4b67b0
mov dword [ebx + 0x254], 0
jmp 0x4b67d6
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x4b67e0
mov dword [ebx + 0x254], 0
cmp eax, 3
jne 0x4b67d6
test ecx, ecx
je 0x4b67d6
push 0
push 0
call fcn.004b6590
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
add esi, 4
cmp esi, edi
jne 0x4b6788
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00498830
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
cmp dword [edi], ebx
je 0x4b6814
test ebx, ebx
je 0x4b6806
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [edi]
mov dword [edi], ebx
test eax, eax
je 0x4b6814
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x4b687a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x4b6846
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x6842dc
push eax
call dword [ecx]
mov ecx, dword [ebp + 0xc]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4b685b
mov eax, dword [ecx]
push 1
call dword [eax + 0x154]
push 0
push 3
mov ecx, ebx
call fcn.004b8610
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b687a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [edi]
mov eax, dword [esi]
mov ecx, esi
push 0x44f
call dword [eax + 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8