Function at 0x14003d050
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x4f]
sub rsp, 0x88
mov qword [rsp + 0xb8], rbx
mov ecx, 0x2e
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14003d083
mov byte [0x14004cffa], 1
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14003d0a0
cmp byte [0x14004cffb], 0
sete byte [0x14004cffb]
cmp qword [0x14004d1b0], 0
jne 0x14003d0b9
cmp qword [0x14004d1c0], 0
je 0x14003d0b9
call fcn.140028a80
mov rcx, qword [0x14004d1f0]
lea rdx, [rbp + 7]
mov rdi, qword [0x14004d000]
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0xf]
lea rcx, [rbp + 0x77]
sub eax, dword [rbp + 7]
xor r14d, r14d
mov qword [rbp + 0x77], r14
movd xmm1, eax
mov eax, dword [rbp + 0x13]
sub eax, dword [rbp + 0xb]
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 [0x14004d1f8]
cvtsi2ss xmm0, qword [0x14004d200]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x14004d1f8], rcx
lea ecx, [r14 + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [r14 + 0x10]
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [r14 + 0x12]
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x14004d000]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], r14b
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], r14b
je 0x14003d1cd
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x14004d1f0]
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 0x14003d1cd
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 [0x14004d1f0]
jne 0x14003d233
lea rcx, [rbp + 0x6f]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14003d233
mov rcx, qword [0x14004d1f0]
lea rdx, [rbp + 0x6f]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14003d233
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 0x14003d243
mov eax, 0xffffffff
jmp 0x14003d250
mov rax, qword [0x14004d000]
mov eax, dword [rax + 0x1f48]
cmp dword [0x14004c2a0], eax
je 0x14003d263
mov dword [0x14004c2a0], eax
call fcn.140028d70
call fcn.140028ef0
call fcn.140006640
cmp byte [0x14004c0b2], r14b
je 0x14003d411
cmp byte [0x14004c0b0], r14b
jne 0x14003d290
cmp byte [0x14004c0b3], r14b
je 0x14003d411
mov qword [rsp + 0x80], rsi
lea rbx, [0x14004c2e0]
mov qword [rsp + 0x70], r15
lea r15, [0x14004ceb0]
movaps xmmword [rsp + 0x60], xmm6
movsd xmm6, qword [0x1400453e0]
movaps xmmword [rsp + 0x50], xmm7
movss xmm7, dword [0x1400453b4]
nop word [rax + rax]
cvttss2si edi, dword [rbx]
cvttss2si esi, dword [rbx + 4]
cmp byte [rbx + 0xc], r14b
jne 0x14003d3ed
cmp esi, 5
jl 0x14003d3ed
cmp edi, 5
jl 0x14003d3ed
cmp byte [0x14004c0b0], r14b
je 0x14003d3cb
mov rax, qword [0x14004d000]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x1dc0]
mov rcx, qword [rcx]
call fcn.1400053c0
mov ecx, dword [0x14004c0c8]
xorps xmm1, xmm1
xorps xmm0, xmm0
mov r8, rax
mov eax, dword [0x14004c0d4]
cvtsi2sd xmm0, rcx
mov ecx, dword [0x14004c0cc]
cvtsi2sd xmm1, rcx
mov ecx, dword [0x14004c0d0]
divsd xmm0, xmm6
divsd xmm1, xmm6
cvtpd2ps xmm0, xmm0
movss dword [rbp + 7], xmm0
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
lea rcx, [rbp + 7]
movss dword [rbp + 0xb], xmm0
divsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
movss dword [rbp + 0xf], xmm0
divsd xmm1, xmm6
cvtpd2ps xmm0, xmm1
movd xmm1, edi
movss dword [rbp + 0x13], 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.140021fe0
cmp byte [0x14004c0b3], r14b
je 0x14003d3ed
cmp qword [rbx + 0x28], 0xf
lea r9, [rbx + 0x10]
jbe 0x14003d3e2
mov r9, qword [r9]
lea edx, [rsi - 0x20]
lea ecx, [rdi - 0xe]
call fcn.14003b9c0
add rbx, 0x30
cmp rbx, r15
jl 0x14003d2d0
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
cmp byte [0x14004cffb], r14b
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xb8]
je 0x14003d42c
call fcn.14003c9a0
call fcn.140008740
mov rcx, qword [0x14004d098]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x14004d098]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x14004d098]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x14004d098]
mov r9d, 1
movss xmm0, dword [0x140045398]
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 [0x14004d098]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14003d4f4
call fcn.140008ad0
mov rax, qword [0x14004d000]
mov rcx, qword [rax + 0x1dc0]
mov rcx, qword [rcx]
add rcx, 0x40
cmp byte [rcx], r14b
cmove rcx, r14
call fcn.1400283e0
mov rcx, qword [0x14004d098]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14004d098]
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 0x14003d5bf
mov rcx, qword [0x14004d098]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14003d5bf
cmp qword [0x14004d1c0], r14
je 0x14003d59a
mov rcx, qword [0x14004d1c8]
test rcx, rcx
je 0x14003d556
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14004d1c8], r14
mov rcx, qword [0x14004d1b8]
test rcx, rcx
je 0x14003d56f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14004d1b8], r14
mov rcx, qword [0x14004d1b0]
test rcx, rcx
je 0x14003d59a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x14004d000]
mov qword [0x14004d1b0], r14
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], r14
mov rcx, qword [0x14004d098]
lea rdx, [0x14004d020]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp qword [0x14004d1c0], r14
je 0x14003d5bf
call fcn.140028a80
add rsp, 0x88
pop r14
pop rbp
ret