Function at 0x14007f530
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.140065994
test rax, rax
je 0x14007f73f
mov rsi, rax
lea rcx, str.Localputty_connshare_mutex
mov rdx, rax
call fcn.14007f84c
mov rdi, rax
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov ecx, 0x1f0001
mov r9, r14
call fcn.14007e9ae
test al, al
je 0x14007f760
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 0x14007f772
mov r12, rax
mov bpl, byte [rsp + 0xe8]
mov rcx, rdi
call fcn.140012402
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.14007f84c
mov r15, rax
mov qword [r14], 0
test bpl, bpl
je 0x14007f687
mov rcx, r15
mov rdx, rbx
call fcn.14007d505
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x14007f7db
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rbx]
call fcn.140012402
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400be124]
mov rdx, r15
mov r8, rax
call fcn.1400646e3
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 0x14007f6e8
mov rcx, r15
mov rdx, r13
call fcn.14007d588
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x14007f812
mov rcx, qword [rbx]
call fcn.140012402
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400be124]
mov rdx, r15
mov r8, rax
call fcn.1400646e3
mov qword [rbx], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r14], 0
jne 0x14007f71b
mov rax, qword [rsp + 0xd0]
cmp qword [rax], 0
jne 0x14007f71b
cmp qword [rbx], 0
jne 0x14007f71b
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0x86
call fcn.14008ff98
mov rcx, r15
call fcn.140012402
mov rcx, rsi
call fcn.140012402
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007f7b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a0fc
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.1400646e3
mov qword [r14], rax
jmp 0x14007f7b9
mov rcx, rdi
call fcn.140012402
mov rcx, rsi
call fcn.140012402
jmp 0x14007f7b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a0fc
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.1400646e3
mov qword [r14], rax
mov rcx, rdi
call fcn.140012402
mov rcx, rsi
call fcn.140012402
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.140084030
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.140012402
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.140012402
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x14007f7bb
mov rcx, qword [r14]
call fcn.140012402
mov qword [r14], r15
mov rax, qword [rsp + 0xc0]
mov qword [rax], rdi
mov rcx, rsi
call fcn.140012402
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x14007f7bb