Function at 0x14001ce60
Capabilities:
Check for foreground window switch
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push r12
push r13
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xe8
mov rax, qword [0x1400e4080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [r11 + 0x18], rbx
mov r15b, 1
mov qword [r11 - 0x28], rsi
mov r13, rcx
mov qword [r11 - 0x30], rdi
movzx r12d, r15b
mov qword [r11 - 0x38], r14
mov qword [rbp - 0x79], rdx
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14001ceb7
test r12b, r12b
sete r12b
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x21]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001cf17
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp - 0x19], 0x12
je 0x14001cf14
test r15b, r15b
je 0x14001cf17
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x21]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14001ced5
jmp 0x14001cf17
xor r15b, r15b
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14001d1d2
mov rbx, qword [0x1400e6f40]
test rbx, rbx
je 0x14001cf40
mov rax, qword [rbx + 0x98]
jmp 0x14001cf42
xor eax, eax
cmp qword [rax + 0x48], 0
jne 0x14001cf55
call fcn.140048380
mov rbx, qword [0x1400e6f40]
test rbx, rbx
je 0x14001cf63
mov rdi, qword [rbx + 0x90]
jmp 0x14001cf65
xor edi, edi
xorps xmm0, xmm0
lea rdx, [rbp - 0x49]
movdqu xmmword [rbp - 0x49], xmm0
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x41]
lea rcx, [rbp - 0x29]
sub eax, dword [rbp - 0x49]
mov qword [rbp - 0x29], 0
movd xmm1, eax
mov eax, dword [rbp - 0x3d]
sub eax, dword [rbp - 0x45]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x29]
xorps xmm1, xmm1
mov rsi, qword [0x1400e6f40]
mov rax, rcx
sub rax, qword [rdi + 0x18]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rdi + 0x20]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [rdi + 0x18], rcx
test rsi, rsi
je 0x14001cfee
mov r14, qword [rsi + 0x90]
jmp 0x14001cff1
xor r14d, r14d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [r14]
cmp rax, rcx
jne 0x14001d084
cmp byte [rsi + 0xcd], 0
je 0x14001d045
cvttss2si eax, dword [rsi + 0xe00]
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x39], eax
cvttss2si eax, dword [rsi + 0xe04]
mov dword [rbp - 0x35], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14001d03c
mov edx, dword [rbp - 0x35]
mov ecx, dword [rbp - 0x39]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rsi + 0xcd], 0
jne 0x14001d084
cmp dword [r14 + 0x10], 0
jne 0x14001d084
lea rcx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14001d084
mov rcx, qword [r14]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14001d084
movd xmm2, dword [rbp - 0x2d]
lea rcx, [rsi + 8]
movd xmm1, dword [rbp - 0x31]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.14001eac0
call fcn.140048e20
cmp byte [rbx + 0x58], 0
je 0x14001d096
mov eax, 0xffffffff
jmp 0x14001d0a3
mov rax, qword [0x1400e6f40]
mov eax, dword [rax + 0x4c80]
cmp dword [rdi + 0x28], eax
je 0x14001d0b0
mov dword [rdi + 0x28], eax
call fcn.140048cb0
call fcn.140048ff0
call fcn.140023450
mov rdi, qword [rbp - 0x79]
lea rdx, [rbp - 0x69]
movups xmm0, xmmword [rdi]
movsd xmm1, qword [rdi + 0x10]
movaps xmmword [rbp - 0x69], xmm0
movsd qword [rbp - 0x59], xmm1
call fcn.140007530
test r12b, r12b
je 0x14001d0ee
movzx ecx, r15b
call fcn.14001c6c0
mov r8d, 0x80088
jmp 0x14001d0f4
mov r8d, 0x800a8
mov rcx, qword [r13 + 0x58]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongW]
call fcn.140025060
call fcn.140025450
mov rcx, qword [r13 + 0xb8]
lea r8, [r13 + 0xc8]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0xf], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [r13 + 0xb8]
lea r8, [rbp + 0xf]
mov rdx, qword [r13 + 0xc8]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1400e6f40]
mov rcx, qword [rax + 0x48d8]
mov rax, qword [rcx]
xor ecx, ecx
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140047730
mov rcx, qword [r13 + 0xc0]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
test r15b, r15b
jne 0x14001cea1
mov r14, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14006f220
add rsp, 0xe8
pop r15
pop r13
pop r12
pop rbp
ret
mov rcx, r13
call fcn.14001d1f0
xor ecx, ecx
call fcn.140076160
int3