Function at 0x1400a4644
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov r14, r9
mov r12, r8
mov r15, rcx
mov rax, qword [0x14002e420]
mov qword [rsp + 0x110], rax
call fcn.1400b93d0
lea ecx, [rax + 0x10]
sar ecx, 0x1f
shr ecx, 0x1c
lea ebp, [rax + rcx + 0x10]
mov esi, ebp
sar esi, 4
and ebp, 0xfffffff0
movsxd rbx, ebp
mov edx, 1
mov rcx, rbx
call fcn.14004723d
mov rdi, rax
xor edx, edx
mov rcx, rdi
mov r8, rbx
call fcn.1400aa3a0
mov rcx, rdi
mov rdx, r15
call fcn.1400b9020
call fcn.14008c320
test eax, eax
je 0x1400a46ce
mov r8d, 1
mov rcx, rdi
mov edx, ebp
call qword [0x140029890]
mov r13d, dword [rsp + 0x1a8]
mov r15, qword [rsp + 0x188]
lea rbx, [rsp + 0xa0]
mov rcx, rbx
call fcn.140077999
mov eax, esi
shr eax, 0x14
lea rdx, [rsp + 0x2c]
mov byte [rdx], al
mov eax, esi
shr eax, 0xc
mov byte [rdx + 1], al
shr esi, 4
mov byte [rdx + 2], sil
mov byte [rdx + 3], bpl
mov r8d, 4
mov rcx, rbx
call fcn.1400779be
mov rcx, rbx
mov rdx, rdi
mov r8d, ebp
call fcn.1400779be
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.140077b00
mov rcx, rdi
call fcn.140047430
lea rsi, [rsp + 0x30]
xor ebx, ebx
lea rdi, [0x140006b42]
movzx r8d, byte [rsp + rbx + 0x80]
mov rcx, rsi
mov rdx, rdi
call fcn.14003a950
inc rbx
add rsi, 2
cmp rbx, 0x20
jne 0x1400a474f
lea rcx, [rsp + 0x30]
call fcn.1400471aa
mov rbx, rax
test rbx, rbx
je 0x1400a4969
lea rcx, str.Localputty_connshare_mutex
mov rdx, rbx
call fcn.1400a4a7c
mov rdi, rax
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x80]
mov ecx, 0x1f0001
mov r9, r15
call fcn.1400a3cdb
test eax, eax
je 0x1400a498a
xorps xmm0, xmm0
lea rcx, [rsp + 0xa0]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rcx], 0x18
mov rax, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], 0
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rsi, rsi
je 0x1400a499c
mov rcx, rdi
call fcn.140047430
mov rcx, qword [rsp + 0x30]
mov rdi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rdi
mov rcx, qword [rsp + 0x80]
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.1400a4a7c
mov ecx, r13d
mov r13, rax
mov qword [r15], 0
test ecx, ecx
je 0x1400a48a7
mov rcx, r13
mov rdx, r12
call fcn.1400a2880
mov rdi, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
test rax, rax
je 0x1400a4a0b
mov rax, qword [rsp + 0x190]
mov rbp, rax
mov rcx, qword [rbp]
call fcn.140047430
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
lea rcx, str._s:__s
mov rdx, r13
mov r8, rax
call fcn.14004714e
mov qword [rbp], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp dword [rsp + 0x1a0], 0
je 0x1400a490a
mov rcx, r13
mov rdx, r14
call fcn.1400a2ae8
mov rdi, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
test rax, rax
je 0x1400a4a42
mov rbp, qword [rsp + 0x198]
mov rcx, qword [rbp]
call fcn.140047430
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
lea rcx, str._s:__s
mov rdx, r13
mov r8, rax
call fcn.14004714e
mov qword [rbp], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
cmp qword [r15], 0
jne 0x1400a4945
mov rax, qword [rsp + 0x190]
cmp qword [rax], 0
jne 0x1400a4945
mov rax, qword [rsp + 0x198]
cmp qword [rax], 0
jne 0x1400a4945
lea rcx, str.logtext__ds_err__us_err
lea rdx, str..._windows_winshare.c
mov r8d, 0xe2
call fcn.1400b5fb0
mov rcx, r13
call fcn.140047430
mov rcx, rbx
call fcn.140047430
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a49e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f6e8
lea rcx, str.Unable_to_call_CryptProtectMemory:__s
mov rdx, rax
call fcn.14004714e
mov qword [r15], rax
jmp 0x1400a49e6
mov rcx, rdi
call fcn.140047430
mov rcx, rbx
call fcn.140047430
jmp 0x1400a49e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f6e8
lea rcx, str.CreateMutex___s___failed:__s
mov rdx, rdi
mov r8, rax
call fcn.14004714e
mov qword [r15], rax
mov rcx, rdi
call fcn.140047430
mov rcx, rbx
call fcn.140047430
mov rcx, qword [rsp + 0x30]
mov rsi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rsi
mov rcx, qword [rsp + 0x80]
call rsi
xor esi, esi
mov rcx, qword [rsp + 0x110]
call fcn.1400a8e70
mov eax, esi
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15]
call fcn.140047430
mov qword [r15], r13
mov rax, qword [rsp + 0x180]
mov qword [rax], rdi
mov rcx, rbx
call fcn.140047430
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x1400a49e8
mov rcx, qword [r15]
call fcn.140047430
mov qword [r15], r13
mov rax, qword [rsp + 0x180]
mov qword [rax], rdi
mov rcx, rbx
call fcn.140047430
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x1400a49e8