Function at 0x4a79a1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x10]
and byte [ebp + 0x11], 0x3f
and esi, 0x8000
and eax, 0x4000
cmp dword [ebp + 0xc], 0
push edi
mov ebx, ecx
mov dword [ebp - 4], esi
jne 0x4a79d1
xor eax, eax
jmp 0x4a7afc
cmp dword [ebp + 8], 0x8009
mov edi, dword [ebx + 0x600]
jne 0x4a79ef
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041da78
jmp 0x4a7afc
test eax, eax
je 0x4a7a07
push 1
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.004acec5
test eax, eax
jne 0x4a7afc
cmp dword [edi + 0x88], 0
je 0x4a7a1a
mov dword [ebp - 4], 1
mov esi, dword [ebp - 4]
test esi, esi
je 0x4a7a2b
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004a8cc5
mov esi, eax
jmp 0x4a7a2d
mov esi, edi
xor eax, eax
cmp esi, eax
mov dword [ebp - 8], eax
jne 0x4a7a38
mov esi, edi
cmp dword [ebx + 0x1020], eax
mov edi, dword [edi + 0x13d8]
mov dword [ebp + 8], eax
je 0x4a7ac7
cmp dword [ebp - 4], eax
jne 0x4a7a86
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4a7a86
lea eax, [ebx + 0x34]
lea ecx, [eax - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [eax + 0x227ec]
cmp esi, ecx
jne 0x4a7a79
mov eax, dword [eax + 0x227f0]
jmp 0x4a7a7b
mov eax, ecx
cmp dword [eax + 0x88], 0
jne 0x4a7a86
mov esi, eax
cmp dword [ebx + 0x22cec], 0
je 0x4a7ac7
mov eax, dword [esi + 0x13d8]
test eax, eax
mov dword [ebp + 8], eax
je 0x4a7ac7
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [ebx + 0x34]
lea ecx, [eax - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [eax + 0x227ec]
cmp esi, ecx
jne 0x4a7ac4
mov eax, dword [eax + 0x227f0]
mov dword [ebp - 8], eax
jmp 0x4a7ac7
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
sub eax, ecx
je 0x4a7b4a
dec eax
je 0x4a7b24
dec eax
je 0x4a7b18
dec eax
je 0x4a7b03
xor edi, edi
cmp dword [ebp - 4], 0
je 0x4a7ae8
mov ecx, esi
call fcn.0041e274
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4a7af4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, edi
neg eax
sbb eax, eax
and eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041e52c
xor ecx, ecx
test eax, eax
setg cl
mov edi, ecx
jmp 0x4a7b89
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041e2f5
jmp 0x4a7b0d
cmp dword [ebp - 4], ecx
je 0x4a7b3a
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call fcn.0046090a
mov dword [esi + 0x13d8], eax
push 0
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0041dae6
mov edi, eax
jmp 0x4a7b89
mov eax, dword [ebp + 0xc]
push 1
mov dword [ebp - 0xc], ecx
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00414d0b
push eax
mov ecx, esi
call fcn.0041ddc0
xor ecx, ecx
test eax, eax
setg cl
cmp dword [ebp - 0xc], 0
mov edi, ecx
je 0x4a7b89
cmp dword [ebp - 0x10], 0
je 0x4a7b89
mov eax, dword [0x4d8228]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test edi, edi
je 0x4a7adb
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4a7ae8
push dword [esi + 0x13d8]
push dword [ebp + 8]
call fcn.00424814
test eax, eax
jne 0x4a7ae8
push eax
push 0x8051
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4a7ae8