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

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [r11 + 8], rbx
xorps xmm0, xmm0
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
xor r14d, r14d
movaps xmmword [r11 - 0x18], xmm6
movss xmm6, dword [0x14004a33c]
mov qword [r11 + 0x10], rsi
movups xmmword [0x140052d58], xmm0
movups xmmword [0x140052d68], xmm0
movups xmmword [0x140052d78], xmm0
nop word [rax + rax]
mov rdx, qword [0x140052d88]
lea rcx, [0x140052d58]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140040410
lea rcx, [0x140052d58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x140052d58]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x140052d40]
cmp rax, rcx
jne 0x14004045f
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x140052d88]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140052d40]
xorps xmm0, xmm0
mov qword [rbp + 7], r14
lea rdx, [rbp + 0x17]
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x140052d40]
lea rdx, [rbp + 7]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp + 7]
lea rcx, [rbp + 0x27]
mov rbx, qword [0x140052d20]
mov dword [rbp + 0x17], eax
mov eax, dword [rbp + 0xb]
mov dword [rbp + 0x1b], eax
mov rax, qword [0x140052d40]
mov qword [rbx + 0x108], rax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x27]
mov ecx, 1
sub eax, dword [rbp + 7]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x118], xmm0
mov eax, dword [rbp + 0x2b]
sub eax, dword [rbp + 0xb]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004050d
mov byte [rbx + 0x120], 1
mov eax, dword [rbx + 0x11c]
mov dword [rbx + 0x3dc], eax
mov byte [rbx + 0x430], 1
jmp 0x140040514
mov byte [rbx + 0x120], r14b
mov eax, dword [0x140053370]
mov ecx, dword [rbp + 0x23]
mov edx, dword [rbp + 0x1f]
cmp dword [rbp + 0x17], eax
jne 0x140040540
cmp edx, dword [0x140053378]
jne 0x140040540
mov eax, dword [0x140053374]
cmp dword [rbp + 0x1b], eax
jne 0x140040540
cmp ecx, dword [0x14005337c]
je 0x1400405a1
movups xmm0, xmmword [rbp + 0x17]
mov r9d, dword [rbp + 0xb]
mov r8d, dword [rbp + 7]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [0x140052e4c], edx
mov dword [0x140052e48], ecx
mov dword [0x140052df0], edx
xor edx, edx
mov dword [0x140052df4], ecx
mov rcx, qword [0x140052d88]
movups xmmword [0x140053370], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140052e30]
lea rdx, [0x140052df0]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp qword [0x140052e70], r14
jne 0x1400405af
call fcn.140025010
mov rcx, qword [0x140052e90]
lea rdx, [rbp - 9]
mov rdi, qword [0x140052d20]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 1]
lea rcx, [rbp + 0x2f]
sub eax, dword [rbp - 9]
movd xmm1, eax
mov eax, dword [rbp + 3]
sub eax, dword [rbp - 5]
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 + 0x2f]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140052e98]
cvtsi2ss xmm0, qword [0x140052ea0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140052e98], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x140052d20]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], r14b
mov byte [rdi + 0x132], al
lea rbx, [rcx + 0x118]
cmp byte [rcx + 0x3af], r14b
je 0x1400406b6
cvttss2si eax, dword [rbx]
lea rdx, [rbp + 0xf]
mov dword [rbp + 0xf], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x140052e90]
mov dword [rbp + 0x13], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp + 0x13]
mov ecx, dword [rbp + 0xf]
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 [0x140052e90]
jne 0x14004070e
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14004070e
mov rcx, qword [0x140052e90]
lea rdx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14004070e
movd xmm0, dword [rbp - 0x11]
movd xmm1, dword [rbp - 0xd]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], r14b
je 0x14004071e
mov eax, 0xffffffff
jmp 0x14004072b
mov rax, qword [0x140052d20]
mov eax, dword [rax + 0x1d70]
cmp dword [0x140052208], eax
je 0x14004073e
mov dword [0x140052208], eax
call fcn.140025180
call fcn.1400064d0
call fcn.14003c7e0
mov ecx, dword [0x1400525f0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400407ea
cmp byte [0x140053385], r14b
je 0x1400407ea
mov rcx, qword [0x140052dc8]
mov rsi, qword [0x140052da0]
add rcx, 0xa68
call fcn.1400415a0
lea rcx, [rax + 0x510]
call fcn.1400415a0
lea rcx, [rax + 0x40]
call fcn.1400415a0
mov rdi, rax
test rax, rax
jne 0x1400407ba
xorps xmm0, xmm0
mov qword [rbp - 0x29], r14
movups xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x39], r14b
mov qword [rbp - 0x21], 0xf
jmp 0x1400407de
lea rcx, [rax + 0x28]
call fcn.1400415a0
lea rcx, [rdi + 0x30]
mov rbx, rax
call fcn.1400416a0
mov r8d, eax
lea rcx, [rbp - 0x39]
mov rdx, rbx
call fcn.140039570
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.14003c680
mov ecx, dword [0x1400525f4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140040842
cmp byte [0x14005338c], r14b
je 0x140040842
mov eax, dword [0x140052ecc]
test eax, eax
jne 0x14004081e
mov ecx, 0x6e
call fcn.14003bf60
mov eax, dword [0x140052ecc]
cmp eax, 1
jne 0x140040833
mov ecx, 0x43
call fcn.14003bf60
mov eax, dword [0x140052ecc]
cmp eax, 2
jne 0x140040842
mov ecx, 0x25
call fcn.14003bf60
mov ecx, dword [0x1400525f0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004087e
cmp byte [0x140053385], r14b
je 0x14004087e
mov r8, qword [0x140052dc8]
lea rdx, [rbp - 0x39]
mov rbx, qword [0x140052da0]
call fcn.140038b00
mov rdx, rbx
mov rcx, rax
call fcn.14003c680
call fcn.14003af30
call fcn.140007640
mov rcx, qword [0x140052e30]
xor r8d, r8d
mov edx, 7
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140052e30]
xor r8d, r8d
mov edx, 0x1b
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140052e30]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140052e30]
mov r9d, 1
mov dword [rsp + 0x30], r14d
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x140052e30]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004093f
call fcn.140007af0
mov rax, qword [0x140052d20]
mov rcx, r14
add rax, 0x1c70
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140024710
mov rcx, qword [0x140052e30]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140052e30]
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 0x140040a01
mov rcx, qword [0x140052e30]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140040a01
cmp qword [0x140052e80], r14
je 0x1400409e5
mov rcx, qword [0x140052e88]
test rcx, rcx
je 0x1400409a1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140052e88], r14
mov rcx, qword [0x140052e78]
test rcx, rcx
je 0x1400409ba
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140052e78], r14
mov rcx, qword [0x140052e70]
mov rbx, qword [0x140052d20]
test rcx, rcx
je 0x1400409d3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140052e70], r14
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], r14
mov rcx, qword [0x140052e30]
lea rdx, [0x140052df0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140025010
cmp dword [0x140052d60], 0x12
jne 0x1400403d0
cmp qword [0x140052e80], r14
movaps xmm6, xmmword [rsp + 0xc0]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
je 0x140040a8c
mov rcx, qword [0x140052e88]
test rcx, rcx
je 0x140040a48
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140052e88], r14
mov rcx, qword [0x140052e78]
test rcx, rcx
je 0x140040a61
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140052e78], r14
mov rcx, qword [0x140052e70]
mov rbx, qword [0x140052d20]
test rcx, rcx
je 0x140040a7a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140052e70], r14
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], r14
mov rbx, qword [0x140052d20]
mov rcx, rbx
mov qword [0x140052e80], r14
mov qword [0x140052e90], r14
call fcn.140006d60
cmp qword [0x140052d20], rbx
jne 0x140040ab9
mov qword [0x140052d20], r14
mov r14, qword [rsp + 0xf8]
test rbx, rbx
je 0x140040ae9
mov rcx, rbx
call fcn.140014d90
mov rax, qword [0x140052d20]
test rax, rax
je 0x140040ae0
dec dword [rax + 0x3c8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140052e30]
mov rbx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140040b13
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140052e30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140052d90]
test rcx, rcx
je 0x140040b25
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140052d88]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [0x140052d68]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140042880
add rsp, 0xd0
pop rbp
ret