Function at 0x1400ba590
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rcx], 0
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0xc0]
mov qword [rdi + 0x10], r14
movaps xmm0, xmmword [0x14032ae20]
movaps xmmword [rdi], xmm0
lea rdx, str.Global_
mov rcx, rdi
call fcn.1401e2180
lea rbx, [0x140371b5a]
mov rcx, rbx
call fcn.1401ca674
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14005c5e0
call fcn.14008f730
xor al, 1
lea rbx, [rsp + 0xe0]
mov rcx, rbx
mov edx, eax
call fcn.140096390
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x1400ba630
and r8d, 0x7f
jmp 0x1400ba640
mov r8, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rcx, rdi
mov rdx, rbx
call fcn.14005c5e0
cmp byte [rsp + 0xf7], 0
jns 0x1400ba662
mov rcx, qword [rsp + 0xe0]
call fcn.1401a0fa4
lea rdx, str.ExperimentStorageMutex
mov r8d, 0x16
mov rcx, rdi
call fcn.14005c5e0
mov qword [rsp + 0xb8], r14
movzx eax, byte [rsp + 0xd7]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0xc0]
cmovns rax, rdi
lea rdx, [rsp + 0x98]
mov qword [rdx], rax
cmovs rcx, qword [rsp + 0xc8]
mov qword [rdx + 8], rcx
lea rbx, [rsp + 0xe0]
mov rcx, rbx
call fcn.1401490e0
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rcx
mov eax, dword [0x1403b3670]
mov ecx, dword [0x1403adeec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ba96e
mov rdx, qword [0x1403b3668]
lea rcx, [rsp + 0xb8]
lea r8, [rsp + 0xa8]
call fcn.140160250
cmp byte [rsp + 0xf7], 0
jns 0x1400ba741
mov rcx, qword [rsp + 0xe0]
call fcn.1401a0fa4
lea rbx, [rsp + 0xe0]
mov r8d, 0xa0
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a48a0
lea rdx, str.D:_A__GA___BA__A__GA___IU_
lea r14, [rsp + 0x70]
mov rcx, r14
call fcn.1401e2180
mov rcx, rbx
mov rdx, r14
call fcn.140294290
cmp byte [r14 + 0x17], 0
jns 0x1400ba789
mov rcx, qword [rsp + 0x70]
call fcn.1401a0fa4
cmp byte [rsp + 0xe0], 0
je 0x1400ba904
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x90], 0
lea rbx, [rsp + 0xe8]
mov rcx, rbx
mov rdx, r14
call fcn.1400f0a70
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0x18
mov qword [rsp + 0x58], r14
cmp byte [rsp + 0xd7], 0
jns 0x1400ba7f6
mov rdi, qword [rsp + 0xc0]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x1400ba8b7
cmp qword [rsi], rdi
je 0x1400ba845
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ba89e
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400ba83d
mov qword [rsi], rdi
call fcn.140151950
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0xe0], 0
je 0x1400ba857
mov rcx, rbx
call fcn.1400f05f0
lea rcx, [rsp + 0xb8]
call fcn.1401602d0
cmp byte [rsp + 0xd7], 0
jns 0x1400ba87b
mov rcx, qword [rsp + 0xc0]
call fcn.1401a0fa4
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401a2750
mov rax, rsi
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140151950
mov rcx, qword [rsi]
call fcn.14013e480
mov qword [rsi], 0
jmp 0x1400ba82b
lea rdx, str.ExperimentStorage
lea r8, str.....chromeinstallerutilexperiment_storage.cc
lea r14, [rsp + 0x28]
mov rcx, r14
mov r9d, 0x117
call fcn.140151930
lea r15, [rsp + 0x48]
mov rcx, r15
mov rdx, r14
call fcn.140218680
lea rdx, str.Failed_to_create_ExperimentStorage_mutex
mov rcx, r15
call fcn.14022a890
mov rcx, r15
call fcn.1402186b0
jmp 0x1400ba812
lea rdx, str.ExperimentStorage
lea r8, str.....chromeinstallerutilexperiment_storage.cc
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov r9d, 0x110
call fcn.140151930
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
call fcn.140218680
lea rdx, str.Failed_to_create_ExperimentStorage_mutex_security_descriptor
mov rcx, r15
call fcn.14022a890
mov rcx, r15
call fcn.1402186b0
cmp byte [rsp + 0xe0], 0
xorps xmm0, xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x20], 0
jne 0x1400ba7b3
ud2
lea rcx, [0x1403b3670]
call fcn.1401a10c0
cmp dword [0x1403b3670], 0xffffffff
jne 0x1400ba70e
lea rcx, str.ExperimentStorage_mutex_name
mov edx, 0x100
call fcn.1400c6c80
mov qword [0x1403b3668], rax
lea rcx, [0x1403b3670]
call fcn.1401a1158
jmp 0x1400ba70e