Function at 0x14003e2a0
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 rsi, rdx
mov r15, rcx
mov r12, qword [rsp + 0x100]
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [rsp + 0x70], xmm0
movzx r8d, byte [r12 + 0x1f]
test r8b, r8b
jns 0x14003e30e
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
jmp 0x14003e313
lea rdx, [r12 + 8]
add r8, r8
lea rbp, [rsp + 0x58]
mov rcx, rbp
call fcn.1400dddf0
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov rdx, rax
call fcn.1401752a0
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, rbp
mov r8, rdi
call fcn.140022ed0
cmp byte [rbp + 0x17], 0
jns 0x14003e350
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 0x14003e389
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rbp, 0xffffffffffffffff
je 0x14003e6c8
call fcn.1400e8390
mov rdi, rbp
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x14003e39a
mov rcx, qword [rsp + 0x58]
call fcn.1401109f8
lea rax, [rdi + 1]
cmp rax, 1
ja 0x14003e3b0
mov qword [r15], 0
jmp 0x14003e65c
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r14
lea rdx, str.GlobalChromeSetupExitEvent_
lea rbx, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.140022ed0
cmp byte [rbx + 0x17], 0
jns 0x14003e3de
mov rbx, qword [rsp + 0x58]
xor r14d, r14d
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x14003e41e
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rbp, 0xffffffffffffffff
je 0x14003e6cf
call fcn.1400e8390
mov r14, rbp
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x14003e42f
mov rcx, qword [rsp + 0x58]
call fcn.1401109f8
lea rax, [r14 + 1]
cmp rax, 1
ja 0x14003e445
mov qword [r15], 0
jmp 0x14003e645
mov ecx, 0x20
call fcn.1401109bc
mov rsi, rax
call fcn.1400e8390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x50], r14
call fcn.1400e8390
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x48], 0
call fcn.1400e8390
test rdi, rdi
je 0x14003e49e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x48], rdi
call fcn.1400e8390
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.14003e6e0
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, rbp
call fcn.140022ed0
cmp byte [rbp + 0x17], 0
jns 0x14003e4d4
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 0x14003e50e
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x14003e6d7
call fcn.1400e8390
mov r14, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x14003e51f
mov rcx, qword [rsp + 0x58]
call fcn.1401109f8
lea rdi, [r14 + 1]
cmp rdi, 1
ja 0x14003e53a
mov qword [r15], 0
mov ebx, 1
jmp 0x14003e5c5
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.1400ee080
mov rcx, r14
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and eax, 0xffffff7f
xor ebp, ebp
cmp eax, 1
sbb rbp, rbp
not rbp
or rbp, r14
test eax, eax
jne 0x14003e5aa
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x28], rcx
call fcn.1400f2ef0
mov rbx, qword [rsi]
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.1400ee080
mov qword [rsp + 0x30], rbx
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14003e6ae
mov qword [r15], 0
mov ebx, 1
cmp rbp, 0xffffffffffffffff
je 0x14003e5c5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp rdi, 2
jb 0x14003e5d8
call fcn.1400e8390
mov rcx, r14
call fcn.1400f0600
test ebx, ebx
je 0x14003e620
test rsi, rsi
je 0x14003e640
mov rcx, rsi
add rcx, 0x10
call fcn.1400f2eb0
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14003e5fd
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14003e616
call fcn.1400e8390
mov rcx, qword [rsi]
call fcn.1400f0600
mov rcx, rsi
call fcn.1401109f8
jmp 0x14003e640
mov rcx, r13
call fcn.14016e2d0
mov rcx, r12
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r9, r13
call fcn.14003d180
mov qword [r15], rsi
xor edi, edi
xor r14d, r14d
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003e65c
call fcn.1400e8390
mov rcx, r14
call fcn.1400f0600
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003e673
call fcn.1400e8390
mov rcx, rdi
call fcn.1400f0600
cmp byte [rsp + 0x87], 0
jns 0x14003e687
mov rcx, qword [rsp + 0x70]
call fcn.1401109f8
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140111870
mov rax, r15
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 [rsi + 8], rax
mov rcx, qword [rsp + 0x28]
call fcn.1400f2ee0
xor ebx, ebx
jmp 0x14003e5b6
xor edi, edi
jmp 0x14003e381
xor r14d, r14d
jmp 0x14003e416
xor r14d, r14d
jmp 0x14003e506