Function at 0x3006ea1f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x3006ea4c
xor eax, eax
jmp 0x3006ece6
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ebx, eax
mov eax, dword [ebx + 0xb4]
push 0x11
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [ebx + 0xb0]
mov esi, dword [ecx]
mov dword [ebp - 0xc], ecx
shr eax, 8
movzx eax, al
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc8]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0xc4]
cmp esi, dword [eax]
mov dword [ebp - 0x18], eax
jne 0x3006eba5
cmp dword [ebp + 0xc], 8
je 0x3006eb0d
cmp dword [ebp + 0xc], 0x2e
jne 0x3006ebde
cmp dword [ebx + 0x1c0], 2
jne 0x3006eab7
test byte [ebx], 8
je 0x3006eac9
push 2
call fcn.3006b391
test eax, eax
mov dword [ebp - 8], eax
jne 0x3006ecd1
cmp esi, dword [ebx + 0xec]
jge 0x3006ebde
push 1
lea eax, [ebp + 0xc]
push eax
inc esi
push esi
lea eax, [ebp - 0x38]
mov ecx, ebx
call fcn.3006e06c
cmp dword [ebp - 0x24], 0
je 0x3006eafa
lea eax, [ebp - 0x38]
push eax
xor eax, eax
mov ecx, ebx
call fcn.3006d7f5
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xc]
jmp 0x3006ebd9
cmp dword [ebx + 0x1c0], 2
jne 0x3006eb1b
test byte [ebx], 8
je 0x3006eb2d
push 2
call fcn.3006b391
test eax, eax
mov dword [ebp - 8], eax
jne 0x3006ecd1
test esi, esi
je 0x3006ebde
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
dec esi
push esi
lea eax, [ebp - 0x38]
mov ecx, ebx
call fcn.3006e06c
cmp dword [ebp - 0x24], 0
je 0x3006eb59
push 0
lea eax, [ebp - 0x38]
mov ecx, ebx
call fcn.3006d7f5
mov eax, dword [ebp - 0x34]
push dword [ebx + 0xfc]
mov dword [ebp - 4], eax
call edi
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x50
mov ecx, dword [ecx + eax + 0x2c]
cmp ecx, dword [ebp - 0x38]
jne 0x3006eb90
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x50
push 0x14
add esi, eax
pop ecx
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20], 1
push dword [ebx + 0xfc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
jmp 0x3006ebd9
cmp dword [ebp + 0xc], 8
je 0x3006ebb1
cmp dword [ebp + 0xc], 0x2e
jne 0x3006ebd7
cmp dword [ebx + 0x1c0], 2
jne 0x3006ebbf
test byte [ebx], 8
je 0x3006ebd7
push 2
call fcn.3006b391
test eax, eax
mov dword [ebp - 8], eax
jne 0x3006ecd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
push eax
push ecx
call fcn.3006a3fb
test byte [ebp + 0x10], 1
je 0x3006ec79
dec dword [ebp - 4]
jns 0x3006ebf1
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [ebp - 0x1c]
call fcn.3006c6b4
test eax, eax
mov dword [ebp - 8], eax
jne 0x3006ecd1
mov esi, pe_nt_image_headers32
test dword [ebp + 0x10], esi
jne 0x3006ec29
test byte [ebx], 6
je 0x3006ec4d
push dword [ebp + 8]
mov eax, ebx
call fcn.300690b6
jmp 0x3006ec2b
xor eax, eax
test eax, eax
je 0x3006ec4d
shr eax, 0x10
test ax, ax
mov dword [ebp - 0x14], 1
jne 0x3006ec42
test dword [ebx], esi
je 0x3006ec4d
and dword [ebp - 4], 0
mov dword [ebp + 0xc], 0x7fff
push dword [ebp + 8]
call fcn.3006e163
xor eax, eax
mov esi, ebx
call fcn.300697ab
cmp dword [ebp - 0x20], 0
je 0x3006ec79
or dword [ebx + 0xac], 0xffffffff
push 0x14
lea edi, [ebx + 0x5c]
pop ecx
lea esi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
test byte [ebp + 0x10], 2
je 0x3006ecab
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x3006ecab
push dword [ebp - 0x14]
mov eax, ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.3006d4a5
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
mov ecx, ebx
call fcn.30069834
xor esi, esi
cmp dword [ebx + 0xec], esi
jne 0x3006eccc
push esi
push esi
push 0x47d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 8], esi
je 0x3006ecd8
mov eax, ebx
call fcn.3006b457
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
leave
ret 0xc