Function at 0x14003f7d0
Capabilities:
Check mutex on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r14, r9
mov r15, r8
mov r13, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0xf0]
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x80], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rsp + 0x60], xmm0
movzx r8d, byte [rbx + 0x1f]
test r8b, r8b
jns 0x14003f838
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
jmp 0x14003f83c
lea rdx, [rbx + 8]
add r8, r8
lea rbp, [rsp + 0x48]
mov rcx, rbp
call fcn.140124d40
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov rdx, rax
call fcn.1401993e0
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, rbp
mov r8, rdi
call fcn.1401734d0
cmp byte [rbp + 0x17], 0
jns 0x14003f879
mov rbp, qword [rsp + 0x48]
xor r12d, r12d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14003f8b3
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x14003f9d7
call fcn.14012aa20
mov r12, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x14003f8c4
mov rcx, qword [rsp + 0x48]
call fcn.140142744
lea rax, [r12 + 1]
cmp rax, 1
ja 0x14003f926
mov qword [rsi], 0
lea rax, [r12 + 1]
cmp rax, 2
jb 0x14003f8ee
call fcn.14012aa20
mov rcx, r12
call fcn.14012dff0
cmp byte [rsp + 0x77], 0
jns 0x14003f8ff
mov rcx, qword [rsp + 0x60]
call fcn.140142744
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.GlobalChromeSetupExitEvent_
lea rbp, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov rcx, rbp
call fcn.1401734d0
cmp byte [rbp + 0x17], 0
jns 0x14003f94a
mov rbp, qword [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x14003f990
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x14003fc01
call fcn.14012aa20
mov qword [rsp + 0x20], rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x14003f9a1
mov rcx, qword [rsp + 0x48]
call fcn.140142744
mov rdi, qword [rsp + 0x20]
lea rax, [rdi + 1]
cmp rax, 1
ja 0x14003f9df
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003f8d6
call fcn.14012aa20
mov rcx, rdi
call fcn.14012dff0
jmp 0x14003f8d6
xor r12d, r12d
jmp 0x14003f8ab
mov ecx, 0x20
call fcn.140142708
mov rbp, rax
call fcn.14012aa20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edi, eax
mov qword [rsp + 0x40], rcx
call fcn.14012aa20
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x38], 0
call fcn.14012aa20
test r12, r12
je 0x14003fa3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x38], r12
call fcn.14012aa20
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, rbp
call fcn.14003fc30
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov rcx, rbp
call fcn.1401734d0
cmp byte [rbp + 0x17], 0
jns 0x14003fa76
mov rbp, qword [rsp + 0x48]
xor r12d, r12d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x14003fab0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x14003fc28
call fcn.14012aa20
mov r12, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x14003fac1
mov rcx, qword [rsp + 0x48]
call fcn.140142744
lea rdi, [r12 + 1]
cmp rdi, 1
mov rbp, qword [rsp + 0x20]
mov qword [rsp + 0x30], r12
ja 0x14003fae8
mov qword [rsi], 0
mov r12d, 1
jmp 0x14003fb7b
lea rcx, [rsp + 0x48]
mov qword [rcx], 0x4c4b40
call fcn.14012d990
mov rcx, r12
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, r12
test eax, eax
jne 0x14003fb5a
mov r12, qword [rsp + 0x20]
lea rcx, [r12 + 0x10]
mov qword [rsp + 0x28], rcx
call fcn.1401301e0
mov r12, qword [r12]
lea rcx, [rsp + 0x48]
mov qword [rcx], 0x4c4b40
call fcn.14012d990
mov rcx, r12
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14003fc0d
mov qword [rsi], 0
mov r12d, 1
cmp rbp, 0xffffffffffffffff
je 0x14003fb76
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbp, qword [rsp + 0x20]
cmp rdi, 2
jb 0x14003fb90
call fcn.14012aa20
mov rcx, qword [rsp + 0x30]
call fcn.14012dff0
test r12d, r12d
je 0x14003fbdb
test rbp, rbp
je 0x14003fbf7
mov rcx, rbp
add rcx, 0x10
call fcn.140053f70
mov rcx, qword [rbp + 8]
cmp rcx, 0xffffffffffffffff
je 0x14003fbb6
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [rbp]
inc rax
cmp rax, 2
jb 0x14003fbd1
call fcn.14012aa20
mov rcx, qword [rbp]
call fcn.14012dff0
mov rcx, rbp
call fcn.140142744
jmp 0x14003fbf7
mov rcx, r14
call fcn.1401a6f90
mov rcx, rbx
mov rdx, r13
mov r8, r15
mov r9, r14
call fcn.14003e5c0
mov qword [rsi], rbp
xor r12d, r12d
xor edi, edi
jmp 0x14003f9b7
xor eax, eax
mov qword [rsp + 0x20], rax
jmp 0x14003f988
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], r12
mov rcx, qword [rsp + 0x28]
call fcn.1401301d0
xor r12d, r12d
jmp 0x14003fb67
xor r12d, r12d
jmp 0x14003faa8