Function at 0x1400f5a7d
Capabilities:
Check for foreground window switch

Disassembly:
jmp 0x1402511e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1d0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1403ad0c0]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1403cdb9a]
call fcn.1400f8363
movzx eax, byte [0x1403b59c0]
test eax, eax
je 0x14025153e
mov rcx, qword [rbp + 0x1b8]
call fcn.1400f5483
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14025126c
mov byte [0x1403b59c0], 0
jmp 0x14025153e
mov dword [rbp + 0x24], 0
lea rdx, [rbp + 0x24]
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
movzx eax, byte [0x1403b5a20]
test eax, eax
je 0x1402512b1
cmp dword [rbp + 0x24], 0
jne 0x1402512b1
mov edx, 0x11
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
jmp 0x1402512d5
movzx eax, byte [0x1403b5a20]
test eax, eax
jne 0x1402512d5
cmp dword [rbp + 0x24], 0x11
jne 0x1402512d5
xor edx, edx
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 0x48], rax
mov edx, 0xffffffec
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [rbp + 0x64], eax
movzx eax, byte [0x1403b59c1]
test eax, eax
je 0x14025132c
mov eax, dword [rbp + 0x64]
cmp dword [0x1403acc04], eax
je 0x14025132c
mov r8d, 0x80088
mov edx, 0xffffffec
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x14025135e
movzx eax, byte [0x1403b59c1]
test eax, eax
jne 0x14025135e
mov eax, dword [rbp + 0x64]
cmp dword [0x1403acc08], eax
je 0x14025135e
mov r8d, 0x800a8
mov edx, 0xffffffec
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x1403b5a2c]
call fcn.1400f5037
movzx eax, al
test eax, eax
je 0x140251408
movzx eax, byte [0x1403b59b0]
test eax, eax
jne 0x140251408
movzx eax, byte [0x1403b59c1]
test eax, eax
jne 0x14025139a
mov dword [rbp + 0x184], 1
jmp 0x1402513a4
mov dword [rbp + 0x184], 0
movzx eax, byte [rbp + 0x184]
mov byte [0x1403b59c1], al
movzx eax, byte [0x1403b59c1]
test eax, eax
je 0x1402513e0
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax + 0x50]
cmp qword [rbp + 0x48], rax
je 0x1402513e0
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x1402513ff
movzx eax, byte [0x1403b59c1]
test eax, eax
jne 0x1402513ff
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x48], rax
je 0x1402513ff
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov byte [0x1403b59b0], 1
jmp 0x14025142c
mov ecx, dword [0x1403b5a2c]
call fcn.1400f5037
movzx eax, al
test eax, eax
jne 0x14025142c
movzx eax, byte [0x1403b59b0]
test eax, eax
je 0x14025142c
mov byte [0x1403b59b0], 0
lea rax, [rbp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rbp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp + 0xb8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x1403b59d0]
cmp dword [rbp + 0x88], eax
jne 0x1402514c8
mov eax, dword [0x1403b59dc]
cmp dword [rbp + 0x94], eax
jne 0x1402514c8
mov eax, dword [0x1403b59d4]
cmp dword [rbp + 0x8c], eax
jne 0x1402514c8
mov eax, dword [0x1403b59d8]
cmp dword [rbp + 0x90], eax
jne 0x1402514c8
mov eax, dword [0x1403b59e0]
cmp dword [rbp + 0xb8], eax
jne 0x1402514c8
mov eax, dword [0x1403b59e4]
cmp dword [rbp + 0xbc], eax
je 0x14025152e
lea rax, [0x1403b59d0]
lea rcx, [rbp + 0x88]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0xb8]
mov qword [0x1403b59e0], rax
mov dword [rsp + 0x30], 8
mov eax, dword [0x1403b59dc]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1403b59d8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0xbc]
mov r8d, dword [rbp + 0xb8]
xor edx, edx
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14025122f
mov rcx, qword [rbp + 0x1b8]
call fcn.1400f593d
lea rcx, [rbp - 0x40]
lea rdx, [0x140363570]
call fcn.1400f7a62
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.1400f6810
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret