Function at 0x18004f100
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x28], 0
mov rbx, rcx
jne 0x18004f118
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
test dl, dl
je 0x18004f1aa
mov eax, dword [rcx + 0x20]
cmp eax, 2
jne 0x18004f13b
call fcn.18005a1d0
lea r8, str.7A504455_92EF_4B25_8E3F_D8F56B6FCF22
jmp 0x18004f14c
cmp eax, 1
jne 0x18004f1aa
call fcn.18005a1d0
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 0x18004f16d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
test dil, dil
je 0x18004f1aa
mov rcx, qword [rbx + 0x28]
movzx eax, byte [rcx + 0xd8]
test al, al
je 0x18004f197
call fcn.180059bc0
test al, al
je 0x18004f197
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 0x1800582a0
mov rcx, qword [rbx + 0x28]
call fcn.1800585d0
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 0x1800582eb
xor al, al
jmp 0x180058593
call fcn.180059bc0
test al, al
jne 0x1800582e4
mov rcx, qword [rsi + 0x48]
mov edi, 0xffffffff
test rcx, rcx
je 0x18005835a
cmp dword [rcx + 8], r12d
je 0x18005830d
call fcn.180057de0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x48]
call fcn.18004fbc0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x18005835a
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18005835a
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 0x18005835a
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [rsi + 0x58], 0
mov ecx, 0x10
call fcn.18011e4f4
mov r15, rax
mov qword [rbp - 1], rax
lea rax, [0x1800588c0]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], r12d
mov ecx, 0x18
call fcn.18011e4f4
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.180059df0
and ebx, 0xfffffffe
mov dword [rbp - 0x59], ebx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1800583c5
mov edx, 0x18
call fcn.18011e914
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov rdx, r15
lea rcx, [rbp - 0x51]
call fcn.18005a0c0
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 0x18005842a
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18005842a
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 0x18005842a
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 0x180058584
mov edx, 2
lea rcx, [0x180213e70]
call fcn.1800b6b60
mov r15d, eax
test eax, eax
je 0x180058526
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.1800b7090
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.1800b6bb0
cmp r15d, 1
jbe 0x1800584d5
lea rdx, [rbp + 7]
lea rcx, [0x180213e70]
call fcn.1800b6f50
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x180058515
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058510
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800585bb
call fcn.18011e914
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 0x180058539
call fcn.180057de0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0x48]
call fcn.18004fbc0
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180058584
mov eax, edi
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x180058584
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 0x180058584
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.18011e4d0
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.180146ae4
int3