Function at 0x56f6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0xdca0c4]
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 0x56f77f
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.0057a1c0
add esp, 8
lea eax, [ebp - 0x5c]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x56f751
cmp dword [ebx + 0xa4], 0
jne 0x56f77f
mov dword [ebx + 0xa4], 1
push 0
jmp 0x56f766
cmp dword [ebx + 0xa4], 0
je 0x56f77f
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.005600a0
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.00570400
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 0x56f7f4
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.005703a0
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 0x56f867
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.00560000
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 0x56f888
or esi, 2
push 0x10
call edi
test al, al
jns 0x56f893
or esi, 4
push 0x5b
call edi
test al, al
jns 0x56f89e
or esi, 8
push 0x5c
call edi
test al, al
jns 0x56f8a9
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 0x56f8db
test byte [ebp + 0x14], 1
je 0x56f8db
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x56f8e1
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp edx, 2
je 0x56f8f5
test byte [ebp + 0x14], 0x10
je 0x56f8f5
or eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 3
je 0x56f909
test byte [ebp + 0x14], 2
je 0x56f909
or eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 4
je 0x56f91d
test byte [ebp + 0x14], 0x20
je 0x56f91d
or eax, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 5
je 0x56f931
test byte [ebp + 0x14], 0x40
je 0x56f931
or eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x56f98e
cmp dword [ebx + 0xa0], 0
jne 0x56f98e
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0xa0], 1
je 0x56f97c
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.0056fbe0
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 0x56f9aa
or eax, ecx
jne 0x56f9aa
cmp dword [ebx + 0xa0], eax
je 0x56f9aa
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.00d06a41
mov esp, ebp
pop ebp
ret