Function at 0x180003670
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x180054040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea rax, vtable.PRY8EAlByw::CSharedMemory.0
mov qword [rcx], rax
lea rbx, [rcx + 8]
mov rcx, rbx
call fcn.180004420
nop
mov qword [rdi + 0x28], r15
mov qword [rdi + 0x30], r15
mov qword [rdi + 0x38], r15
mov rcx, qword [rbx + 0x10]
movabs r14, 0x7ffffffffffffffe
mov rax, r14
sub rax, rcx
cmp rax, 0x13
jb 0x18000394b
mov r9, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1800036f9
mov r9, qword [rbx]
mov qword [rsp + 0x30], 0x13
lea rax, str._SharedMemory_Mutex
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x78]
call fcn.180005f10
nop
mov rax, qword [rbx + 0x10]
sub r14, rax
cmp r14, 0x15
jb 0x180003951
cmp qword [rbx + 0x18], 7
jbe 0x180003739
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0x15
lea rcx, str._SharedMemory_Mapping
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rcx, [rsp + 0x58]
call fcn.180005f10
lea r8, [rsp + 0x78]
cmp qword [rsp + 0x90], 7
cmova r8, qword [rsp + 0x78]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x28], rax
test rax, rax
je 0x180003832
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180003832
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor edx, edx
mov rcx, 0xffffffffffffffff
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rdi + 0x40], r15d
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x180003823
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x180003823
mov dword [rdi + 0x40], ebp
cmp ebx, 0xb7
je 0x180003823
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.180040d30
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x180003832
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x180003874
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000386f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003957
call fcn.180016020
movdqa xmm0, xmmword [0x18004db90]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r15w
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x1800038ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800038c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000393f
call fcn.180016020
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x180003905
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x180003900
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003945
mov rcx, r8
call fcn.180016020
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov rax, rdi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180016000
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180020d70
nop
call fcn.180020d70
nop
call fcn.180001400
nop
call fcn.180001400
int3
call fcn.180020d70
int3