Function at 0x7d51b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
lea edi, [ebp - 0x18]
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 ebx, eax
xor eax, eax
push ebp
push 0x7d540a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0xa3fd98]
cmp byte [eax], 0
je 0x7d53d5
movzx eax, word [ebp - 0x14]
add eax, 0xfffffff8
sub ax, 2
jb 0x7d53df
sub ax, 3
je 0x7d53df
sub ax, 0xe
je 0x7d53df
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040a1c8
lea eax, [ebp - 0x118]
push eax
call sub.user32.dll_GetKeyboardState
test eax, eax
je 0x7d53df
test byte [ebp - 0x107], 0x80
jne 0x7d53df
movzx esi, word [ebp - 0x14]
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.00409e4c
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [0xa48298]
cmp eax, 1
jle 0x7d530a
lea edx, [ebp - 4]
xchg edx, eax
call fcn.0040a1c8
cmp word [ebx + 0xc], 0
je 0x7d52ea
cmp dword [ebx + 8], 1
jl 0x7d52e2
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 4]
call fcn.0040a370
mov edx, dword [ebp - 0x11c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
push 0
movzx eax, word [ebx + 0xc]
push eax
push 0x102
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov word [ebx + 0xc], 0
xor eax, eax
mov dword [ebx + 8], eax
jmp 0x7d53df
inc dword [ebx + 8]
jmp 0x7d53df
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 4]
call fcn.0040a370
mov edx, dword [ebp - 0x120]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x7d53df
movzx esi, word [ebx + 0xc]
test si, si
je 0x7d53ab
cmp eax, 1
jne 0x7d53ab
mov eax, dword [ebp - 4]
movzx edx, word [eax]
mov ecx, esi
mov eax, dword [ebx + 0x10]
call fcn.007d6af8
mov edx, eax
lea eax, [ebp - 0x124]
call fcn.0040a2a0
mov edx, dword [ebp - 0x124]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebx + 0x18]
mov edx, 0x7d5424
call fcn.0040a67c
jne 0x7d53a3
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004095a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a1c8
mov eax, dword [ebp - 8]
movzx eax, word [eax]
mov edx, dword [ebp - 8]
mov word [edx + 2], ax
mov eax, dword [ebp - 8]
movzx edx, word [ebx + 0xc]
mov word [eax], dx
lea eax, [ebp - 0x128]
mov edx, dword [ebp - 8]
call fcn.0040a370
mov edx, dword [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov word [ebx + 0xc], 0
jmp 0x7d53df
test eax, eax
jle 0x7d53df
lea edx, [ebp - 4]
xchg edx, eax
call fcn.0040a1c8
lea eax, [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.0040a370
mov edx, dword [ebp - 0x12c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x7d53df
lea edx, [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7d5411
lea eax, [ebp - 0x12c]
mov edx, 5
call fcn.00409184
lea eax, [ebp - 8]
mov edx, 2
call fcn.004091e4
ret