Function at 0x1400eb830
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 r14, r8
mov rsi, rcx
mov r15, qword [rsp + 0x100]
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rsp + 0x70], xmm0
movzx r8d, byte [r15 + 0x1f]
test r8b, r8b
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r9
jns 0x1400eb89f
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x10]
jmp 0x1400eb8a3
lea rdx, [r15 + 8]
add r8, r8
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.1401d5010
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov rdx, rax
call fcn.1402d6090
lea rdx, str.GlobalChromeSetupMutex_
mov rcx, r12
mov r8, rbx
call fcn.1400b3560
cmp byte [r12 + 0x17], 0
jns 0x1400eb8e2
mov r12, qword [rsp + 0x58]
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x1400eb91c
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r12, 0xffffffffffffffff
je 0x1400ebc5c
call fcn.140209cc0
mov r13, r12
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x1400eb92d
mov rcx, qword [rsp + 0x58]
call fcn.140258e54
lea rax, [r13 + 1]
cmp rax, 1
ja 0x1400eb943
mov qword [rsi], 0
jmp 0x1400ebb92
lea rdx, str.GlobalChromeSetupExitEvent_
lea r12, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, r12
call fcn.1400b3560
cmp byte [r12 + 0x17], 0
jns 0x1400eb969
mov r12, qword [rsp + 0x58]
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 0x1400eb9aa
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp rbp, 0xffffffffffffffff
je 0x1400ebc64
call fcn.140209cc0
mov rbx, rbp
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x1400eb9bb
mov rcx, qword [rsp + 0x58]
call fcn.140258e54
lea rax, [rbx + 1]
cmp rax, 1
ja 0x1400eb9d1
mov qword [rsi], 0
jmp 0x1400ebb7b
mov ecx, 0x20
call fcn.140258e18
mov r12, rax
call fcn.140209cc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x50], rbx
call fcn.140209cc0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x48], 0
call fcn.140209cc0
test r13, r13
je 0x1400eba2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x48], r13
call fcn.140209cc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov rcx, r12
call fcn.1400ebc80
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x58]
lea r8, [rsp + 0x70]
mov rcx, rbp
call fcn.1400b3560
cmp byte [rbp + 0x17], 0
jns 0x1400eba60
mov rbp, qword [rsp + 0x58]
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x1400eba9a
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x1400ebc6b
call fcn.140209cc0
mov r13, rbx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x6f], 0
jns 0x1400ebaab
mov rcx, qword [rsp + 0x58]
call fcn.140258e54
lea rbx, [r13 + 1]
cmp rbx, 1
jbe 0x1400ebae7
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.1401fccd0
mov rcx, r13
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and eax, 0xffffff7f
xor ebp, ebp
mov ecx, eax
neg ecx
sbb rbp, rbp
test eax, eax
je 0x1400ebbe4
mov rdi, r12
mov qword [rsi], 0
mov r12d, 1
cmp rbx, 2
jb 0x1400ebb0a
call fcn.140209cc0
mov rcx, r13
call fcn.1401f5320
test r12d, r12d
je 0x1400ebb53
test rdi, rdi
je 0x1400ebb76
mov rcx, rdi
add rcx, 0x10
call fcn.140216430
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400ebb30
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x1400ebb49
call fcn.140209cc0
mov rcx, qword [rdi]
call fcn.1401f5320
mov rcx, rdi
call fcn.140258e54
jmp 0x1400ebb76
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1402e6ec0
mov rcx, r15
mov rdx, qword [rsp + 0x40]
mov r8, r14
mov r9, rbx
call fcn.1400ec870
mov qword [rsi], rdi
xor r13d, r13d
xor ebx, ebx
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400ebb92
call fcn.140209cc0
mov rcx, rbx
call fcn.1401f5320
lea rax, [r13 + 1]
cmp rax, 2
jb 0x1400ebba9
call fcn.140209cc0
mov rcx, r13
call fcn.1401f5320
cmp byte [rsp + 0x87], 0
jns 0x1400ebbbd
mov rcx, qword [rsp + 0x70]
call fcn.140258e54
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or rbp, r13
lea rcx, [r12 + 0x10]
mov qword [rsp + 0x30], rcx
call fcn.140215cc0
mov rdi, qword [r12]
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.1401fccd0
mov qword [rsp + 0x28], rdi
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1400ebc34
mov rdi, r12
mov qword [rsi], 0
mov r12d, 1
jmp 0x1400ebc4e
mov rdi, r12
mov rax, qword [rsp + 0x28]
mov qword [r12 + 8], rax
mov rcx, qword [rsp + 0x30]
call fcn.140216460
xor r12d, r12d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1400ebaf7
xor r13d, r13d
jmp 0x1400eb914
xor ebx, ebx
jmp 0x1400eb9a1
xor r13d, r13d
jmp 0x1400eba92