Function at 0x140078c20
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov r14, r9
mov r13, r8
mov r15, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call fcn.14008cbc0
mov rbx, rax
add eax, 0x10
add ebx, 0x1f
test eax, eax
cmovns ebx, eax
and ebx, 0xfffffff0
movsxd rdi, ebx
mov edx, 1
mov rcx, rdi
xor r8d, r8d
call fcn.140011830
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call fcn.14007eb10
mov rcx, rsi
mov rdx, r15
call fcn.14008c810
call fcn.140060370
test al, al
je 0x140078cac
mov rcx, rsi
mov edx, ebx
mov r8d, 1
call qword [0x1400caef0]
mov bpl, byte [rsp + 0x138]
mov r15, qword [rsp + 0x118]
lea rcx, [0x1400a4220]
call qword [0x1400a4220]
mov rbx, rax
mov rcx, qword [rax + 8]
mov rdx, rsi
mov r8, rdi
call fcn.14001146b
mov rax, qword [rbx]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, rsi
call fcn.1400118b0
lea rsi, [rsp + 0x30]
xor ebx, ebx
lea rdi, [0x1400aeadf]
movzx r8d, byte [rsp + rbx + 0x80]
mov rcx, rsi
mov rdx, rdi
call fcn.1400042c4
inc rbx
add rsi, 2
cmp rbx, 0x20
jne 0x140078d02
lea rcx, [rsp + 0x30]
call fcn.14005f215
test rax, rax
je 0x140078f10
mov rbx, rax
lea rcx, str.Localputty_connshare_mutex
mov rdx, rax
call fcn.140079026
mov rdi, rax
lea rdx, [rsp + 0x80]
lea r8, [rsp + 0x28]
mov ecx, 0x1f0001
mov r9, r15
call fcn.1400782e5
test al, al
je 0x140078f31
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rcx], 0x18
mov rax, qword [rsp + 0x80]
mov qword [rcx + 8], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
je 0x140078f43
mov rsi, rax
mov rcx, rdi
call fcn.1400118b0
mov rcx, qword [rsp + 0x80]
mov rdi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rdi
mov rcx, qword [rsp + 0x28]
call rdi
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str..pipeputty_connshare
mov rdx, rbx
call fcn.140079026
mov r12, rax
mov qword [r15], 0
test bpl, bpl
je 0x140078e4e
mov rcx, r12
mov rdx, r13
call fcn.140076ee0
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x140078fb5
mov rbp, qword [rsp + 0x120]
mov rcx, qword [rbp]
call fcn.1400118b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400b13cd]
mov rdx, r12
mov r8, rax
call fcn.14005f1b3
mov qword [rbp], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp byte [rsp + 0x130], 0
je 0x140078eb1
mov rcx, r12
mov rdx, r14
call fcn.140077108
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x140078fec
mov rbp, qword [rsp + 0x128]
mov rcx, qword [rbp]
call fcn.1400118b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400b13cd]
mov rdx, r12
mov r8, rax
call fcn.14005f1b3
mov qword [rbp], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r15], 0
jne 0x140078eec
mov rax, qword [rsp + 0x120]
cmp qword [rax], 0
jne 0x140078eec
mov rax, qword [rsp + 0x128]
cmp qword [rax], 0
jne 0x140078eec
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0xdc
call fcn.140088ff4
mov rcx, r12
call fcn.1400118b0
mov rcx, rbx
call fcn.1400118b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140078f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.14005f1b3
mov qword [r15], rax
jmp 0x140078f8d
mov rcx, rdi
call fcn.1400118b0
mov rcx, rbx
call fcn.1400118b0
jmp 0x140078f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.14005f1b3
mov qword [r15], rax
mov rcx, rdi
call fcn.1400118b0
mov rcx, rbx
call fcn.1400118b0
mov rcx, qword [rsp + 0x80]
mov rsi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rsi
mov rcx, qword [rsp + 0x28]
call rsi
xor esi, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14007d5e0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15]
call fcn.1400118b0
mov qword [r15], r12
mov rax, qword [rsp + 0x110]
mov qword [rax], rdi
mov rcx, rbx
call fcn.1400118b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x140078f8f
mov rcx, qword [r15]
call fcn.1400118b0
mov qword [r15], r12
mov rax, qword [rsp + 0x110]
mov qword [rax], rdi
mov rcx, rbx
call fcn.1400118b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x140078f8f