Function at 0x485ee4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
test eax, eax
push edi
mov dword [ebp - 4], ecx
je 0x485f01
and eax, 8
mov ecx, eax
jmp 0x485f11
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov eax, dword [ebx + 4]
push 1
pop esi
mov eax, dword [eax + 0x3c]
not eax
shr eax, 9
and eax, esi
mov dword [ebp + 0xc], eax
je 0x485f2a
test ecx, ecx
jne 0x485f2c
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
test esi, esi
jne 0x486023
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp + 0x10], 0
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
lea esi, [edi + 0xb8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 4]
push 1
pop edx
shl edx, cl
test dword [eax + 0x3c], edx
jne 0x485ff6
cmp dword [esi - 8], 0
jne 0x485fc4
cmp dword [esi - 0x94], 0
je 0x485ff6
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
movsx eax, word [esi]
sub eax, 0
je 0x485fb9
dec eax
je 0x485fae
dec eax
je 0x485fa3
dec eax
jne 0x485fe2
mov eax, dword [ebp - 8]
add eax, 0xffffffab
mov dword [ebp - 0x10], eax
jmp 0x485fe2
mov eax, dword [ebp - 0xc]
add eax, 0xffffffab
mov dword [ebp - 0x14], eax
jmp 0x485fe2
mov eax, dword [ebp - 0x10]
add eax, 0x55
mov dword [ebp - 8], eax
jmp 0x485fe2
mov eax, dword [ebp - 0x14]
add eax, 0x55
mov dword [ebp - 0xc], eax
jmp 0x485fe2
lea eax, [ebp - 0x14]
lea ecx, [esi - 0x94]
push eax
lea eax, [esi - 0x98]
neg eax
sbb eax, eax
and eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebx + 0xc]
lea eax, [ebp - 0x14]
push dword [ebx + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x486009
inc dword [ebp + 0x10]
add esi, 0x9c
cmp dword [ebp + 0x10], 4
jl 0x485f57
cmp dword [ebp + 0x10], 4
jl 0x486098
cmp dword [ebp + 0xc], 0
je 0x486068
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x18]
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
add ecx, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov word [ebx + 0x28], 4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x10], 4
jne 0x486098
and dword [ebp + 0x10], 0
lea eax, [edi + 0x24]
cmp dword [eax], 0
je 0x48608a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx + 4]
push 1
pop esi
shl esi, cl
test dword [edx + 0x3c], esi
je 0x486098
inc dword [ebp + 0x10]
add eax, 0x9c
cmp dword [ebp + 0x10], 4
jl 0x486075
lea edi, [ebx + 0x18]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov ax, word [ebp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x28], ax
movsd dword es:[edi], dword [esi]
jmp 0x48605f