Function at 0x18004ef80
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x28], 0
mov rbx, rcx
jne 0x18004ef98
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
test dl, dl
je 0x18004f02a
mov eax, dword [rcx + 0x20]
cmp eax, 2
jne 0x18004efbb
call fcn.18005a050
lea r8, str.7A504455_92EF_4B25_8E3F_D8F56B6FCF22
jmp 0x18004efcc
cmp eax, 1
jne 0x18004f02a
call fcn.18005a050
lea r8, str.GlobalRCAV7E47DA93_AF41_4450_90CD_31C78125287D_RTPROTECT_MUTEX
xor edx, edx
mov ecx, 0x100000
xor dil, dil
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x18004efed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
test dil, dil
je 0x18004f02a
mov rcx, qword [rbx + 0x28]
movzx eax, byte [rcx + 0xd8]
test al, al
je 0x18004f017
call fcn.180059a40
test al, al
je 0x18004f017
mov rdi, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x28]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp 0x180058120
mov rcx, qword [rbx + 0x28]
call fcn.180058450
mov rdi, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rbx
ret
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rbp - 0x59], r12d
cmp qword [rcx + 0x40], r12
jne 0x18005816b
xor al, al
jmp 0x180058413
call fcn.180059a40
test al, al
jne 0x180058164
mov rcx, qword [rsi + 0x48]
mov edi, 0xffffffff
test rcx, rcx
je 0x1800581da
cmp dword [rcx + 8], r12d
je 0x18005818d
call fcn.180057c60
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x48]
call fcn.18004fa40
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1800581da
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800581da
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800581da
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [rsi + 0x58], 0
mov ecx, 0x10
call fcn.18011e374
mov r15, rax
mov qword [rbp - 1], rax
lea rax, [0x180058740]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], r12d
mov ecx, 0x18
call fcn.18011e374
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rbp - 0x41], rax
mov ebx, 1
mov dword [rbp - 0x59], ebx
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.180059c70
and ebx, 0xfffffffe
mov dword [rbp - 0x59], ebx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x180058245
mov edx, 0x18
call fcn.18011e794
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov rdx, r15
lea rcx, [rbp - 0x51]
call fcn.180059f40
nop
mov rcx, qword [rbp - 0x51]
mov rax, qword [rsi + 0x48]
mov qword [rbp - 0x51], rax
mov qword [rsi + 0x48], rcx
mov rax, qword [rbp - 0x49]
mov rbx, qword [rsi + 0x50]
mov qword [rbp - 0x49], rbx
mov qword [rsi + 0x50], rax
test rbx, rbx
je 0x1800582aa
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800582aa
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800582aa
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + 8]
mov edx, 0x1388
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
je 0x180058404
mov edx, 2
lea rcx, [0x180213e70]
call fcn.1800b69e0
mov r15d, eax
test eax, eax
je 0x1800583a6
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
mov r8d, ebx
lea rdx, str.wait_event_maybe_time_out___d
lea rcx, [rbp + 7]
call fcn.1800b6f10
mov dword [rsp + 0x28], 0x50
lea rax, str.RC::RCNamePipeClient::Start
mov qword [rsp + 0x20], rax
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
lea r8, [rbp + 7]
mov edx, 2
lea rcx, [0x180213e70]
call fcn.1800b6a30
cmp r15d, 1
jbe 0x180058355
lea rdx, [rbp + 7]
lea rcx, [0x180213e70]
call fcn.1800b6dd0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x180058395
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058390
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005843b
call fcn.18011e794
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r12w
mov byte [rsi + 0x58], 1
mov rcx, qword [rsi + 0x48]
cmp dword [rcx + 8], 0
je 0x1800583b9
call fcn.180057c60
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0x48]
call fcn.18004fa40
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180058404
mov eax, edi
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x180058404
mov rbx, qword [rbp - 0x21]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180058404
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18011e350
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.180146964
int3