Function at 0x14005a710
Capabilities:
Check for foreground window switch

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp byte [rcx + 0x48], 0
mov r15, rcx
jne 0x14005aa1c
xor r12d, r12d
nop dword [rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x11]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005a7ac
nop
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp - 9], 0x12
je 0x14005aa1c
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x11]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14005a770
cmp dword [r15 + 0x1b0], 1
jne 0x14005a7c6
mov rcx, r15
call fcn.14005adf0
test al, al
je 0x14005aa1c
mov rbx, qword [0x14008e058]
test rbx, rbx
je 0x14005a7db
mov rax, qword [rbx + 0xa0]
jmp 0x14005a7de
mov rax, r12
cmp qword [rax + 0x48], r12
jne 0x14005a7f0
call fcn.14003e890
mov rbx, qword [0x14008e058]
test rbx, rbx
je 0x14005a7fe
mov rdi, qword [rbx + 0x98]
jmp 0x14005a801
mov rdi, r12
xorps xmm0, xmm0
lea rdx, [rbp - 0x39]
movdqu xmmword [rbp - 0x39], xmm0
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x31]
lea rcx, [rbp - 0x19]
sub eax, dword [rbp - 0x39]
mov qword [rbp - 0x19], r12
movd xmm1, eax
mov eax, dword [rbp - 0x2d]
sub eax, dword [rbp - 0x35]
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 - 0x19]
xorps xmm1, xmm1
mov rsi, qword [0x14008e058]
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 0x14005a886
mov r14, qword [rsi + 0x98]
jmp 0x14005a889
mov r14, r12
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [r14]
cmp rax, rcx
jne 0x14005a91b
cmp byte [rsi + 0xdb], r12b
je 0x14005a8dd
cvttss2si eax, dword [rsi + 0xe08]
lea rdx, [rbp - 0x29]
mov dword [rbp - 0x29], eax
cvttss2si eax, dword [rsi + 0xe0c]
mov dword [rbp - 0x25], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14005a8d4
mov edx, dword [rbp - 0x25]
mov ecx, dword [rbp - 0x29]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rsi + 0xdb], r12b
jne 0x14005a91b
cmp dword [r14 + 0x10], r12d
jne 0x14005a91b
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14005a91b
mov rcx, qword [r14]
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14005a91b
movd xmm2, dword [rbp - 0x1d]
lea rcx, [rsi + 8]
movd xmm1, dword [rbp - 0x21]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.140010d10
call fcn.14003f210
cmp byte [rbx + 0x78], r12b
je 0x14005a92d
mov eax, 0xffffffff
jmp 0x14005a93a
mov rax, qword [0x14008e058]
mov eax, dword [rax + 0x4a98]
cmp dword [rdi + 0x28], eax
je 0x14005a947
mov dword [rdi + 0x28], eax
call fcn.14003f0a0
call fcn.14003f3e0
call fcn.140015830
mov rcx, qword [r15 + 0x40]
test rcx, rcx
je 0x14005aa4c
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.140017910
movups xmm0, xmmword [r15 + 0xf0]
mov rcx, qword [0x14008e1c8]
lea r8, [0x14008e1d8]
xor r9d, r9d
movups xmmword [rbp + 0x1f], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x14008e1c8]
lea r8, [rbp + 0x1f]
mov rdx, qword [0x14008e1d8]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x14008e058]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14003de30
mov rcx, qword [0x14008e1d0]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
mov eax, dword [0x14008e1e4]
test eax, eax
je 0x14005aa12
cmp eax, 1
jne 0x14005a9fa
lea ecx, [rax + 0x1d]
jmp 0x14005aa0c
cmp eax, 2
jne 0x14005aa04
lea ecx, [rax + 0x30]
jmp 0x14005aa0c
cmp eax, 3
jne 0x14005aa12
lea ecx, [rax + 0x61]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [r15 + 0x48], r12b
je 0x14005a750
mov rcx, r15
call fcn.140058a20
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14005d0b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3