Function at 0x1400b7890
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140292cc0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rcx
mov qword [rbp - 0x19], rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], 0xffffffffffffffff
mov qword [rcx + 0x10], 0xffffffffffffffff
lea ecx, [r12 + 0x20]
call fcn.140155b38
mov rdi, rax
add rax, 8
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
and qword [rax], 1
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
and qword [rax], 0xfffffffffffffffe
mov qword [rdi], r12
test dil, 3
je 0x1400b7930
lea r8d, [r12 + 0x74]
lea rdx, str.C:UsersJamieDocumentsNVIDIANV_TOOLS_boost_boost_1.67.0_boost_interprocess_detail_windows_intermodule_singleton.hpp
lea rcx, str._caster.addr_uint64__boost::uint64_t_3____0
call fcn.140198b88
mov rsi, rdi
shr rsi, 0x20
mov r15d, edi
shr r15d, 2
test esi, 0xc0000000
je 0x1400b795f
mov r8d, 0x79
lea rdx, str.C:UsersJamieDocumentsNVIDIANV_TOOLS_boost_boost_1.67.0_boost_interprocess_detail_windows_intermodule_singleton.hpp
lea rcx, str._max_count__boost::uint32_t_0xC0000000____0
call fcn.140198b88
bts esi, 0x1e
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], 0xf
mov byte [rbp + 0xf], 0
mov qword [rbp - 1], r12
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
lea rcx, [rbp + 0xf]
call fcn.1400b73c0
mov r8d, 0x13
lea rdx, str.bipc_gmap_sem_lock_
lea rcx, [rbp - 0x11]
call fcn.14009b400
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.14009b600
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae r8, qword [rbp - 0x11]
cmp qword [rbx], 0
jne 0x1400b79e7
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx], rax
test rax, rax
setne r14b
jmp 0x1400b79ea
xor r14b, r14b
mov r8d, 0x14
lea rdx, str.bipc_gmap_sem_count_
lea rcx, [rbp - 0x11]
call fcn.14009b400
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.14009b600
mov qword [rbp - 0x31], rbx
mov rcx, qword [rbx]
call fcn.1400b7700
mov byte [rbp - 0x29], 1
test r14b, r14b
je 0x1400b7a6b
lea r9, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae r9, qword [rbp - 0x11]
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x1400b7a6b
xor edx, edx
xor ecx, ecx
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x1400b7a6b
mov r14b, 1
jmp 0x1400b7a6e
xor r14b, r14b
mov r8d, 0x12
lea rdx, str.bipc_gmap_sem_map_
lea rcx, [rbp - 0x11]
call fcn.14009b400
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov r8, qword [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.14009b600
test r14b, r14b
je 0x1400b7bf2
lea r9, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae r9, qword [rbp - 0x11]
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x1400b7bf2
mov r8d, esi
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x1400b7bf2
test al, al
jne 0x1400b7b07
mov rcx, rdi
call fcn.1400bb080
mov edx, 0x20
mov rcx, rdi
call fcn.140155e38
jmp 0x1400b7b2d
mov rcx, rbx
call fcn.1400b7c40
cmp rax, rdi
je 0x1400b7b2d
mov r8d, 0x97
lea rdx, str.C:UsersJamieDocumentsNVIDIANV_TOOLS_boost_boost_1.67.0_boost_interprocess_detail_windows_intermodule_singleton.hpp
lea rcx, str.get_map_unlocked____m
call fcn.140198b88
lea r8, [rbp - 0x39]
mov edx, 1
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rbp - 0x31]
call fcn.1400ba430
nop
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x1400b7b94
inc rax
mov rcx, qword [rbp - 0x11]
test r12b, r12b
jne 0x1400b7b8e
cmp rax, 0x1000
jb 0x1400b7b87
test cl, 0x1f
jne 0x1400b7b8e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400b7b8e
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400b7b8e
mov rcx, rax
call fcn.140155e30
jmp 0x1400b7b94
call fcn.140198e94
int3
mov qword [rbp - 1], r12
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov rax, qword [rbp + 0x27]
cmp rax, 0x10
jb 0x1400b7bed
inc rax
mov rcx, qword [rbp + 0xf]
test r12b, r12b
jne 0x1400b7be7
cmp rax, 0x1000
jb 0x1400b7be0
test cl, 0x1f
jne 0x1400b7be7
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400b7be7
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400b7be7
mov rcx, rax
call fcn.140155e30
jmp 0x1400b7bed
call fcn.140198e94
nop
mov rax, rbx
jmp 0x1400b7c0f
mov rcx, rdi
call fcn.1400b7ce0
mov dword [rbp - 0x39], r12d
lea rdx, [0x1402540f8]
lea rcx, [rbp - 0x39]
call fcn.14018a240
nop
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401557c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret