Function at 0x18004d280
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x28], 0
mov rbx, rcx
jne 0x18004d298
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
test dl, dl
je 0x18004d32a
mov eax, dword [rcx + 0x20]
cmp eax, 2
jne 0x18004d2bb
call fcn.180058350
lea r8, str.7A504455_92EF_4B25_8E3F_D8F56B6FCF22
jmp 0x18004d2cc
cmp eax, 1
jne 0x18004d32a
call fcn.180058350
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 0x18004d2ed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
test dil, dil
je 0x18004d32a
mov rcx, qword [rbx + 0x28]
movzx eax, byte [rcx + 0xd8]
test al, al
je 0x18004d317
call fcn.180057d40
test al, al
je 0x18004d317
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 0x180056420
mov rcx, qword [rbx + 0x28]
call fcn.180056750
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 [0x18020b020]
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 0x18005646b
xor al, al
jmp 0x180056713
call fcn.180057d40
test al, al
jne 0x180056464
mov rcx, qword [rsi + 0x48]
mov edi, 0xffffffff
test rcx, rcx
je 0x1800564da
cmp dword [rcx + 8], r12d
je 0x18005648d
call fcn.180055f60
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x48]
call fcn.18004dd40
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1800564da
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800564da
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 0x1800564da
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [rsi + 0x58], 0
mov ecx, 0x10
call fcn.18011c674
mov r15, rax
mov qword [rbp - 1], rax
lea rax, [0x180056a40]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], r12d
mov ecx, 0x18
call fcn.18011c674
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.180057f70
and ebx, 0xfffffffe
mov dword [rbp - 0x59], ebx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x180056545
mov edx, 0x18
call fcn.18011ca94
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov rdx, r15
lea rcx, [rbp - 0x51]
call fcn.180058240
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 0x1800565aa
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800565aa
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 0x1800565aa
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 0x180056704
mov edx, 2
lea rcx, [0x180211d40]
call fcn.1800b4ce0
mov r15d, eax
test eax, eax
je 0x1800566a6
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.1800b5210
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, [0x180211d40]
call fcn.1800b4d30
cmp r15d, 1
jbe 0x180056655
lea rdx, [rbp + 7]
lea rcx, [0x180211d40]
call fcn.1800b50d0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x180056695
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180056690
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005673b
call fcn.18011ca94
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 0x1800566b9
call fcn.180055f60
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0x48]
call fcn.18004dd40
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180056704
mov eax, edi
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x180056704
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 0x180056704
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.18011c650
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.180144c64
int3