Function at 0x4081f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx]
push edi
cmp dword [eax + 0xd0], 1
jle 0x4084aa
lea esi, [ebx + 4]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor edx, edx
lea eax, [ebx + 0x104]
mov edi, esi
mov dword [ebp - 4], edx
sub edi, eax
add eax, edx
movzx esi, byte [edi + eax]
movzx eax, byte [eax]
shr esi, 7
shr eax, 7
cmp esi, eax
je 0x4082a2
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x208]
add eax, 2
cmp eax, ecx
jbe 0x408271
lea eax, [ecx + 0x400]
push eax
push dword [ebx + 0x204]
call fcn.00468c7a
mov edx, dword [ebp - 4]
add esp, 8
add dword [ebx + 0x208], 0x400
mov dword [ebx + 0x204], eax
mov ecx, dword [ebx + 0x204]
mov eax, dword [ebx + 0x20c]
test esi, esi
jne 0x408287
mov byte [ecx + eax], 3
jmp 0x40828b
mov byte [ecx + eax], 2
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x204]
mov byte [ecx + eax + 1], dl
add dword [ebx + 0x20c], 2
inc edx
mov dword [ebp - 4], edx
lea eax, [ebx + 0x104]
cmp edx, 0x100
jl 0x408223
mov ecx, 0x40
lea esi, [ebx + 4]
lea edi, [ebx + 0x104]
rep movsd dword es:[edi], dword [esi]
call fcn.0042be80
mov edi, dword [ebx]
xor ecx, ecx
mov al, byte [ebx + ecx + 0x210]
cmp al, byte [edi + ecx + 0x2c]
jne 0x4082e9
inc ecx
cmp ecx, 4
jl 0x4082d1
jmp 0x408370
cmp ecx, 4
jge 0x408370
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x208]
add eax, 5
cmp eax, ecx
jbe 0x40832a
lea eax, [ecx + 0x400]
push eax
push dword [ebx + 0x204]
call fcn.00468c7a
add esp, 8
add dword [ebx + 0x208], 0x400
mov dword [ebx + 0x204], eax
mov ecx, dword [ebx + 0x204]
mov eax, dword [ebx + 0x20c]
xor esi, esi
mov byte [ecx + eax], 4
lea esp, [esp]
mov edx, dword [ebx + 0x204]
movzx eax, byte [edi + esi + 0x2c]
mov ecx, dword [ebx + 0x20c]
add edx, esi
inc esi
mov byte [edx + ecx + 1], al
movzx eax, byte [edi + esi + 0x2b]
mov byte [ebx + esi + 0x20f], al
cmp esi, 4
jl 0x408340
add dword [ebx + 0x20c], 5
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
push dword [eax + 0x1d0]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 0x214]
cmp eax, dword [ebp - 0xc]
jne 0x4083a9
mov eax, dword [ebx + 0x218]
cmp eax, dword [ebp - 8]
je 0x40845e
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x208]
add eax, 5
cmp eax, ecx
jbe 0x4083e1
lea eax, [ecx + 0x400]
push eax
push dword [ebx + 0x204]
call fcn.00468c7a
add esp, 8
add dword [ebx + 0x208], 0x400
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x204]
mov byte [ecx + eax], 5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x204]
sar edx, 8
mov byte [ecx + eax + 1], dl
mov ecx, dword [ebx + 0x20c]
movzx eax, byte [ebp - 0xc]
mov edx, dword [ebx + 0x204]
mov byte [edx + ecx + 2], al
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x204]
sar edx, 8
mov byte [ecx + eax + 3], dl
movzx eax, byte [ebp - 8]
mov ecx, dword [ebx + 0x20c]
mov edx, dword [ebx + 0x204]
mov byte [edx + ecx + 4], al
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x20c], 5
mov dword [ebx + 0x214], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x218], eax
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x208]
inc eax
cmp eax, ecx
jbe 0x408494
lea eax, [ecx + 0x400]
push eax
push dword [ebx + 0x204]
call fcn.00468c7a
add esp, 8
add dword [ebx + 0x208], 0x400
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x20c]
mov ecx, dword [ebx + 0x204]
mov byte [ecx + eax], 1
inc dword [ebx + 0x20c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret