Function at 0x1400550b4
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13, r9
mov rbx, r8
mov r14, qword [rsp + 0xc8]
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.14004ca74
test rax, rax
je 0x1400552c3
mov rsi, rax
lea rcx, str.Localputty_connshare_mutex
mov rdx, rax
call fcn.1400553d0
mov rdi, rax
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov ecx, 0x1f0001
mov r9, r14
call fcn.140053c66
test al, al
je 0x1400552e4
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rcx], 0x18
mov rax, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], 0
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
je 0x1400552f6
mov r12, rax
mov bpl, byte [rsp + 0xe8]
mov rcx, rdi
call fcn.140008872
mov rcx, qword [rsp + 0x48]
mov rdi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rdi
mov rcx, qword [rsp + 0x40]
call rdi
mov rcx, r12
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str..pipeputty_connshare
mov rdx, rsi
call fcn.1400553d0
mov r15, rax
mov qword [r14], 0
test bpl, bpl
je 0x14005520b
mov rcx, r15
mov rdx, rbx
call fcn.140052c05
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x14005535f
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rbx]
call fcn.140008872
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400940bc]
mov rdx, r15
mov r8, rax
call fcn.14004b6ab
mov qword [rbx], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rbx, qword [rsp + 0xd8]
cmp byte [rsp + 0xe0], 0
je 0x14005526c
mov rcx, r15
mov rdx, r13
call fcn.140052c74
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x140055396
mov rcx, qword [rbx]
call fcn.140008872
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400940bc]
mov rdx, r15
mov r8, rax
call fcn.14004b6ab
mov qword [rbx], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r14], 0
jne 0x14005529f
mov rax, qword [rsp + 0xd0]
cmp qword [rax], 0
jne 0x14005529f
cmp qword [rbx], 0
jne 0x14005529f
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0x86
call fcn.140065644
mov rcx, r15
call fcn.140008872
mov rcx, rsi
call fcn.140008872
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005533d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fa76
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.14004b6ab
mov qword [r14], rax
jmp 0x14005533d
mov rcx, rdi
call fcn.140008872
mov rcx, rsi
call fcn.140008872
jmp 0x14005533d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fa76
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.14004b6ab
mov qword [r14], rax
mov rcx, rdi
call fcn.140008872
mov rcx, rsi
call fcn.140008872
mov rcx, qword [rsp + 0x48]
mov rsi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
xor esi, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400575f0
mov eax, esi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r14]
call fcn.140008872
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.140008872
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x14005533f
mov rcx, qword [r14]
call fcn.140008872
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.140008872
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x14005533f