Function at 0x565ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0xda90c4]
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 0x565d2f
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.00570790
add esp, 8
lea eax, [ebp - 0x5c]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x565d01
cmp dword [ebx + 0xa4], 0
jne 0x565d2f
mov dword [ebx + 0xa4], 1
push 0
jmp 0x565d16
cmp dword [ebx + 0xa4], 0
je 0x565d2f
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.00557660
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.005669b0
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 0x565da4
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.00566950
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 0x565e17
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.005575c0
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 0x565e38
or esi, 2
push 0x10
call edi
test al, al
jns 0x565e43
or esi, 4
push 0x5b
call edi
test al, al
jns 0x565e4e
or esi, 8
push 0x5c
call edi
test al, al
jns 0x565e59
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 0x565e8b
test byte [ebp + 0x14], 1
je 0x565e8b
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x565e91
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp edx, 2
je 0x565ea5
test byte [ebp + 0x14], 0x10
je 0x565ea5
or eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 3
je 0x565eb9
test byte [ebp + 0x14], 2
je 0x565eb9
or eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 4
je 0x565ecd
test byte [ebp + 0x14], 0x20
je 0x565ecd
or eax, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 5
je 0x565ee1
test byte [ebp + 0x14], 0x40
je 0x565ee1
or eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x565f3e
cmp dword [ebx + 0xa0], 0
jne 0x565f3e
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0xa0], 1
je 0x565f2c
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.00566190
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 0x565f5a
or eax, ecx
jne 0x565f5a
cmp dword [ebx + 0xa0], eax
je 0x565f5a
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.00ce7031
mov esp, ebp
pop ebp
ret