Function at 0x1400f7a78
Capabilities:
Check for foreground window switch

Disassembly:
jmp 0x140256980
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 [0x1403b30c0]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1403d3bab]
call fcn.1400fa363
nop
movzx eax, byte [0x1403bb9d0]
test eax, eax
je 0x140256cea
mov rcx, qword [rbp + 0x1b8]
call fcn.1400f747e
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140256a0d
mov byte [0x1403bb9d0], 0
jmp 0x140256cea
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]
nop
movzx eax, byte [0x1403bba30]
test eax, eax
je 0x140256a54
cmp dword [rbp + 0x24], 0
jne 0x140256a54
mov edx, 0x11
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
nop
jmp 0x140256a79
movzx eax, byte [0x1403bba30]
test eax, eax
jne 0x140256a79
cmp dword [rbp + 0x24], 0x11
jne 0x140256a79
xor edx, edx
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
nop
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 [0x1403bb9d1]
test eax, eax
je 0x140256ad1
mov eax, dword [rbp + 0x64]
cmp dword [0x1403b2c04], eax
je 0x140256ad1
mov r8d, 0x80088
mov edx, 0xffffffec
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowLongA]
nop
jmp 0x140256b04
movzx eax, byte [0x1403bb9d1]
test eax, eax
jne 0x140256b04
mov eax, dword [rbp + 0x64]
cmp dword [0x1403b2c08], eax
je 0x140256b04
mov r8d, 0x800a8
mov edx, 0xffffffec
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetWindowLongA]
nop
mov ecx, dword [0x1403bba3c]
call fcn.1400f7037
movzx eax, al
test eax, eax
je 0x140256bb0
movzx eax, byte [0x1403bb9c0]
test eax, eax
jne 0x140256bb0
movzx eax, byte [0x1403bb9d1]
test eax, eax
jne 0x140256b40
mov dword [rbp + 0x184], 1
jmp 0x140256b4a
mov dword [rbp + 0x184], 0
movzx eax, byte [rbp + 0x184]
mov byte [0x1403bb9d1], al
movzx eax, byte [0x1403bb9d1]
test eax, eax
je 0x140256b87
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax + 0x50]
cmp qword [rbp + 0x48], rax
je 0x140256b87
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
nop
jmp 0x140256ba7
movzx eax, byte [0x1403bb9d1]
test eax, eax
jne 0x140256ba7
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x48], rax
je 0x140256ba7
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
nop
mov byte [0x1403bb9c0], 1
jmp 0x140256bd4
mov ecx, dword [0x1403bba3c]
call fcn.1400f7037
movzx eax, al
test eax, eax
jne 0x140256bd4
movzx eax, byte [0x1403bb9c0]
test eax, eax
je 0x140256bd4
mov byte [0x1403bb9c0], 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]
nop
lea rdx, [rbp + 0xb8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_ClientToScreen]
nop
mov eax, dword [0x1403bb9e0]
cmp dword [rbp + 0x88], eax
jne 0x140256c72
mov eax, dword [0x1403bb9ec]
cmp dword [rbp + 0x94], eax
jne 0x140256c72
mov eax, dword [0x1403bb9e4]
cmp dword [rbp + 0x8c], eax
jne 0x140256c72
mov eax, dword [0x1403bb9e8]
cmp dword [rbp + 0x90], eax
jne 0x140256c72
mov eax, dword [0x1403bb9f0]
cmp dword [rbp + 0xb8], eax
jne 0x140256c72
mov eax, dword [0x1403bb9f4]
cmp dword [rbp + 0xbc], eax
je 0x140256cd9
lea rax, [0x1403bb9e0]
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 [0x1403bb9f0], rax
mov dword [rsp + 0x30], 8
mov eax, dword [0x1403bb9ec]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1403bb9e8]
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]
nop
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x1402569d0
mov rcx, qword [rbp + 0x1b8]
call fcn.1400f7938
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x140368610]
call fcn.1400f9a62
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.1400f880b
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret