Function at 0x140045800
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0xb8]
sub rsp, 0x190
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
xor r14d, r14d
mov dword [rbp + 0xc0], r14d
cmp qword [0x1400cfaa0], r14
jne 0x140045837
call fcn.140024910
mov rdi, qword [0x1400cf950]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400cfac0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
movss dword [rdi + 0x14], xmm1
lea rcx, [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
sub rax, qword [0x1400cfac8]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1400cfad0]
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400cfac8], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x130], al
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x131], al
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x132], al
mov byte [rdi + 0x133], r14b
mov rcx, qword [0x1400cf950]
lea rbx, [rcx + 0x118]
cmp byte [rcx + 0x3af], r14b
je 0x140045958
cvttss2si eax, dword [rbx]
mov dword [rbp + 0xc0], eax
cvttss2si eax, dword [rcx + 0x11c]
mov dword [rbp + 0xc4], eax
lea rdx, [rbp + 0xc0]
mov rcx, qword [0x1400cfac0]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0xc0]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1400cfac0]
jne 0x1400459bc
lea rcx, [rbp + 0xc8]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400459bc
lea rdx, [rbp + 0xc8]
mov rcx, qword [0x1400cfac0]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400459bc
movd xmm1, dword [rbp + 0xcc]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp + 0xc8]
cvtdq2ps xmm0, xmm0
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], r14b
je 0x1400459cc
mov eax, 0xffffffff
jmp 0x1400459d9
mov rax, qword [0x1400cf950]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400cd478], eax
je 0x1400459ec
mov dword [0x1400cd478], eax
call fcn.140024af0
call fcn.140006660
cmp byte [0x1400cf94a], 1
jne 0x140045a41
movss xmm0, dword [0x1400a7d14]
mulss xmm0, dword [0x140096e20]
cvttss2si r8d, xmm0
mov eax, dword [0x1400cfa58]
cdq
sub eax, edx
sar eax, 1
mov r10d, eax
mov eax, dword [0x1400cfa5c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rsp + 0x20], 0x64
lea r9, [0x1400cd0e0]
mov edx, r10d
call fcn.14003a860
lea rcx, [rbp + 0xd0]
call qword [sym.imp.USER32.dll_GetCursorPos]
movss xmm0, dword [0x1400a7d08]
movss xmm2, dword [0x140096ea8]
mulss xmm0, xmm2
cvttss2si rbx, xmm0
movss xmm0, dword [0x1400a7d0c]
mulss xmm0, xmm2
cvttss2si rdi, xmm0
movss xmm1, dword [0x1400a7d10]
mulss xmm1, xmm2
cvttss2si rsi, xmm1
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140045ac3
movzx eax, byte [0x1400cf94b]
test al, al
jne 0x140045aad
mov byte [0x1400cf94b], 1
jmp 0x140045ab8
cmp al, 1
jne 0x140045ab8
mov byte [0x1400cf94b], r14b
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
movss xmm7, dword [0x140096d84]
cmp byte [0x1400cf94b], r14b
je 0x140045ce2
mov r10, qword [0x1400cf950]
mov eax, esi
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
movsd xmm3, qword [0x140096e00]
divsd xmm0, xmm3
cvtpd2ps xmm4, xmm0
mov eax, edi
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm0, xmm3
cvtpd2ps xmm2, xmm0
mov eax, ebx
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, xmm3
cvtpd2ps xmm0, xmm1
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm2
movss dword [rsp + 0x48], xmm4
mov dword [rsp + 0x4c], 0x3f800000
lea rcx, [rsp + 0x40]
call fcn.140003060
mov r8d, dword [rbp + 0xd4]
lea ecx, [r8 + 5]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov rdx, qword [rbp + 0xd0]
lea ecx, [rdx + 5]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [rbp + 0xc0], xmm0
movss dword [rbp + 0xc4], xmm1
add r8d, 0xfffffffb
movd xmm1, r8d
cvtdq2ps xmm1, xmm1
add edx, 0xfffffffb
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [rbp + 0xc8], xmm0
movss dword [rbp + 0xcc], xmm1
mov dword [rsp + 0x28], 0xf
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov r9d, eax
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0xc8]
lea rcx, [r10 + 0x1cc8]
call fcn.14001f2c0
mov rbx, qword [0x1400cf950]
mov qword [rbx + 0x1ae4], r14
mov qword [rbx + 0x1aec], r14
mov dword [rbx + 0x1ac8], 2
movsd xmm0, qword [rbx + 0x10]
movsd qword [rbx + 0x1af4], xmm0
mov dword [rbx + 0x1acc], 2
movdqa xmm6, xmmword [0x1400972b0]
mov dword [rsp + 0x60], 2
movups xmm0, xmmword [rbx + 0x1610]
movups xmmword [rsp + 0x64], xmm0
lea rcx, [rbx + 0x1a78]
lea rdx, [rsp + 0x60]
call fcn.140013bd0
movups xmmword [rbx + 0x1610], xmm6
movabs rax, 0x6dc7a6ad598214c5
mov qword [rsp + 0x60], rax
movabs rax, 0xf5ff4ed4cec4ddf6
mov qword [rsp + 0x68], rax
movabs rax, 0x1fa0cdce38e037e6
mov qword [rsp + 0x40], rax
movabs rax, 0xf5ff4ed4aaaaa899
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
xor edx, edx
mov r8d, 0x201f
lea rcx, [rsp + 0x60]
call fcn.140009f30
call fcn.14000ce50
mov r8, qword [0x1400cf950]
movsxd rax, dword [r8 + 0x1a78]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1a80]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, 0x15f
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8], xmm0
dec dword [r8 + 0x1a78]
call fcn.140044210
mov rax, qword [0x1400cf950]
mov byte [rax + 0xd0], 1
jmp 0x140045cf0
mov rax, qword [0x1400cf950]
mov byte [rax + 0xd0], r14b
cmp byte [0x1400a7ce5], 1
jne 0x140045f60
lea rax, [0x140096bb0]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
mov dword [rbp + 0x20], r14d
mov qword [rbp + 0x28], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 8], rax
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x60], r14b
mov dword [rbp + 0xc0], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call fcn.14004dac0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14004e5b0
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], 4
lea rdx, str.FPS:
lea rcx, [rbp - 0x80]
call fcn.14004ed70
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
btr ecx, 0xc
bts ecx, 0xd
mov dword [rdx + rax + 0x18], ecx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140053f5c
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rax, qword [0x1400cf950]
movss xmm1, dword [rax + 0x3b4]
mov rcx, rbx
call fcn.14004bb80
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x140096f80]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x40], 0
mov dword [rbp + 0xc0], 5
movups xmmword [rsp + 0x60], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140045e57
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140045e57
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140045e88
test cl, 4
jne 0x140045e7e
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140045e7e
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140045e88
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140045e98
lea rcx, [rsp + 0x40]
call fcn.14004e9d0
nop
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r9, qword [rsp + 0x40]
lea r8, [0x1400ccf20]
mov edx, 0x2c
mov ecx, 0x1e
call fcn.140039de0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140045efe
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045ef8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046120
call fcn.140052a9c
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rdi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14004b6b0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140053d84
nop
mov rcx, qword [0x1400cf998]
cmp byte [0x1400a7cf7], 1
jne 0x140045f77
mov edx, 0x11
jmp 0x140045f79
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
call fcn.140041550
call fcn.140007770
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 7
call qword [rax + 0x1c8]
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x1b
call qword [rax + 0x1c8]
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r14d
movss dword [rsp + 0x28], xmm7
mov dword [rsp + 0x20], r14d
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004603f
call fcn.140007c20
mov rcx, qword [0x1400cf950]
add rcx, 0x1c70
cmp byte [rcx], 0
cmove rcx, r14
call fcn.140024000
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140046102
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140046102
cmp qword [0x1400cfab0], 0
je 0x1400460e6
mov rcx, qword [0x1400cfab8]
test rcx, rcx
je 0x1400460a2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400cfab8], r14
mov rcx, qword [0x1400cfaa8]
test rcx, rcx
je 0x1400460bb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400cfaa8], r14
mov rbx, qword [0x1400cf950]
mov rcx, qword [0x1400cfaa0]
test rcx, rcx
je 0x1400460d4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400cfaa0], r14
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], r14
mov rcx, qword [0x1400cfa40]
mov rax, qword [rcx]
lea rdx, [0x1400cf9f0]
call qword [rax + 0x80]
call fcn.140024910
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x170]
add rsp, 0x190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400667d0
nop
int3