Function at 0x14003fd40
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 [0x1400e9938], r14
jne 0x14003fd77
call fcn.140024e00
mov rdi, qword [0x1400e9320]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400e9958]
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 [0x1400e9960]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1400e9968]
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400e9960], 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 [0x1400e9320]
lea rbx, [rcx + 0x118]
cmp byte [rcx + 0x3af], r14b
je 0x14003fe98
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 [0x1400e9958]
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 [0x1400e9958]
jne 0x14003fefc
lea rcx, [rbp + 0xc8]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14003fefc
lea rdx, [rbp + 0xc8]
mov rcx, qword [0x1400e9958]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14003fefc
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 0x14003ff0c
mov eax, 0xffffffff
jmp 0x14003ff19
mov rax, qword [0x1400e9320]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400e6868], eax
je 0x14003ff2c
mov dword [0x1400e6868], eax
call fcn.140024fe0
call fcn.1400067c0
cmp byte [0x1400c0cc5], 1
jne 0x14003ff89
mov rax, qword [0x1400e9320]
movsd xmm1, qword [rax + 0x1988]
cvtpd2ps xmm1, xmm1
movss xmm0, dword [0x1400e6300]
mulss xmm0, dword [0x1400b35f0]
cvttss2si r8d, xmm0
mov eax, dword [0x1400e98a0]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [0x1400e98a4]
cdq
sub eax, edx
sar eax, 1
movss dword [rsp + 0x20], xmm1
mov edx, ecx
mov ecx, eax
call fcn.14003ad90
call fcn.14003c880
lea rcx, [rbp + 0xd0]
call qword [sym.imp.USER32.dll_GetCursorPos]
movss xmm0, dword [0x1400c0ce8]
movss xmm2, dword [0x1400b3660]
mulss xmm0, xmm2
cvttss2si rbx, xmm0
movss xmm0, dword [0x1400c0cec]
mulss xmm0, xmm2
cvttss2si rdi, xmm0
movss xmm1, dword [0x1400c0cf0]
mulss xmm1, xmm2
cvttss2si rsi, xmm1
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14003fff6
mov ecx, 0x78
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004000f
cmp byte [0x1400e931c], r14b
sete byte [0x1400e931c]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
movss xmm7, dword [0x1400b3538]
cmp byte [0x1400e931c], r14b
je 0x140040231
mov r10, qword [0x1400e9320]
mov eax, esi
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
movsd xmm3, qword [0x1400b35d0]
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.140003160
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
lea r8d, [rdx - 5]
movd xmm0, r8d
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.14001f7a0
mov rbx, qword [0x1400e9320]
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
movaps xmm6, xmmword [0x1400b39f0]
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.140014080
movups xmmword [rbx + 0x1610], xmm6
movabs rax, 0x27b47de5d8c491c5
mov qword [rsp + 0x60], rax
movabs rax, 0xe46a3c209be26f12
mov qword [rsp + 0x68], rax
movabs rax, 0x55d31686b9a6b2e6
mov qword [rsp + 0x40], rax
movabs rax, 0xe46a3c20ff8c1a7d
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
mov r8d, 0x201f
lea rcx, [rsp + 0x40]
call fcn.14000a110
call fcn.14000d120
mov r8, qword [0x1400e9320]
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.14003e710
mov rax, qword [0x1400e9320]
mov byte [rax + 0xd0], 1
jmp 0x14004023f
mov rax, qword [0x1400e9320]
mov byte [rax + 0xd0], r14b
cmp byte [0x1400c0cc6], 1
jne 0x140040485
lea rax, [0x1400b3450]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x38], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 8], rax
mov dword [rbp + 0xc0], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call fcn.140047bd0
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.140049110
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.140049620
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.14004e42c
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 [0x1400e9320]
movss xmm1, dword [rax + 0x3b4]
mov rcx, rbx
call fcn.140045b70
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1400b3730]
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 0x14004038d
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x14004038d
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x1400403be
test cl, 4
jne 0x1400403b4
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400403b4
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x1400403be
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400403ce
lea rcx, [rsp + 0x40]
call fcn.1400491a0
nop
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
call fcn.140039f40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140040423
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004041d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004063e
call fcn.14004cd1c
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.1400458d0
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.14004e280
nop
mov rcx, qword [0x1400e9360]
cmp byte [0x1400c0cf4], 1
jne 0x14004049c
mov edx, 0x11
jmp 0x14004049e
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
call fcn.140007950
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x1400e93e0]
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 [0x1400e93e0]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004055d
call fcn.140007de0
mov rcx, qword [0x1400e9320]
add rcx, 0x1c70
cmp byte [rcx], 0
cmove rcx, r14
call fcn.140024520
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400e93e0]
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 0x140040620
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140040620
cmp qword [0x1400e9948], 0
je 0x140040604
mov rcx, qword [0x1400e9950]
test rcx, rcx
je 0x1400405c0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e9950], r14
mov rcx, qword [0x1400e9940]
test rcx, rcx
je 0x1400405d9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e9940], r14
mov rbx, qword [0x1400e9320]
mov rcx, qword [0x1400e9938]
test rcx, rcx
je 0x1400405f2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e9938], r14
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], r14
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
lea rdx, [0x1400e93a0]
call qword [rax + 0x80]
call fcn.140024e00
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.1400620f8
nop
int3