Function at 0x1400691b0
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r13, r9
mov r14, r8
mov rbx, rdx
mov r12, rcx
mov r15, qword [rsp + 0x100]
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rdx, [r15 + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rdi], xmm0
movzx eax, byte [r15 + 0x1f]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs rdx, qword [r15 + 8]
cmovs r8, qword [r15 + 0x10]
add r8, r8
lea rbp, [rsp + 0x58]
mov rcx, rbp
call fcn.140156530
mov rcx, rdi
mov rdx, rax
call fcn.14022aef0
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, rbp
mov r8, rdi
call fcn.140043780
cmp byte [rbp + 0x17], 0
jns 0x14006925a
mov rbp, qword [rsp + 0x58]
xor edi, edi
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x140069293
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rbp, 0xffffffffffffffff
je 0x1400695dc
call fcn.140160650
mov rdi, rbp
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x1400692a4
mov rcx, qword [rsp + 0x58]
call fcn.1401b9ce8
lea rax, [rdi + 1]
cmp rax, 1
ja 0x1400692bb
mov qword [r12], 0
jmp 0x140069570
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r14
lea rdx, str.GlobalChromeSetupExitEvent_
lea rsi, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.140043780
cmp byte [rsi + 0x17], 0
jns 0x1400692e9
mov rsi, qword [rsp + 0x58]
xor r14d, r14d
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x140069329
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rbp, 0xffffffffffffffff
je 0x1400695e3
call fcn.140160650
mov r14, rbp
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x14006933a
mov rcx, qword [rsp + 0x58]
call fcn.1401b9ce8
lea rax, [r14 + 1]
cmp rax, 1
ja 0x140069351
mov qword [r12], 0
jmp 0x140069559
mov ecx, 0x20
call fcn.1401b9cac
mov rbx, rax
call fcn.140160650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rsp + 0x50], r14
call fcn.140160650
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x48], 0
call fcn.140160650
test rdi, rdi
je 0x1400693aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rsp + 0x48], rdi
call fcn.140160650
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.140069600
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, rbp
call fcn.140043780
cmp byte [rbp + 0x17], 0
jns 0x1400693e0
mov rbp, qword [rsp + 0x58]
xor r14d, r14d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14006941a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x1400695eb
call fcn.140160650
mov r14, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x14006942b
mov rcx, qword [rsp + 0x58]
call fcn.1401b9ce8
lea rdi, [r14 + 1]
cmp rdi, 1
ja 0x140069447
mov qword [r12], 0
mov esi, 1
jmp 0x1400694d1
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.14016b1f0
mov rcx, r14
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and eax, 0xffffff7f
xor ebp, ebp
mov ecx, eax
neg ecx
sbb rbp, rbp
or rbp, r14
test eax, eax
jne 0x1400694b5
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x28], rcx
call fcn.1401776d0
mov rsi, qword [rbx]
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.14016b1f0
mov qword [rsp + 0x30], rsi
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1400695c2
mov qword [r12], 0
mov esi, 1
cmp rbp, 0xffffffffffffffff
je 0x1400694d1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp rdi, 2
jb 0x1400694e4
call fcn.140160650
mov rcx, r14
call fcn.14016ddf0
test esi, esi
je 0x140069533
test rbx, rbx
je 0x140069554
mov rcx, rbx
add rcx, 0x10
call fcn.140177690
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140069509
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [rbx]
inc rax
cmp rax, 2
jb 0x140069529
call fcn.140160650
mov rcx, qword [rbx]
call fcn.14016ddf0
mov qword [rbx], 0
mov rcx, rbx
call fcn.1401b9ce8
jmp 0x140069554
mov rcx, r13
call fcn.14024cdf0
mov rcx, r15
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r9, r13
call fcn.140068070
mov qword [r12], rbx
xor edi, edi
xor r14d, r14d
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140069570
call fcn.140160650
mov rcx, r14
call fcn.14016ddf0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140069587
call fcn.140160650
mov rcx, rdi
call fcn.14016ddf0
cmp byte [rsp + 0x87], 0
jns 0x14006959b
mov rcx, qword [rsp + 0x70]
call fcn.1401b9ce8
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401bb0d0
mov rax, r12
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401776c0
xor esi, esi
jmp 0x1400694c2
xor edi, edi
jmp 0x14006928b
xor r14d, r14d
jmp 0x140069321
xor r14d, r14d
jmp 0x140069412