Function at 0x1400561f0
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 [0x140073010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp byte [rcx + 0x48], 0
mov r15, rcx
jne 0x140056505
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 0x14005628c
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 0x140056505
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 0x140056250
cmp dword [r15 + 0x1b0], 1
jne 0x1400562a6
mov rcx, r15
call fcn.1400568d0
test al, al
je 0x140056505
mov rbx, qword [0x14008ad28]
test rbx, rbx
je 0x1400562bb
mov rax, qword [rbx + 0xa0]
jmp 0x1400562be
mov rax, r12
cmp qword [rax + 0x48], r12
jne 0x1400562d0
call fcn.14003cdd0
mov rbx, qword [0x14008ad28]
test rbx, rbx
je 0x1400562de
mov rdi, qword [rbx + 0x98]
jmp 0x1400562e1
mov rdi, r12
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rbp - 0x39], xmm0
mov rcx, qword [rdi]
lea rdx, [rbp - 0x39]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x31]
lea rcx, [rbp - 0x19]
sub eax, dword [rbp - 0x39]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, eax
mov eax, dword [rbp - 0x2d]
sub eax, dword [rbp - 0x35]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vmovss dword [rbx + 0x14], xmm0
vmovss dword [rbx + 0x10], xmm1
mov qword [rbp - 0x19], r12
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x19]
mov rsi, qword [0x14008ad28]
mov rax, rcx
sub rax, qword [rdi + 0x18]
vxorps xmm1, xmm1, xmm1
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, qword [rdi + 0x20]
vcvtsi2ss xmm1, xmm1, rax
vdivss xmm1, xmm1, xmm0
vmovss dword [rbx + 0x18], xmm1
mov qword [rdi + 0x18], rcx
test rsi, rsi
je 0x14005636b
mov r14, qword [rsi + 0x98]
jmp 0x14005636e
mov r14, r12
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [r14]
cmp rax, rcx
jne 0x140056402
cmp byte [rsi + 0xdb], r12b
je 0x1400563c2
vcvttss2si eax, dword [rsi + 0xe08]
mov dword [rbp - 0x29], eax
lea rdx, [rbp - 0x29]
vcvttss2si eax, dword [rsi + 0xe0c]
mov dword [rbp - 0x25], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1400563b9
mov edx, dword [rbp - 0x25]
mov ecx, dword [rbp - 0x29]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rsi + 0xdb], r12b
jne 0x140056402
cmp dword [r14 + 0x10], r12d
jne 0x140056402
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140056402
mov rcx, qword [r14]
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140056402
vxorps xmm2, xmm2, xmm2
vcvtsi2ss xmm2, xmm2, dword [rbp - 0x1d]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, dword [rbp - 0x21]
lea rcx, [rsi + 8]
call fcn.14000f450
call fcn.14003d760
cmp byte [rbx + 0x78], r12b
je 0x140056414
mov eax, 0xffffffff
jmp 0x140056421
mov rax, qword [0x14008ad28]
mov eax, dword [rax + 0x4a98]
cmp dword [rdi + 0x28], eax
je 0x14005642e
mov dword [rdi + 0x28], eax
call fcn.14003d5f0
call fcn.14003d930
call fcn.140014170
mov rcx, qword [r15 + 0x40]
test rcx, rcx
je 0x140056535
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.140016310
mov rcx, qword [0x14008b018]
lea r8, [0x14008b028]
vmovups xmm0, xmmword [r15 + 0xf0]
xor r9d, r9d
vmovups xmmword [rbp + 0x1f], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x14008b018]
lea r8, [rbp + 0x1f]
mov rdx, qword [0x14008b028]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x14008ad28]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14003c350
mov rcx, qword [0x14008b020]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
mov eax, dword [0x14008b030]
test eax, eax
je 0x1400564fb
cmp eax, 1
jne 0x1400564e3
lea ecx, [rax + 0x1d]
jmp 0x1400564f5
cmp eax, 2
jne 0x1400564ed
lea ecx, [rax + 0x30]
jmp 0x1400564f5
cmp eax, 3
jne 0x1400564fb
lea ecx, [rax + 0x61]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [r15 + 0x48], r12b
je 0x140056230
mov rcx, r15
call fcn.140054320
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400583a0
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