Function at 0x660a7d12
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov ecx, 0x6610e470
mov dword [ebp - 4], edi
call fcn.660037a1
test eax, eax
jne 0x660a7d3d
mov eax, 0x800a0005
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x660a7d76
cmp dword [esi + 0x38], edi
je 0x660a7d76
cmp dword [ebp + 0x10], edi
jne 0x660a7da3
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x660a7da3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c8]
cmp ecx, esi
jne 0x660a7d7a
mov ecx, dword [ebp + 0xc]
add eax, 0x3c4
cmp ecx, dword [eax]
jbe 0x660a7d76
mov dword [eax], ecx
xor eax, eax
jmp 0x660a7d36
cmp ecx, edi
je 0x660a7d8f
push 1
push dword [eax + 0x3c4]
push ecx
call fcn.660a7d12
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c8], esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x3c4], eax
jmp 0x660a7d76
mov eax, dword [ebp - 8]
add eax, 0x3c8
cmp esi, dword [eax]
jne 0x660a7dc2
mov dword [eax], edi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c4]
cmp dword [ebp + 0xc], eax
jae 0x660a7dc2
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jne 0x660a7de4
test byte [esi + 0x70], 0x20
je 0x660a7ddd
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0xe8]
and eax, 0x30
cmp al, 0x20
jne 0x660a7de4
mov dword [ebp + 0xc], 1
mov edi, dword [esi + 0x70]
mov ebx, dword [esi + 0x70]
or byte [esi + 0x71], 0xc1
mov eax, dword [esi + 0x70]
shl edi, 0x17
shl ebx, 0x11
sar edi, 0x1f
sar ebx, 0x1f
cmp dword [ebp + 0xc], 0
jne 0x660a7e26
shl eax, 0x1c
sar eax, 0x1f
test al, al
je 0x660a7e19
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x660a7e37
mov dword [ebp + 0xc], 1
cmp dword [esi + 0xc0], 0
je 0x660a7ed4
or byte [esi + 0x71], 8
mov ecx, dword [esi + 0x70]
and edi, 1
and ebx, 1
shl edi, 8
mov dword [ebp + 8], ebx
mov eax, edi
shl dword [ebp + 8], 0xe
mov ebx, 0xffffbeff
and ah, 0xbf
and ecx, ebx
or eax, ecx
or eax, dword [ebp + 8]
test ah, 8
mov dword [esi + 0x70], eax
jne 0x660a7eb0
cmp dword [ebp - 4], 0
jge 0x660a7eb0
mov ecx, eax
shl ecx, 0x1c
sar ecx, 0x1f
test cl, cl
je 0x660a7e9a
mov ecx, dword [esi + 8]
or ah, 0x41
mov dword [esi + 0x70], eax
lea eax, [esi + 8]
push 0
push eax
call dword [ecx + 0x28]
mov eax, dword [esi + 0x70]
and edi, 0xffffbfff
and eax, ebx
or edi, eax
or edi, dword [ebp + 8]
mov dword [esi + 0x70], edi
cmp dword [ebp + 0xc], 0
je 0x660a7eb0
cmp dword [esi + 0x48], 0
je 0x660a7eb0
mov ecx, dword [esi + 8]
lea eax, [esi + 8]
push eax
call dword [ecx + 0x2c]
and byte [esi + 0x71], 0x7f
mov eax, dword [esi + 0x70]
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x660a7ecc
test al, 4
jne 0x660a7ecc
push 0
push 0
push esi
call fcn.66021da2
mov eax, dword [ebp - 4]
jmp 0x660a7d36
cmp dword [ebp + 0xc], 1
jne 0x660a7efb
mov eax, dword [esi + 0x48]
test eax, eax
je 0x660a7eea
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x660a7e37
mov dword [ebp + 0xc], 2
mov eax, dword [esi + 0x70]
shl eax, 0x16
sar eax, 0x1f
test al, al
je 0x660a7f19
push 1
push 0
push dword [esi + 0x38]
call dword [sym.imp.ole32.dll_OleLockRunning]
and byte [esi + 0x71], 0xfd
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x660a7f28
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp + 0xc]
dec eax
dec eax
je 0x660a7f49
dec eax
jne 0x660a7e37
mov eax, dword [esi + 0x38]
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 4], eax
jmp 0x660a7e37
mov eax, dword [esi + 0x38]
push 0
mov ecx, dword [eax]
jmp 0x660a7f3d