Function at 0x14000f1f8
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rcx
xor edi, edi
mov byte [rsp + 0x30], dil
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x6a2
lea r9, str.NGUsageTracking::CKeepSchedule::IsAnotherInstanceRunning
lea r8, [0x1405c5eb8]
mov rdx, qword [0x1405c5f30]
lea rcx, [rbp - 0x40]
call fcn.1400169f8
nop
call fcn.140021b10
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
lea esi, [rdi + 7]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000ff84
nop
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], rdi
mov word [rbp - 0x80], di
lea r8d, [rdi + 0xd]
lea rdx, str._HPCustPartic
lea rcx, [rbp - 0x80]
call fcn.14000fde0
nop
mov r9, r14
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000fc3c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x80]
call fcn.14000f964
mov dword [rsp + 0x40], edi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea rsi, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rsi, qword [rsp + 0x60]
add rbx, 0x188
mov r8, rsi
lea rdx, [rsp + 0x48]
call fcn.1400136b0
nop
mov r8, qword [rax]
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rbx + 8], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000f355
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000f43f
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14000f43f
mov r8, rsi
lea rdx, [rsp + 0x50]
call fcn.1400137a0
nop
mov r8, qword [rax]
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x18], rax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000f3c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000f43f
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000f3ef
mov rax, qword [rbx + 0x10]
mov esi, dword [rax]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14000f3f3
mov esi, dword [rsp + 0x40]
mov qword [rbx + 0x28], rdi
lea rdx, [rbx + 0x20]
mov dword [rdx], esi
lea rcx, [0x140013890]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x14000f43a
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14000f43a
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14000f43a
mov edx, 1
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov dil, 1
jmp 0x14000f480
mov rcx, rbx
call fcn.140013664
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.140013520
test eax, eax
jne 0x14000f480
lea r9, str.CKeepSchedule::IsAnotherInstanceRunning:_FAILED_to_create_new_process
mov edx, 0x80
mov r8d, 0x6b6
lea rcx, [rbp - 0x40]
call fcn.140016e24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.14000f964
nop
lea rcx, [rbp - 0x40]
call fcn.140016b40
mov al, dil
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret