Function at 0x586430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0xbc]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
test edx, edx
jne 0x58648e
mov ecx, dword [0x11c]
mov eax, dword [ecx + 0x2c]
cmp eax, dword [ecx + 0x30]
je 0x58661e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x11c]
mov edx, dword [eax + 0x2c]
cmp edx, dword [eax + 0x30]
je 0x5864aa
cmp byte [edx + 4], 0
je 0x5864aa
mov edi, dword [ecx + 0xc4]
jmp 0x5864b0
mov edi, dword [ecx + 0xc8]
test edi, edi
je 0x58661e
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
mov esi, dword [esi + 0xc]
push ecx
mov ecx, edi
sub esi, dword [eax + 4]
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
add eax, ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
lea eax, [edx + esi]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x18]
call eax
lea ecx, [ebp - 0x58]
mov edx, eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00586370
add esp, 4
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 0
cmp byte [eax + 0x81], 0
jne 0x58653f
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x586527
jmp 0x5865d7
test eax, eax
je 0x5865d7
mov eax, dword [eax + 0xb8]
mov esi, dword [eax]
test esi, esi
je 0x5865d7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
call eax
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x18]
call fcn.0053dd00
mov ecx, dword [ebp - 0x14]
mov esi, eax
call fcn.0053dd00
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
call fcn.0053f4a0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.0052eae0
test eax, eax
je 0x5865d7
mov esi, 1
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, 2
cmovne esi, eax
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x5865f4
mov eax, dword [ecx]
push dword [ebp - 0x38]
call dword [eax + 0x24]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
mov eax, dword [edi]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x14]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x58661e
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 0xc