Function at 0x14000d228
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov rdi, rcx
call fcn.14000144c
xor r12d, r12d
mov rcx, rax
test rax, rax
je 0x14000d5e1
mov rax, qword [rax]
call qword [rax + 0x18]
mov bl, byte [rdi + 8]
lea rdx, str.C4F406E5_F024_4e3f_89A7_D5AB7663C3CD
add rax, 0x18
mov qword [rbp - 0x61], r12
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x6f]
lea rax, [0x140049998]
mov dword [rsp + 0x38], r12d
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x79], r12
mov dword [rbp - 0x71], r12d
call fcn.1400055c0
lea rcx, str._x64
call fcn.140034204
mov r8d, eax
lea rdx, str._x64
lea rcx, [rbp + 0x6f]
call fcn.1400057dc
mov rcx, qword [rbp + 0x6f]
lea r8, [rsp + 0x30]
mov dl, bl
call fcn.140004798
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 0x14000d2f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x30]
lea rax, [0x14004b0a0]
lea rcx, [rbp - 0x51]
mov qword [rbp - 0x59], rax
call fcn.1400055c0
mov r15, qword [rbp - 0x51]
xor edx, edx
mov r8, r15
mov qword [rbp - 0x49], r12
xor ecx, ecx
mov r14, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14000d340
mov r14, rax
mov qword [rbp - 0x49], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
jmp 0x14000d342
mov al, 1
test al, al
je 0x14000d39f
mov al, byte [0x140054b09]
lea rdx, [0x140054b10]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000d397
mov edx, 7
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x39], edx
mov dword [rbp - 0x35], 1
lea r8d, [rdx - 6]
call fcn.140008144
movzx r9d, byte [rdi + 8]
lea rdx, str._CrashHandler__Instance_is_already_running___d_bit___d_
mov r8d, 0x40
mov dword [rbp - 0x31], eax
lea rcx, [rbp - 0x41]
call fcn.140004120
mov ebx, r12d
jmp 0x14000d55f
mov cl, byte [rdi + 8]
lea rdx, [rdi + 0x10]
call fcn.140018ae8
mov ebx, eax
test eax, eax
jns 0x14000d3f4
mov al, byte [0x140054b09]
lea rdx, [0x140054b10]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000d55f
mov edx, 7
mov qword [rbp - 0x29], rcx
mov r8d, r13d
mov dword [rbp - 0x21], edx
mov dword [rbp - 0x1d], r13d
call fcn.140008144
mov dword [rbp - 0x19], eax
lea rdx, str._CrashHandler__Failed_to_init_crash_dir__0x_08x_
lea rcx, [rbp - 0x29]
jmp 0x14000d443
mov rcx, rdi
call fcn.14000d8cc
mov ebx, eax
test eax, eax
jns 0x14000d450
mov al, byte [0x140054b09]
lea rdx, [0x140054b10]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000d55f
mov edx, 7
mov qword [rbp - 0x11], rcx
mov r8d, r13d
mov dword [rbp - 9], edx
mov dword [rbp - 5], r13d
call fcn.140008144
mov dword [rbp - 1], eax
lea rdx, str._CrashHandler__Failed_to_start_Breakpad__0x_08x_
lea rcx, [rbp - 0x11]
mov r8d, ebx
call fcn.140004120
jmp 0x14000d55f
xorps xmm0, xmm0
mov dword [rsp + 0x20], r12d
mov r8d, 0x400
lea rcx, [rbp + 7]
mov r9d, r8d
xor edx, edx
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, 0x40
call fcn.1400335f4
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 rsi, qword [rdi + 0x28]
mov qword [rdi + 0x28], rbx
test rsi, rsi
je 0x14000d508
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14000d4fb
mov rdx, qword [rsi + 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14000d4ea
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d5ec
mov rcx, r8
call fcn.1400200bc
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x38], r12
mov edx, 0x40
mov rcx, rsi
call fcn.1400200bc
mov ecx, 0x28
call fcn.1400335f4
lea rcx, [0x14004ba00]
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 0x14000d53f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x30]
mov r9b, byte [rdi + 8]
mov r8, rdi
mov rdx, qword [rdi + 0x28]
mov rcx, rax
call fcn.140014918
mov ebx, eax
test eax, eax
js 0x14000d55f
call fcn.14000e804
mov ebx, eax
test r14, r14
je 0x14000d56d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [r15 - 0x18]
mov ecx, r13d
lock xadd dword [rdx + 0x10], ecx
add ecx, r13d
test ecx, ecx
jg 0x14000d589
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [0x140049998]
lea rcx, [rbp - 0x69]
mov qword [rbp - 0x69], rax
call fcn.140003874
mov rdx, qword [rsp + 0x30]
mov eax, r13d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14000d5be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
call fcn.140023a94
int3