Function at 0x14004a680
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, r9
mov qword [rsp + 0x20], r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rsp + 0xe0]
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x1402cdfe0]
movaps xmmword [rsp + 0x50], xmm0
movsx r8, byte [r15 + 0x1f]
test r8, r8
js 0x14004a6e0
lea rdx, [r15 + 8]
jmp 0x14004a6e8
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x10]
add r8, r8
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.1400ceb10
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov rdx, rax
call fcn.14017e760
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, r12
mov r8, rbx
call fcn.14002eaa0
cmp byte [r12 + 0x17], 0
jns 0x14004a727
mov r12, qword [rsp + 0x38]
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14004a761
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r12, 0xffffffffffffffff
je 0x14004aa5f
call fcn.1400e1920
mov r13, r12
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x4f], 0
jns 0x14004a772
mov rcx, qword [rsp + 0x38]
call fcn.14010f42c
lea rax, [r13 + 1]
cmp rax, 1
ja 0x14004a7cc
mov qword [rsi], 0
lea rax, [r13 + 1]
cmp rax, 2
jb 0x14004a79a
call fcn.1400e1920
mov rcx, r13
call fcn.1400d9a60
cmp byte [rsp + 0x67], 0
jns 0x14004a7ab
mov rcx, qword [rsp + 0x50]
call fcn.14010f42c
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140110970
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.GlobalChromeSetupExitEvent_
lea r12, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov rcx, r12
call fcn.14002eaa0
cmp byte [r12 + 0x17], 0
jns 0x14004a7f2
mov r12, qword [rsp + 0x38]
xor ebx, ebx
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, r12
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x14004a833
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp rbp, 0xffffffffffffffff
je 0x14004aa67
call fcn.1400e1920
mov rbx, rbp
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x4f], 0
jns 0x14004a844
mov rcx, qword [rsp + 0x38]
call fcn.14010f42c
lea rax, [rbx + 1]
cmp rax, 1
ja 0x14004a875
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14004a783
call fcn.1400e1920
mov rcx, rbx
call fcn.1400d9a60
jmp 0x14004a783
mov ecx, 0x20
call fcn.14010f3f0
mov r12, rax
call fcn.1400e1920
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x30], rbx
call fcn.1400e1920
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x28], 0
call fcn.1400e1920
test r13, r13
je 0x14004a8ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x28], r13
call fcn.1400e1920
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, r12
call fcn.14004aa80
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov rcx, rbp
call fcn.14002eaa0
cmp byte [rbp + 0x17], 0
jns 0x14004a904
mov rbp, qword [rsp + 0x38]
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14004a93e
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x14004aa6e
call fcn.1400e1920
mov r13, rbx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x4f], 0
jns 0x14004a94f
mov rcx, qword [rsp + 0x38]
call fcn.14010f42c
lea rax, [r13 + 1]
cmp rax, 1
ja 0x14004a9b0
mov qword [rsi], 0
jbe 0x14004a96f
call fcn.1400e1920
mov rcx, r13
call fcn.1400d9a60
test r12, r12
je 0x14004a9a6
mov rcx, r12
add rcx, 0x10
call fcn.1400e5b90
mov rcx, qword [r12 + 8]
cmp rcx, 0xffffffffffffffff
je 0x14004a991
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [r12]
inc rax
cmp rax, 2
jae 0x14004a9ce
mov rcx, r12
call fcn.14010f42c
xor r13d, r13d
xor ebx, ebx
jmp 0x14004a855
mov rcx, r13
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14004a9de
mov qword [rsi], 0
jmp 0x14004a962
call fcn.1400e1920
mov rcx, qword [r12]
call fcn.1400d9a60
jmp 0x14004a99e
lea rbp, [r12 + 0x10]
mov rcx, rbp
call fcn.1400e5d70
mov rbx, qword [r12]
mov rcx, rbx
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14004aa19
mov qword [rsi], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14004a962
mov qword [r12 + 8], rbx
mov rcx, rbp
call fcn.14007b400
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.1400e1920
mov rcx, r13
call fcn.1400d9a60
mov rcx, rdi
call fcn.1401a5c50
mov rcx, r15
mov rdx, r14
mov r8, qword [rsp + 0x20]
mov r9, rdi
call fcn.14004b740
mov qword [rsi], r12
jmp 0x14004a9a6
xor r13d, r13d
jmp 0x14004a759
xor ebx, ebx
jmp 0x14004a82a
xor r13d, r13d
jmp 0x14004a936