Function at 0x18004ba30
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x28], 0
mov rbx, rcx
jne 0x18004ba48
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
test dl, dl
je 0x18004bada
mov eax, dword [rcx + 0x20]
cmp eax, 2
jne 0x18004ba6b
call fcn.180056b00
lea r8, str.7A504455_92EF_4B25_8E3F_D8F56B6FCF22
jmp 0x18004ba7c
cmp eax, 1
jne 0x18004bada
call fcn.180056b00
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 0x18004ba9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
test dil, dil
je 0x18004bada
mov rcx, qword [rbx + 0x28]
movzx eax, byte [rcx + 0xd8]
test al, al
je 0x18004bac7
call fcn.1800564f0
test al, al
je 0x18004bac7
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 0x180054bd0
mov rcx, qword [rbx + 0x28]
call fcn.180054f00
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 [0x180201020]
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 0x180054c1b
xor al, al
jmp 0x180054ec3
call fcn.1800564f0
test al, al
jne 0x180054c14
mov rcx, qword [rsi + 0x48]
mov edi, 0xffffffff
test rcx, rcx
je 0x180054c8a
cmp dword [rcx + 8], r12d
je 0x180054c3d
call fcn.180054710
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x48]
call fcn.18004c4f0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x180054c8a
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180054c8a
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 0x180054c8a
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 8]
mov byte [rsi + 0x58], 0
mov ecx, 0x10
call fcn.1801167a4
mov r15, rax
mov qword [rbp - 1], rax
lea rax, [0x1800551f0]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], r12d
mov ecx, 0x18
call fcn.1801167a4
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.180056720
and ebx, 0xfffffffe
mov dword [rbp - 0x59], ebx
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x180054cf5
mov edx, 0x18
call fcn.180116bc4
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov rdx, r15
lea rcx, [rbp - 0x51]
call fcn.1800569f0
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 0x180054d5a
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180054d5a
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 0x180054d5a
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 0x180054eb4
mov edx, 2
lea rcx, [0x180207cd0]
call fcn.1800b31d0
mov r15d, eax
test eax, eax
je 0x180054e56
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.1800b3700
mov dword [rsp + 0x28], 0x50
lea rax, str.RC::RCNamePipeClient::Start
mov qword [rsp + 0x20], rax
lea r9, str.d:_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
lea r8, [rbp + 7]
mov edx, 2
lea rcx, [0x180207cd0]
call fcn.1800b3220
cmp r15d, 1
jbe 0x180054e05
lea rdx, [rbp + 7]
lea rcx, [0x180207cd0]
call fcn.1800b35c0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x180054e45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180054e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180054eeb
call fcn.180116bc4
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 0x180054e69
call fcn.180054710
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0x48]
call fcn.18004c4f0
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x180054eb4
mov eax, edi
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x180054eb4
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 0x180054eb4
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.180116780
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.18013ed94
int3