Function at 0x14007f69c
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140065c14
test rax, rax
je 0x14007f8ab
mov rsi, rax
lea rcx, str.Localputty_connshare_mutex
mov rdx, rax
call fcn.14007f9b8
mov rdi, rax
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov ecx, 0x1f0001
mov r9, r14
call fcn.14007eb1a
test al, al
je 0x14007f8cc
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 0x14007f8de
mov r12, rax
mov bpl, byte [rsp + 0xe8]
mov rcx, rdi
call fcn.140012312
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.14007f9b8
mov r15, rax
mov qword [r14], 0
test bpl, bpl
je 0x14007f7f3
mov rcx, r15
mov rdx, rbx
call fcn.14007d695
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x14007f947
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rbx]
call fcn.140012312
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400be0d4]
mov rdx, r15
mov r8, rax
call fcn.14006496f
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 0x14007f854
mov rcx, r15
mov rdx, r13
call fcn.14007d704
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x14007f97e
mov rcx, qword [rbx]
call fcn.140012312
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400be0d4]
mov rdx, r15
mov r8, rax
call fcn.14006496f
mov qword [rbx], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r14], 0
jne 0x14007f887
mov rax, qword [rsp + 0xd0]
cmp qword [rax], 0
jne 0x14007f887
cmp qword [rbx], 0
jne 0x14007f887
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0x86
call fcn.140090118
mov rcx, r15
call fcn.140012312
mov rcx, rsi
call fcn.140012312
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007f925
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.14006496f
mov qword [r14], rax
jmp 0x14007f925
mov rcx, rdi
call fcn.140012312
mov rcx, rsi
call fcn.140012312
jmp 0x14007f925
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.14006496f
mov qword [r14], rax
mov rcx, rdi
call fcn.140012312
mov rcx, rsi
call fcn.140012312
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.1400841b0
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.140012312
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.140012312
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x14007f927
mov rcx, qword [r14]
call fcn.140012312
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.140012312
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x14007f927