Function at 0x1400ba910
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.1401e2280
lea rbx, [0x140371b5a]
mov rcx, rbx
call fcn.1401ca774
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14005c6a0
call fcn.14008fb70
xor al, 1
lea rbx, [rsp + 0xe0]
mov rcx, rbx
mov edx, eax
call fcn.140096710
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x1400ba9b0
and r8d, 0x7f
jmp 0x1400ba9c0
mov r8, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
mov rcx, rdi
mov rdx, rbx
call fcn.14005c6a0
cmp byte [rsp + 0xf7], 0
jns 0x1400ba9e2
mov rcx, qword [rsp + 0xe0]
call fcn.1401a10a4
lea rdx, str.ExperimentStorageMutex
mov r8d, 0x16
mov rcx, rdi
call fcn.14005c6a0
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.140149650
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 0x1400bacee
mov rdx, qword [0x1403b3668]
lea rcx, [rsp + 0xb8]
lea r8, [rsp + 0xa8]
call fcn.140160220
cmp byte [rsp + 0xf7], 0
jns 0x1400baac1
mov rcx, qword [rsp + 0xe0]
call fcn.1401a10a4
lea rbx, [rsp + 0xe0]
mov r8d, 0xa0
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a49a0
lea rdx, str.D:_A__GA___BA__A__GA___IU_
lea r14, [rsp + 0x70]
mov rcx, r14
call fcn.1401e2280
mov rcx, rbx
mov rdx, r14
call fcn.140294270
cmp byte [r14 + 0x17], 0
jns 0x1400bab09
mov rcx, qword [rsp + 0x70]
call fcn.1401a10a4
cmp byte [rsp + 0xe0], 0
je 0x1400bac84
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.1400f1150
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 0x1400bab76
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 0x1400bac37
cmp qword [rsi], rdi
je 0x1400babc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400bac1e
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400babbd
mov qword [rsi], rdi
call fcn.140151db0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0xe0], 0
je 0x1400babd7
mov rcx, rbx
call fcn.1400f0cd0
lea rcx, [rsp + 0xb8]
call fcn.1401602a0
cmp byte [rsp + 0xd7], 0
jns 0x1400babfb
mov rcx, qword [rsp + 0xc0]
call fcn.1401a10a4
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401a2850
mov rax, rsi
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140151db0
mov rcx, qword [rsi]
call fcn.14013ea60
mov qword [rsi], 0
jmp 0x1400babab
lea rdx, str.ExperimentStorage
lea r8, str.....chromeinstallerutilexperiment_storage.cc
lea r14, [rsp + 0x28]
mov rcx, r14
mov r9d, 0x117
call fcn.140151d90
lea r15, [rsp + 0x48]
mov rcx, r15
mov rdx, r14
call fcn.140218610
lea rdx, str.Failed_to_create_ExperimentStorage_mutex
mov rcx, r15
call fcn.14022a8e0
mov rcx, r15
call fcn.140218640
jmp 0x1400bab92
lea rdx, str.ExperimentStorage
lea r8, str.....chromeinstallerutilexperiment_storage.cc
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov r9d, 0x110
call fcn.140151d90
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
call fcn.140218610
lea rdx, str.Failed_to_create_ExperimentStorage_mutex_security_descriptor
mov rcx, r15
call fcn.14022a8e0
mov rcx, r15
call fcn.140218640
cmp byte [rsp + 0xe0], 0
xorps xmm0, xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x20], 0
jne 0x1400bab33
ud2
lea rcx, [0x1403b3670]
call fcn.1401a11c0
cmp dword [0x1403b3670], 0xffffffff
jne 0x1400baa8e
lea rcx, str.ExperimentStorage_mutex_name
mov edx, 0x100
call fcn.1400c73b0
mov qword [0x1403b3668], rax
lea rcx, [0x1403b3670]
call fcn.1401a1258
jmp 0x1400baa8e