Function at 0x140070760
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 [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x14033b990]
movaps xmmword [rsp + 0x60], xmm0
movzx r8d, byte [rbx + 0x1f]
test r8b, r8b
jns 0x1400707c8
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
jmp 0x1400707cc
lea rdx, [rbx + 8]
add r8, r8
lea rbp, [rsp + 0x48]
mov rcx, rbp
call fcn.14016c4a0
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov rdx, rax
call fcn.140244dd0
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, rbp
mov r8, rdi
call fcn.14020fbf0
cmp byte [rbp + 0x17], 0
jns 0x140070809
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 0x140070843
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x140070967
call fcn.14017e5d0
mov r12, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x140070854
mov rcx, qword [rsp + 0x48]
call fcn.1401cfdbc
lea rax, [r12 + 1]
cmp rax, 1
ja 0x1400708b6
mov qword [rsi], 0
lea rax, [r12 + 1]
cmp rax, 2
jb 0x14007087e
call fcn.14017e5d0
mov rcx, r12
call fcn.140189420
cmp byte [rsp + 0x77], 0
jns 0x14007088f
mov rcx, qword [rsp + 0x60]
call fcn.1401cfdbc
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401d1390
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.14020fbf0
cmp byte [rbp + 0x17], 0
jns 0x1400708da
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 0x140070920
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x140070b97
call fcn.14017e5d0
mov qword [rsp + 0x20], rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x140070931
mov rcx, qword [rsp + 0x48]
call fcn.1401cfdbc
mov rdi, qword [rsp + 0x20]
lea rax, [rdi + 1]
cmp rax, 1
ja 0x14007096f
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140070866
call fcn.14017e5d0
mov rcx, rdi
call fcn.140189420
jmp 0x140070866
xor r12d, r12d
jmp 0x14007083b
mov ecx, 0x20
call fcn.1401cfd80
mov rbp, rax
call fcn.14017e5d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edi, eax
mov qword [rsp + 0x40], rcx
call fcn.14017e5d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x38], 0
call fcn.14017e5d0
test r12, r12
je 0x1400709cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x38], r12
call fcn.14017e5d0
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.140070bd0
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov rcx, rbp
call fcn.14020fbf0
cmp byte [rbp + 0x17], 0
jns 0x140070a06
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 0x140070a40
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x140070bbe
call fcn.14017e5d0
mov r12, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x140070a51
mov rcx, qword [rsp + 0x48]
call fcn.1401cfdbc
lea rdi, [r12 + 1]
cmp rdi, 1
mov rbp, qword [rsp + 0x20]
mov qword [rsp + 0x30], r12
ja 0x140070a78
mov qword [rsi], 0
mov r12d, 1
jmp 0x140070b09
lea rcx, [rsp + 0x48]
mov qword [rcx], 0x4c4b40
call fcn.140186890
mov rcx, r12
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, r12
test eax, eax
jne 0x140070ae8
mov r12, qword [rsp + 0x20]
lea rcx, [r12 + 0x10]
mov qword [rsp + 0x28], rcx
call fcn.1401953c0
mov r12, qword [r12]
lea rcx, [rsp + 0x48]
mov qword [rcx], 0x4c4b40
call fcn.140186890
mov rcx, r12
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140070ba3
mov qword [rsi], 0
mov r12d, 1
cmp rbp, 0xffffffffffffffff
je 0x140070b04
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbp, qword [rsp + 0x20]
cmp rdi, 2
jb 0x140070b1e
call fcn.14017e5d0
mov rcx, qword [rsp + 0x30]
call fcn.140189420
test r12d, r12d
je 0x140070b71
test rbp, rbp
je 0x140070b8d
mov rcx, rbp
add rcx, 0x10
call fcn.140195380
mov rcx, qword [rbp + 8]
cmp rcx, 0xffffffffffffffff
je 0x140070b44
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [rbp]
inc rax
cmp rax, 2
jb 0x140070b67
call fcn.14017e5d0
mov rcx, qword [rbp]
call fcn.140189420
mov qword [rbp], 0
mov rcx, rbp
call fcn.1401cfdbc
jmp 0x140070b8d
mov rcx, r14
call fcn.140266d20
mov rcx, rbx
mov rdx, r13
mov r8, r15
mov r9, r14
call fcn.14006f5e0
mov qword [rsi], rbp
xor r12d, r12d
xor edi, edi
jmp 0x140070947
xor eax, eax
mov qword [rsp + 0x20], rax
jmp 0x140070918
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], r12
mov rcx, qword [rsp + 0x28]
call fcn.1401953b0
xor r12d, r12d
jmp 0x140070af5
xor r12d, r12d
jmp 0x140070a38