Function at 0x1400793f0
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 rbx, rcx
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call fcn.14008d450
lea ecx, [rax + 0x10]
sar ecx, 0x1f
shr ecx, 0x1c
lea ebp, [rax + rcx]
add ebp, 0x10
and ebp, 0xfffffff0
movsxd rsi, ebp
mov edx, 1
xor r8d, r8d
mov rcx, rsi
call fcn.140011888
mov rdi, rax
xor edx, edx
mov rcx, rax
mov r8, rsi
call fcn.14007f3a0
mov rcx, rdi
mov rdx, rbx
call fcn.14008d0a0
call fcn.140060994
test al, al
je 0x14007947d
mov r8d, 1
mov rcx, rdi
mov edx, ebp
call qword [0x1400cbee0]
mov bpl, byte [rsp + 0x138]
mov r15, qword [rsp + 0x118]
lea rcx, [0x1400a5210]
call qword [0x1400a5210]
mov rbx, rax
mov rcx, qword [rax + 8]
mov rdx, rdi
mov r8, rsi
call fcn.14001149e
mov rax, qword [rbx]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, rdi
call fcn.140011913
lea rsi, [rsp + 0x30]
xor ebx, ebx
lea rdi, [0x1400afabf]
movzx r8d, byte [rsp + rbx + 0x80]
mov rcx, rsi
mov rdx, rdi
call fcn.1400042b4
inc rbx
add rsi, 2
cmp rbx, 0x20
jne 0x1400794d3
lea rcx, [rsp + 0x30]
call fcn.14005f897
test rax, rax
je 0x1400796ec
mov rbx, rax
lea rcx, str.Localputty_connshare_mutex
mov rdx, rax
call fcn.140079802
mov rdi, rax
lea rdx, [rsp + 0x80]
lea r8, [rsp + 0x28]
mov ecx, 0x1f0001
mov r9, r15
call fcn.140078ab3
test al, al
je 0x14007970d
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
mov dword [rcx + 0x10], 0
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
je 0x14007971f
mov rsi, rax
mov rcx, rdi
call fcn.140011913
mov rcx, qword [rsp + 0x80]
mov rdi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rdi
mov rcx, qword [rsp + 0x28]
call rdi
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str..pipeputty_connshare
mov rdx, rbx
call fcn.140079802
mov r12, rax
mov qword [r15], 0
test bpl, bpl
je 0x140079628
mov rcx, r12
mov rdx, r13
call fcn.140077678
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x140079791
mov rax, qword [rsp + 0x120]
mov rbp, rax
mov rcx, qword [rax]
call fcn.140011913
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400b232f]
mov rdx, r12
mov r8, rax
call fcn.14005f835
mov qword [rbp], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp byte [rsp + 0x130], 0
je 0x14007968d
mov rcx, r12
mov rdx, r14
call fcn.1400778a0
mov rdi, rax
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 0x30]
test rax, rax
je 0x1400797c8
mov rax, qword [rsp + 0x128]
mov rbp, rax
mov rcx, qword [rax]
call fcn.140011913
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
lea rcx, [0x1400b232f]
mov rdx, r12
mov r8, rax
call fcn.14005f835
mov qword [rbp], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r15], 0
jne 0x1400796c8
mov rax, qword [rsp + 0x120]
cmp qword [rax], 0
jne 0x1400796c8
mov rax, qword [rsp + 0x128]
cmp qword [rax], 0
jne 0x1400796c8
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0xdc
call fcn.140089884
mov rcx, r12
call fcn.140011913
mov rcx, rbx
call fcn.140011913
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140079769
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.14005f835
mov qword [r15], rax
jmp 0x140079769
mov rcx, rdi
call fcn.140011913
mov rcx, rbx
call fcn.140011913
jmp 0x140079769
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.14005f835
mov qword [r15], rax
mov rcx, rdi
call fcn.140011913
mov rcx, rbx
call fcn.140011913
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.14007de70
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.140011913
mov qword [r15], r12
mov rax, qword [rsp + 0x110]
mov qword [rax], rdi
mov rcx, rbx
call fcn.140011913
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x14007976b
mov rcx, qword [r15]
call fcn.140011913
mov qword [r15], r12
mov rax, qword [rsp + 0x110]
mov qword [rax], rdi
mov rcx, rbx
call fcn.140011913
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x14007976b