Function at 0x1400452e0
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, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x100]
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx r8d, byte [rbx + 0x1f]
test r8b, r8b
jns 0x14004532d
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
jmp 0x140045331
lea rdx, [rbx + 8]
add r8, r8
lea rcx, [rsp + 0x78]
call fcn.14000d9b0
lea rdi, [rsp + 0x78]
mov rcx, rdi
mov rdx, rax
call fcn.14005a940
lea rdx, str.GlobalChromeSetupMutex_
lea rbp, [rsp + 0x58]
mov rcx, rbp
mov r8, rdi
call fcn.1400028b0
cmp byte [rbp + 0x17], 0
jns 0x140045370
mov rbp, qword [rsp + 0x58]
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea rcx, [rsp + 0x70]
mov qword [rcx], 0
mov rdx, rax
call fcn.14000b260
cmp byte [rsp + 0x6f], 0
jns 0x1400453a2
mov rcx, qword [rsp + 0x58]
call fcn.140180390
mov rax, qword [rsp + 0x70]
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x14004542b
mov qword [rsi], 0
inc rax
cmp rax, 2
jb 0x1400453f0
call fcn.140054e70
mov r8, qword [rsp + 0xd8]
lea rdi, [rsp + 0x70]
mov rcx, qword [rdi]
mov rdx, rdi
mov r9, rax
call fcn.14006a2c0
mov rcx, qword [rdi]
call fcn.14006a250
mov qword [rdi], 0
cmp byte [rsp + 0x8f], 0
jns 0x140045404
mov rcx, qword [rsp + 0x78]
call fcn.140180390
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140180700
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.GlobalChromeSetupExitEvent_
lea rbp, [rsp + 0x58]
lea r8, [rsp + 0x78]
mov rcx, rbp
call fcn.1400028b0
cmp byte [rbp + 0x17], 0
jns 0x14004544f
mov rbp, qword [rsp + 0x58]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [rsp + 0x50]
mov qword [rcx], 0
mov rdx, rax
call fcn.14000b260
cmp byte [rsp + 0x6f], 0
jns 0x140045487
mov rcx, qword [rsp + 0x58]
call fcn.140180390
mov r13, qword [rsp + 0x50]
lea rax, [r13 + 1]
cmp rax, 1
ja 0x1400454e4
mov qword [rsi], 0
mov rax, qword [rsp + 0x50]
inc rax
cmp rax, 2
jb 0x1400454da
call fcn.140054e70
mov r8, qword [rsp + 0xd8]
lea rdi, [rsp + 0x50]
mov rcx, qword [rdi]
mov rdx, rdi
mov r9, rax
call fcn.14006a2c0
mov rcx, qword [rdi]
call fcn.14006a250
mov qword [rdi], 0
mov rax, qword [rsp + 0x70]
jmp 0x1400453b8
mov ecx, 0x20
call fcn.140180340
mov qword [rsp + 0x28], rax
xor edi, edi
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x50]
mov qword [rbp], rdi
call fcn.140054e70
mov r8, qword [rsp + 0xd8]
mov rcx, r13
mov rdx, rbp
mov r9, rax
call fcn.14006a2c0
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14000b260
mov qword [rsp + 0x40], rdi
mov rbp, qword [rsp + 0x70]
mov qword [rsp + 0x70], rdi
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140045564
call fcn.140054e70
mov r8, qword [rsp + 0xd8]
lea rdx, [rsp + 0x70]
mov rcx, rbp
mov r9, rax
call fcn.14006a2c0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbp
call fcn.14000b260
lea r8, [rsp + 0x48]
mov r13, qword [rsp + 0x28]
mov rcx, r13
mov rdx, rdi
call fcn.140045770
lea rdx, str.GlobalChromeSetupExitEventMutex_
lea rbp, [rsp + 0x58]
lea r8, [rsp + 0x78]
mov rcx, rbp
call fcn.1400028b0
cmp byte [rbp + 0x17], 0
jns 0x1400455ad
mov rbp, qword [rsp + 0x58]
xor ecx, ecx
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea rcx, [rsp + 0x38]
mov qword [rcx], 0
mov rdx, rax
call fcn.14000b260
cmp byte [rsp + 0x6f], 0
jns 0x1400455df
mov rcx, qword [rsp + 0x58]
call fcn.140180390
mov rbp, qword [rsp + 0x38]
lea rax, [rbp + 1]
cmp rax, 1
ja 0x1400455ff
mov qword [rsi], 0
mov ebp, 1
jmp 0x140045690
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.140060290
mov rcx, rbp
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and eax, 0xffffff7f
xor r13d, r13d
cmp eax, 1
sbb r13, r13
not r13
or r13, rbp
test eax, eax
jne 0x140045670
mov rdi, qword [rsp + 0x28]
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rcx
call fcn.140098950
mov rbp, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rcx], 0x4c4b40
call fcn.140060290
mov rcx, rbp
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14004574d
mov qword [rsi], 0
mov ebp, 1
cmp r13, 0xffffffffffffffff
je 0x14004568b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov r13, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
inc rax
cmp rax, 2
jb 0x1400456cd
call fcn.140054e70
mov r8, qword [rsp + 0xd8]
lea rdi, [rsp + 0x38]
mov rcx, qword [rdi]
mov rdx, rdi
mov r9, rax
call fcn.14006a2c0
mov rcx, qword [rdi]
call fcn.14006a250
mov qword [rdi], 0
test ebp, ebp
je 0x14004572c
mov rcx, r13
add rcx, 0x10
call fcn.140068120
mov rcx, qword [r13 + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400456ed
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rax, qword [r13]
inc rax
cmp rax, 2
jb 0x14004571f
call fcn.140054e70
mov r8, qword [rsp + 0xd8]
mov rcx, qword [r13]
mov rdx, r13
mov r9, rax
call fcn.14006a2c0
mov rcx, qword [r13]
call fcn.14006a250
mov rcx, r13
call fcn.140180390
jmp 0x14004549d
mov rcx, r14
call fcn.14008a9e0
mov rcx, rbx
mov rdx, r12
mov r8, r15
mov r9, r14
call fcn.1400445b0
mov qword [rsi], r13
jmp 0x14004549d
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rbp
mov rcx, qword [rsp + 0x30]
call fcn.140098940
xor ebp, ebp
jmp 0x14004567c