Function at 0x1400551bc
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.14004ca60
test rax, rax
je 0x1400553cb
mov rsi, rax
lea rcx, str.Localputty_connshare_mutex
mov rdx, rax
call fcn.1400554d8
mov rdi, rax
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov ecx, 0x1f0001
mov r9, r14
call fcn.140053d6e
test al, al
je 0x1400553ec
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 0x1400553fe
mov r12, rax
mov bpl, byte [rsp + 0xe8]
mov rcx, rdi
call fcn.1400088de
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.1400554d8
mov r15, rax
mov qword [r14], 0
test bpl, bpl
je 0x140055313
mov rcx, r15
mov rdx, rbx
call fcn.140052ce5
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x140055467
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rbx]
call fcn.1400088de
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x14009409c]
mov rdx, r15
mov r8, rax
call fcn.14004b68f
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 0x140055374
mov rcx, r15
mov rdx, r13
call fcn.140052d68
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x14005549e
mov rcx, qword [rbx]
call fcn.1400088de
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x14009409c]
mov rdx, r15
mov r8, rax
call fcn.14004b68f
mov qword [rbx], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r14], 0
jne 0x1400553a7
mov rax, qword [rsp + 0xd0]
cmp qword [rax], 0
jne 0x1400553a7
cmp qword [rbx], 0
jne 0x1400553a7
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0x86
call fcn.140065764
mov rcx, r15
call fcn.1400088de
mov rcx, rsi
call fcn.1400088de
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140055445
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.14004b68f
mov qword [r14], rax
jmp 0x140055445
mov rcx, rdi
call fcn.1400088de
mov rcx, rsi
call fcn.1400088de
jmp 0x140055445
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.14004b68f
mov qword [r14], rax
mov rcx, rdi
call fcn.1400088de
mov rcx, rsi
call fcn.1400088de
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.140057710
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.1400088de
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.1400088de
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x140055447
mov rcx, qword [r14]
call fcn.1400088de
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.1400088de
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x140055447