Function at 0x140053510
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 [0x14006f010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp byte [rcx + 0x48], 0
mov r14, rcx
jne 0x140053825
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 0x1400535ac
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 0x140053825
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 0x140053570
cmp dword [r14 + 0x1b0], 1
jne 0x1400535c6
mov rcx, r14
call fcn.140053bf0
test al, al
je 0x140053825
cmp byte [0x14006f05d], r12b
je 0x1400535de
mov rcx, qword [r14 + 0x50]
mov edx, 0x11
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov rbx, qword [0x140070848]
test rbx, rbx
je 0x1400535f3
mov rax, qword [rbx + 0xa0]
jmp 0x1400535f6
mov rax, r12
cmp qword [rax + 0x48], r12
jne 0x140053608
call fcn.14003a190
mov rbx, qword [0x140070848]
test rbx, rbx
je 0x140053616
mov rdi, qword [rbx + 0x98]
jmp 0x140053619
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 [0x140070848]
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 0x1400536a3
mov r15, qword [rsi + 0x98]
jmp 0x1400536a6
mov r15, r12
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [r15]
cmp rax, rcx
jne 0x14005373a
cmp byte [rsi + 0xdb], r12b
je 0x1400536fa
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 0x1400536f1
mov edx, dword [rbp - 0x25]
mov ecx, dword [rbp - 0x29]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rsi + 0xdb], r12b
jne 0x14005373a
cmp dword [r15 + 0x10], r12d
jne 0x14005373a
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14005373a
mov rcx, qword [r15]
lea rdx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14005373a
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.14000c8f0
call fcn.14003ab20
cmp byte [rbx + 0x78], r12b
je 0x14005374c
mov eax, 0xffffffff
jmp 0x140053759
mov rax, qword [0x140070848]
mov eax, dword [rax + 0x4a98]
cmp dword [rdi + 0x28], eax
je 0x140053766
mov dword [rdi + 0x28], eax
call fcn.14003a9b0
call fcn.14003acf0
call fcn.140011670
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x140053855
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.140013810
mov rcx, qword [0x140070b38]
lea r8, [0x140070b48]
vmovups xmm0, xmmword [r14 + 0xf0]
xor r9d, r9d
vmovups xmmword [rbp + 0x1f], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x140070b38]
lea r8, [rbp + 0x1f]
mov rdx, qword [0x140070b48]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x140070848]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.140039710
mov rcx, qword [0x140070b40]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x40]
cmp byte [0x140070b51], 1
jne 0x14005381b
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [r14 + 0x48], r12b
je 0x140053550
mov rcx, r14
call fcn.140051680
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140055610
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