Function at 0x57f260
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0xdd50c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 0xa0], 0
je 0x57f2ef
mov eax, dword [ebp + 0x18]
movsx edi, ax
shr eax, 0x10
movsx esi, ax
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x60]
call fcn.00589cc0
add esp, 8
lea eax, [ebp - 0x5c]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x57f2c1
cmp dword [ebx + 0xa4], 0
jne 0x57f2ef
mov dword [ebx + 0xa4], 1
push 0
jmp 0x57f2d6
cmp dword [ebx + 0xa4], 0
je 0x57f2ef
mov dword [ebx + 0xa4], 0
push 1
mov eax, dword [ebx + 0x64]
push ebx
push eax
mov eax, dword [eax + 8]
call eax
lea eax, [ebx + 0x84]
push eax
call fcn.0056ca80
add esp, 0x10
mov ecx, dword [ebp + 0x18]
movsx eax, cx
shr ecx, 0x10
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsx eax, cx
movsd qword [ebp - 0x44], xmm0
movd xmm0, eax
lea eax, [ebp - 0x4c]
cvtdq2pd xmm0, xmm0
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
movsd qword [ebp - 0x4c], xmm0
call fcn.0057ff70
movsd xmm1, qword [ebp - 0x44]
add esp, 0xc
cmp dword [ebx + 0x68], 0
movsd xmm2, qword [ebp - 0x4c]
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x34], xmm2
je 0x57f364
movd xmm0, dword [ebx + 0x74]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
movsd qword [ebp - 0x3c], xmm0
movd xmm0, dword [ebx + 0x78]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm2
movsd qword [ebp - 0x34], xmm0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
call fcn.0057ff10
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x57f3d7
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x25
call esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x24
call esi
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
push eax
call dword [sym.imp.USER32.dll_GetMessageTime]
push eax
cvttsd2si eax, qword [ebp - 0x34]
push eax
cvttsd2si eax, qword [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebx + 0x84]
push eax
call fcn.0056c9e0
add esp, 0x20
mov dword [ebp - 0x14], eax
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test al, 0x80
mov eax, 1
push 0x12
cmovne esi, eax
call edi
test al, al
jns 0x57f3f8
or esi, 2
push 0x10
call edi
test al, al
jns 0x57f403
or esi, 4
push 0x5b
call edi
test al, al
jns 0x57f40e
or esi, 8
push 0x5c
call edi
test al, al
jns 0x57f419
or esi, 8
mov edi, dword [ebp - 0x1c]
xorps xmm0, xmm0
test edi, edi
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
mov edx, edi
cmove edx, esi
movlpd qword [ebp - 0xc], xmm0
cmp edx, 1
je 0x57f44b
test byte [ebp + 0x14], 1
je 0x57f44b
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x57f451
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp edx, 2
je 0x57f465
test byte [ebp + 0x14], 0x10
je 0x57f465
or eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 3
je 0x57f479
test byte [ebp + 0x14], 2
je 0x57f479
or eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 4
je 0x57f48d
test byte [ebp + 0x14], 0x20
je 0x57f48d
or eax, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 5
je 0x57f4a1
test byte [ebp + 0x14], 0x40
je 0x57f4a1
or eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x57f4fe
cmp dword [ebx + 0xa0], 0
jne 0x57f4fe
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0xa0], 1
je 0x57f4ec
mov eax, dword [ebx + 0x60]
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebx + 0xa8], 0
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x68], 0x80000002
call fcn.0057f750
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x57f51a
or eax, ecx
jne 0x57f51a
cmp dword [ebx + 0xa0], eax
je 0x57f51a
mov dword [ebx + 0xa0], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebx + 0x64]
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00d117b1
mov esp, ebp
pop ebp
ret