Function at 0x579c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0xdbd0c4]
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 0x579c9f
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.00584b00
add esp, 8
lea eax, [ebp - 0x5c]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x579c71
cmp dword [ebx + 0xa4], 0
jne 0x579c9f
mov dword [ebx + 0xa4], 1
push 0
jmp 0x579c86
cmp dword [ebx + 0xa4], 0
je 0x579c9f
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.0056acf0
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.0057a920
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 0x579d14
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.0057a8c0
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 0x579d87
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.0056ac50
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 0x579da8
or esi, 2
push 0x10
call edi
test al, al
jns 0x579db3
or esi, 4
push 0x5b
call edi
test al, al
jns 0x579dbe
or esi, 8
push 0x5c
call edi
test al, al
jns 0x579dc9
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 0x579dfb
test byte [ebp + 0x14], 1
je 0x579dfb
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x579e01
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp edx, 2
je 0x579e15
test byte [ebp + 0x14], 0x10
je 0x579e15
or eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 3
je 0x579e29
test byte [ebp + 0x14], 2
je 0x579e29
or eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 4
je 0x579e3d
test byte [ebp + 0x14], 0x20
je 0x579e3d
or eax, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp edx, 5
je 0x579e51
test byte [ebp + 0x14], 0x40
je 0x579e51
or eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x579eae
cmp dword [ebx + 0xa0], 0
jne 0x579eae
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0xa0], 1
je 0x579e9c
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.0057a100
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 0x579eca
or eax, ecx
jne 0x579eca
cmp dword [ebx + 0xa0], eax
je 0x579eca
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.00cfa7a1
mov esp, ebp
pop ebp
ret