Function at 0x14000e280
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rdi, rcx
call fcn.1400014ec
xor r12d, r12d
mov rcx, rax
test rax, rax
je 0x14000e685
mov rax, qword [rax]
call qword [rax + 0x18]
mov bl, byte [rdi + 8]
lea rdx, str.08DA086F_9FC4_4B2E_954C_6D7D5ACD5167
add rax, 0x18
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x61], rax
lea rcx, [rbp + 0x6f]
lea rax, [0x140045cb8]
mov dword [rbp - 0x59], r12d
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x51], r12
mov dword [rbp - 0x49], r12d
call fcn.140005590
lea rcx, str._x64
call fcn.140030300
mov r8d, eax
lea rdx, str._x64
lea rcx, [rbp + 0x6f]
call fcn.140005710
mov rcx, qword [rbp + 0x6f]
lea r8, [rbp - 0x61]
mov dl, bl
call fcn.140004c0c
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or r13d, 0xffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000e341
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x61]
lea rax, [0x140047688]
lea rcx, [rbp - 0x71]
mov qword [rbp - 0x79], rax
call fcn.140005590
mov r15, qword [rbp - 0x71]
xor edx, edx
mov r8, r15
mov qword [rbp - 0x69], r12
xor ecx, ecx
mov rsi, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14000e4fd
mov rsi, rax
mov qword [rbp - 0x69], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e4fd
mov cl, byte [rdi + 8]
lea rdx, [rdi + 0x10]
call fcn.1400183d4
mov ebx, eax
test eax, eax
jns 0x14000e3df
mov al, byte [0x140052db1]
lea rdx, [0x140052c70]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000e54f
mov r8d, r13d
mov qword [rbp - 0x79], rcx
mov dword [rbp - 0x71], 7
mov dword [rbp - 0x6d], r13d
call fcn.1400085a0
lea rdx, str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
jmp 0x14000e426
mov rcx, rdi
call fcn.14000e968
mov ebx, eax
test eax, eax
jns 0x14000e43a
mov al, byte [0x140052db1]
lea rdx, [0x140052c70]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000e54f
mov r8d, r13d
mov qword [rbp - 0x79], rcx
mov dword [rbp - 0x71], 7
mov dword [rbp - 0x6d], r13d
call fcn.1400085a0
lea rdx, str._CrashHandler__Failed_to_start_Breakpad__0x_08x_
mov r8d, ebx
mov dword [rbp - 0x69], eax
lea rcx, [rbp - 0x79]
call fcn.14000427c
jmp 0x14000e54f
xorps xmm0, xmm0
mov dword [rsp + 0x20], r12d
mov r8d, 0x400
lea rcx, [rbp - 0x11]
mov r9d, r8d
xor edx, edx
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, 0x40
call fcn.140037c10
mov rcx, rax
mov rbx, rax
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
mov qword [rax + 0x38], r12
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r14, qword [rdi + 0x28]
mov qword [rdi + 0x28], rbx
test r14, r14
je 0x14000e4a7
mov rcx, r14
call fcn.140013ff8
mov edx, 0x40
mov rcx, r14
call fcn.140020374
mov ecx, 0x28
call fcn.140037c10
lea rcx, [0x140047f90]
mov qword [rax], rcx
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x30], rax
test rcx, rcx
je 0x14000e4da
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r9b, byte [rdi + 8]
mov r8, rdi
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x30]
call fcn.140013e30
mov ebx, eax
test eax, eax
js 0x14000e54f
call fcn.14000f9c4
mov ebx, eax
jmp 0x14000e54f
mov al, byte [0x140052db1]
lea rdx, [0x140052c70]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000e54c
mov r8d, 1
mov qword [rbp - 0x79], rcx
mov dword [rbp - 0x6d], r8d
mov dword [rbp - 0x71], 7
call fcn.1400085a0
movzx r9d, byte [rdi + 8]
lea rdx, str._CrashHandler__Instance_is_already_running___d_bit___d_
mov r8d, 0x40
mov dword [rbp - 0x69], eax
lea rcx, [rbp - 0x79]
call fcn.14000427c
mov ebx, r12d
test rsi, rsi
je 0x14000e55d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [r15 - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000e579
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x39]
lea rax, [0x140045cb8]
mov qword [rbp - 0x41], rax
test rcx, rcx
je 0x14000e648
lea r8, [rbp + 0x77]
mov word [rbp + 0x6f], r12w
lea rdx, [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x14000e63b
mov eax, 0x8000
test word [rbp + 0x6f], ax
jne 0x14000e63b
mov rcx, qword [rbp - 0x39]
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
mov rcx, qword [rbp - 0x31]
call fcn.1400258c8
mov rcx, qword [rbp - 0x39]
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
mov rcx, qword [rbp - 0x29]
call fcn.1400258c8
mov rcx, qword [rbp - 0x39]
lea r9, [rbp + 0x77]
lea r8, [rbp - 0x21]
lea rdx, [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [rbp + 0x7f], r12d
je 0x14000e616
mov rcx, qword [rbp - 0x21]
call fcn.1400258c8
mov rcx, qword [rbp - 0x39]
lea r9, [rbp + 0x77]
lea r8, [rbp - 0x19]
lea rdx, [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [rbp + 0x7f], r12d
je 0x14000e63b
mov rcx, qword [rbp - 0x19]
call fcn.1400258c8
mov rcx, qword [rbp - 0x39]
call fcn.1400258c8
mov qword [rbp - 0x39], r12
mov rdx, qword [rbp - 0x61]
mov eax, r13d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000e668
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400013e0
int3