Function at 0x140057b20
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 rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rsp + 0xf0]
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, [r15 + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x10], rax
movaps xmm0, xmmword [0x14030e560]
movaps xmmword [r12], 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 + 0x48]
mov rcx, rbp
call fcn.1401250e0
mov rcx, r12
mov rdx, rax
call fcn.140210410
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, rbp
mov r8, r12
call fcn.14002e760
cmp byte [rbp + 0x17], 0
jns 0x140057bcd
mov rbp, qword [rsp + 0x48]
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x140057c07
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r12, 0xffffffffffffffff
je 0x140057f33
call fcn.14014d860
mov r13, r12
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x140057c18
mov rcx, qword [rsp + 0x48]
call fcn.14019a0bc
lea rax, [r13 + 1]
cmp rax, 1
ja 0x140057c78
mov qword [rsi], 0
lea rax, [r13 + 1]
cmp rax, 2
jb 0x140057c40
call fcn.14014d860
mov rcx, r13
call fcn.140137f20
cmp byte [rsp + 0x77], 0
jns 0x140057c51
mov rcx, qword [rsp + 0x60]
call fcn.14019a0bc
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14019b960
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x30], rbx
lea rdx, str.GlobalChromeSetupExitEvent_
lea r12, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov rcx, r12
call fcn.14002e760
cmp byte [r12 + 0x17], 0
jns 0x140057ca3
mov r12, qword [rsp + 0x48]
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 0x140057ce4
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp rbp, 0xffffffffffffffff
je 0x140057f3b
call fcn.14014d860
mov rbx, rbp
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x140057cf5
mov rcx, qword [rsp + 0x48]
call fcn.14019a0bc
lea rax, [rbx + 1]
cmp rax, 1
ja 0x140057d26
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140057c29
call fcn.14014d860
mov rcx, rbx
call fcn.140137f20
jmp 0x140057c29
mov ecx, 0x20
call fcn.14019a06c
mov r12, rax
call fcn.14014d860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x40], rbx
call fcn.14014d860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x38], 0
call fcn.14014d860
test r13, r13
je 0x140057d7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x38], r13
call fcn.14014d860
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, r12
call fcn.140057f50
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov rcx, rbp
call fcn.14002e760
cmp byte [rbp + 0x17], 0
jns 0x140057db5
mov rbp, qword [rsp + 0x48]
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x140057def
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x140057f42
call fcn.14014d860
mov r13, rbx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x5f], 0
jns 0x140057e00
mov rcx, qword [rsp + 0x48]
call fcn.14019a0bc
lea rbx, [r13 + 1]
cmp rbx, 1
mov qword [rsp + 0x28], rdi
ja 0x140057eac
mov rdi, r12
mov qword [rsi], 0
mov r12d, 1
cmp rbx, 2
jb 0x140057e36
call fcn.14014d860
mov rcx, r13
call fcn.140137f20
test r12d, r12d
mov rbx, qword [rsp + 0x30]
je 0x140057e8c
test rdi, rdi
je 0x140057e82
mov rcx, rdi
add rcx, 0x10
call fcn.140155ef0
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140057e61
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x140057e7a
call fcn.14014d860
mov rcx, qword [rdi]
call fcn.140137f20
mov rcx, rdi
call fcn.14019a0bc
xor r13d, r13d
xor ebx, ebx
jmp 0x140057d06
mov rcx, r14
call fcn.14021e6f0
mov rcx, r15
mov rdx, qword [rsp + 0x28]
mov r8, rbx
mov r9, r14
call fcn.140058b70
mov qword [rsi], rdi
jmp 0x140057e82
mov rcx, r13
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and eax, 0xffffff7f
xor ebp, ebp
mov ecx, eax
neg ecx
sbb rbp, rbp
test eax, eax
jne 0x140057e13
or rbp, r13
lea rdi, [r12 + 0x10]
mov rcx, rdi
call fcn.1401558f0
mov rcx, qword [r12]
mov qword [rsp + 0x20], rcx
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140057f19
mov rdi, r12
mov qword [rsi], 0
mov r12d, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140057e23
mov rcx, rdi
mov rdi, r12
mov rax, qword [rsp + 0x20]
mov qword [r12 + 8], rax
call fcn.140155f20
xor r12d, r12d
jmp 0x140057f0b
xor r13d, r13d
jmp 0x140057bff
xor ebx, ebx
jmp 0x140057cdb
xor r13d, r13d
jmp 0x140057de7