Function at 0x140009190
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rdi
lea rbp, [rax - 0x68]
sub rsp, 0x150
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
mov rdi, rdx
movaps xmm9, xmm0
ucomisd xmm0, qword [0x140057fe0]
jp 0x1400091ce
je 0x140009542
cmp byte [0x140061c89], 0
je 0x140009542
mov rax, qword [0x14007e340]
cmp qword [rax + 0x20], 0
je 0x140009542
movzx ecx, byte [0x140061c94]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140009542
xorps xmm6, xmm6
mov eax, dword [0x14007e0b4]
test eax, eax
jne 0x140009257
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14000922f
xorps xmm1, xmm1
movups xmmword [rsp + 0x60], xmm1
xorps xmm0, xmm0
movsd qword [rsp + 0x70], xmm0
jmp 0x140009244
mov r8d, 0x6d
lea rdx, [rsp + 0x60]
call fcn.140004710
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm1
movsd xmm0, qword [rsp + 0x70]
movsd qword [rsp + 0x50], xmm0
jmp 0x140009285
cmp eax, 1
jne 0x1400092ab
mov rax, qword [rdi]
mov r8d, 0x42
lea rdx, [rbp - 0x70]
mov rcx, qword [rax + 8]
call fcn.140004710
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140004370
movsd xmm8, qword [rax]
movsd xmm7, qword [rax + 8]
movaps xmm6, xmm8
unpcklpd xmm6, xmm7
jmp 0x14000935a
cmp eax, 2
jne 0x14000934f
mov rax, qword [rdi]
mov r8d, 0x25
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 8]
call fcn.140004710
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140004370
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp - 8]
mov rcx, qword [rax + 8]
call fcn.140004710
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbp - 0x60], xmm1
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.140004370
movsd xmm8, qword [rsp + 0x78]
subsd xmm8, qword [rsp + 0x60]
mulsd xmm8, qword [0x140057e60]
addsd xmm8, qword [rsp + 0x60]
movsd xmm7, qword [rsp + 0x68]
movaps xmm6, xmm8
unpcklpd xmm6, xmm7
jmp 0x14000935a
xorps xmm7, xmm7
unpckhpd xmm7, xmm6
xorps xmm8, xmm8
cmp byte [0x14007e301], 0
je 0x1400094d8
cmp byte [0x14007e300], 0
je 0x14000942e
movaps xmm0, xmmword [0x140058200]
movups xmmword [rbp - 0x50], xmm0
movss xmm1, dword [0x140061ca0]
addss xmm1, dword [0x140057e78]
cvttss2si ebx, xmm1
mov rax, qword [0x14007e0d8]
mov rax, qword [rax + 0x4088]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.1400156f0
mov r10, rax
lea rcx, [rbp - 0x50]
call fcn.1400128b0
mov r9d, eax
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm7
cvtpd2ps xmm0, xmm8
movss dword [rbp + 0x70], xmm0
movss dword [rbp + 0x74], xmm1
mov eax, dword [0x14007e454]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [0x14007e450]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp + 0x80], xmm0
movss dword [rbp + 0x84], xmm1
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x20], xmm1
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x80]
mov rcx, r10
call fcn.140032ab0
mov rax, qword [0x14007e0d8]
mov rax, qword [rax + 0x4088]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.1400156f0
mov r10, rax
movaps xmm0, xmmword [0x1400582d0]
movups xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call fcn.1400128b0
mov r9d, eax
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm7
cvtpd2ps xmm0, xmm8
movss dword [rbp + 0x88], xmm0
movss dword [rbp + 0x8c], xmm1
mov eax, dword [0x14007e454]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [0x14007e450]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm1
movss xmm1, dword [0x140061ca0]
movss dword [rsp + 0x20], xmm1
lea r8, [rbp + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.140032ab0
mov ecx, dword [0x14007e314]
call qword [sym.imp.KERNEL32.dll_Sleep]
movdqa xmmword [rbp - 0x30], xmm6
lea rcx, [rbp - 0x30]
call fcn.1400048d0
cmp byte [0x140061c88], 0
je 0x140009542
movsd xmm0, qword [0x140057ed0]
comisd xmm0, xmm9
jbe 0x140009542
mov rax, qword [rdi]
cmp dword [rax + 0x3c], 0xf
jge 0x140009542
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rbx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
nop
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140009577
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140009577
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140009577
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lea r11, [rsp + 0x150]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rdi
pop rbx
pop rbp
ret