Function at 0x660ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6962ca
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x74f330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x660c42
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x660c42
push eax
call dword [0x69b8b8]
test eax, eax
je 0x660c42
mov ebx, dword [ebp + 0xc]
test bl, 2
mov eax, esi
setne al
inc eax
push eax
call dword [0x69b8d0]
push 0xc8
shr eax, 0xf
and eax, 1
mov dword [ebp + 0xc], eax
call fcn.004b70c2
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x660c1f
mov ecx, eax
call fcn.0065cc50
mov esi, eax
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xb4], edi
call fcn.0065c9c0
test eax, eax
jne 0x660c58
mov ecx, esi
call fcn.004d6ae3
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 0x18
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x74], edx
mov dword [esi + 0xb0], eax
mov ecx, ebx
shr ecx, 9
and ecx, 1
mov dword [esi + 0x98], ecx
mov edx, ebx
mov eax, ebx
mov ecx, ebx
and ecx, 0x100
shr edx, 1
shr eax, 7
and edx, 1
and eax, 1
mov dword [edi + 0x38], ecx
push esi
mov ecx, edi
mov dword [edi + 0x30], edx
mov dword [edi + 0x20], eax
call fcn.0065c4c0
push 0
mov ecx, edi
call fcn.0065ce60
test eax, eax
je 0x660c3b
cmp dword [edi + 0x20], 0
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x3c], edx
jne 0x660cd8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
xor eax, eax
cmp dword [esi + 0x98], eax
setne al
shl eax, 0x10
push eax
push ecx
push 0x117
push edx
call dword [0x69ba48]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov dword [esi + 0xa8], 1
call fcn.0065e6e0
mov ecx, dword [ebp + 0x18]
push 0xffffffffffffffec
push ecx
call dword [0x69b938]
test eax, 0x400000
je 0x660d08
test bl, 4
jne 0x660d08
xor ebx, 8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
test bl, 8
je 0x660d2b
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [esi + 0xac], 1
jmp 0x660d3d
test bl, 4
je 0x660d3d
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [ebp - 0x1c], ecx
test bl, 0x20
je 0x660d4a
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x18], eax
jmp 0x660d5c
test bl, 0x10
je 0x660d5c
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
neg eax
add dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push ecx
push ebx
push edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov ecx, edi
call fcn.0065ca90
push 2
mov ecx, edi
call fcn.0065be40
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x250
push edx
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push 0xffffffffffffffff
push eax
call dword [0x69b8ec]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 4], ecx
push 0
mov ecx, edi
call fcn.00660a30
push esi
mov ecx, edi
call fcn.0065c900
cmp dword [esi + 0xa8], 0
je 0x660def
cmp dword [edi + 0x20], 0
jne 0x660def
mov edx, dword [esi + 0x98]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0xb0]
neg edx
sbb edx, edx
and edx, 0x2000
shl edx, 0x10
push edx
push eax
push 0x125
push ecx
call dword [0x69ba48]
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov ecx, esi
call fcn.004d6ae3
cmp dword [edi + 0x38], 0
je 0x660e1c
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18