Function at 0x14003c660
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x98
mov qword [rax - 0x18], rbx
mov ecx, 0x2e
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
mov r12d, 1
movzx eax, byte [0x14004c3da]
cmovne eax, r12d
mov byte [0x14004c3da], al
lea ecx, [r12 + 0x2c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test r12b, al
je 0x14003c6bf
cmp byte [0x14004c3db], 0
sete byte [0x14004c3db]
cmp qword [0x14004d190], 0
jne 0x14003c6d8
cmp qword [0x14004d1a0], 0
je 0x14003c6d8
call fcn.140028560
mov rcx, qword [0x14004d1d0]
lea rdx, [rbp - 9]
mov rdi, qword [0x14004c3e0]
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 1]
lea rcx, [rbp + 0x77]
sub eax, dword [rbp - 9]
xor r14d, r14d
mov qword [rbp + 0x77], r14
movd xmm1, eax
mov eax, dword [rbp + 3]
sub eax, dword [rbp - 5]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x77]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x14004d1d8]
cvtsi2ss xmm0, qword [0x14004d1e0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x14004d1d8], rcx
lea ecx, [r14 + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [r14 + 0x10]
and al, r12b
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [r14 + 0x12]
and al, r12b
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x14004c3e0]
shr eax, 0xf
and al, r12b
mov byte [rdi + 0x143], r14b
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], r14b
je 0x14003c7ef
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x14004d1d0]
lea rdx, [rbp + 0x67]
mov dword [rbp + 0x67], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rbp + 0x6b], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14003c7ef
mov edx, dword [rbp + 0x6b]
mov ecx, dword [rbp + 0x67]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x14004d1d0]
jne 0x14003c855
lea rcx, [rbp + 0x6f]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14003c855
mov rcx, qword [0x14004d1d0]
lea rdx, [rbp + 0x6f]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14003c855
movd xmm0, dword [rbp + 0x6f]
movd xmm1, dword [rbp + 0x73]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], r14b
je 0x14003c865
mov eax, 0xffffffff
jmp 0x14003c872
mov rax, qword [0x14004c3e0]
mov eax, dword [rax + 0x1f48]
cmp dword [0x14004c258], eax
je 0x14003c885
mov dword [0x14004c258], eax
call fcn.140028850
call fcn.1400289d0
call fcn.140006610
cmp byte [0x14004c072], r14b
je 0x14003ca2f
cmp byte [0x14004c070], r14b
jne 0x14003c8b2
cmp byte [0x14004c073], r14b
je 0x14003ca2f
mov qword [rsp + 0x88], rsi
lea rbx, [0x14004c590]
mov qword [rsp + 0x70], r15
lea r15, [0x14004d160]
movaps xmmword [rsp + 0x60], xmm6
movsd xmm6, qword [0x140045498]
movaps xmmword [rsp + 0x50], xmm7
movss xmm7, dword [0x14004546c]
nop word [rax + rax]
cvttss2si edi, dword [rbx]
cvttss2si esi, dword [rbx + 4]
cmp byte [rbx + 0xc], r14b
jne 0x14003ca0b
cmp esi, 5
jl 0x14003ca0b
cmp edi, 5
jl 0x14003ca0b
cmp byte [0x14004c070], r14b
je 0x14003c9e9
mov rax, qword [0x14004c3e0]
lea r8, str.Foreground
mov rdx, r12
mov rcx, qword [rax + 0x1dc0]
mov rcx, qword [rcx]
call fcn.140005370
mov ecx, dword [0x14004c088]
xorps xmm1, xmm1
xorps xmm0, xmm0
mov r8, rax
mov eax, dword [0x14004c094]
cvtsi2sd xmm0, rcx
mov ecx, dword [0x14004c08c]
cvtsi2sd xmm1, rcx
mov ecx, dword [0x14004c090]
divsd xmm0, xmm6
divsd xmm1, xmm6
cvtpd2ps xmm0, xmm0
movss dword [rbp - 9], xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
lea rcx, [rbp - 9]
movss dword [rbp - 5], xmm0
divsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
movss dword [rbp - 1], xmm0
divsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
movd xmm1, edi
movss dword [rbp + 3], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbp + 0x6b], xmm0
movss dword [rbp + 0x67], xmm1
call fcn.140002f50
mov r9d, eax
mov dword [rsp + 0x20], r14d
movaps xmm2, xmm7
lea rdx, [rbp + 0x67]
mov rcx, r8
call fcn.140021a80
cmp byte [0x14004c073], r14b
je 0x14003ca0b
cmp qword [rbx + 0x28], 0x10
lea r9, [rbx + 0x10]
jb 0x14003ca00
mov r9, qword [r9]
lea edx, [rsi - 0x20]
lea ecx, [rdi - 0xe]
call fcn.14003aff0
add rbx, 0x30
cmp rbx, r15
jl 0x14003c8f0
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
cmp byte [0x14004c3db], r14b
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
je 0x14003ca4d
call fcn.14003bfa0
call fcn.1400086f0
mov rcx, qword [0x14004c478]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x14004c478]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x14004c478]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x14004c478]
mov r9d, r12d
movss xmm0, dword [0x140045450]
xor r8d, r8d
mov dword [rsp + 0x30], r14d
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
call qword [rax + 0x158]
mov rcx, qword [0x14004c478]
mov rax, qword [rcx]
call qword [rax + 0x148]
mov r12, qword [rsp + 0x78]
test eax, eax
js 0x14003cb17
call fcn.140008a70
mov rax, qword [0x14004c3e0]
mov rcx, qword [rax + 0x1dc0]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], r14b
cmove rcx, r14
call fcn.140027ea0
mov rcx, qword [0x14004c478]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14004c478]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14003cbe2
mov rcx, qword [0x14004c478]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14003cbe2
cmp qword [0x14004d1a0], r14
je 0x14003cbbd
mov rcx, qword [0x14004d1a8]
test rcx, rcx
je 0x14003cb79
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14004d1a8], r14
mov rcx, qword [0x14004d198]
test rcx, rcx
je 0x14003cb92
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14004d198], r14
mov rcx, qword [0x14004d190]
test rcx, rcx
je 0x14003cbbd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x14004c3e0]
mov qword [0x14004d190], r14
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], r14
mov rcx, qword [0x14004c478]
lea rdx, [0x14004c400]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp qword [0x14004d1a0], r14
je 0x14003cbe2
call fcn.140028560
add rsp, 0x98
pop r14
pop rbp
ret