Function at 0x4dcd80
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov byte [rsp + 0x4f], r8b
mov qword [rsp + 0xa8], rcx
mov byte [rsp + 0x4e], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x88], ecx
xor r14d, r14d
mov r12d, 8
mov sil, 1
xorps xmm6, xmm6
lea r15, [rsp + 0x50]
lea rdi, [rsp + 0xb0]
jmp 0x4dcde5
xor esi, esi
mov rdi, rbp
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rsp + 0x8c], eax
jmp 0x4dce0c
mov rax, qword [rsp + 0x50]
xchg qword [0x00684238], rax
mov rax, qword [0x00684238]
test rax, rax
jne 0x4dce40
movaps xmmword [rsp + 0x50], xmm6
xor ecx, ecx
mov rdx, r15
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x4dce00
call fcn.004be0a0
jmp 0x4dce05
mov eax, 1
lock xadd qword [0x00684238], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0xb0], rax
lea rax, [fcn.00538be0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.00538e30]
mov qword [rsp + 0xc8], rax
lea rax, str..pipe__rust_anonymous_pipe1__..
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0xd8]
mov rdx, r15
call fcn.0050f600
movups xmm0, xmmword [rsp + 0xd8]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x60], rax
test sil, 1
jne 0x4dcf10
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x4dcf10
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.00422030
mov r13, qword [rsp + 0x60]
mov qword [rsp + 0xa0], r13
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x90], xmm0
mov rbx, qword [rsp + 0x98]
lea rax, [rbx + r13]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], 0
mov dword [rsp + 0x68], 1
mov rbp, rdi
mov rcx, rdi
mov rdx, r15
call fcn.004ccdc0
mov rdi, qword [rsp + 0xb8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rdi
mov edx, dword [rsp + 0x88]
mov r8d, r12d
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x4dd085
lea r13d, [r14 + 1]
call sub.kernel32.dll_GetLastError
cmp r13d, 0xa
jge 0x4dd004
cmp eax, 5
jne 0x4dcfd0
mov r14d, r13d
jmp 0x4dcfdd
test r12d, r12d
je 0x4dd004
xor r12d, r12d
cmp eax, 0x57
jne 0x4dd004
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x4dcde0
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00422030
jmp 0x4dcde0
shl rax, 0x20
or rax, 2
mov r14, qword [rsp + 0xa8]
mov qword [r14 + 8], rax
mov qword [r14], 1
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x4dd03d
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00422030
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x4dd058
mov r8d, 1
mov rcx, rbx
call fcn.00422030
cmp rsi, 0xffffffffffffffff
je 0x4dd066
mov rcx, rsi
call fcn.00543234
mov rax, r14
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x4dd0a3
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.00422030
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0
movzx eax, byte [rsp + 0x4e]
mov byte [rsp + 0x71], al
xor al, 1
mov byte [rsp + 0x70], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movzx eax, byte [rsp + 0x4f]
mov dword [rsp + 0xb0], 0x18
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xc0], eax
mov qword [rsp + 0x50], rbp
lea r8, [rsp + 0x50]
mov rcx, rbx
mov rdx, r13
call fcn.004a0220
mov r14, qword [rsp + 0xa8]
test rax, rax
je 0x4dd137
mov qword [r14 + 8], rdx
mov qword [r14], 1
mov rdx, qword [rsp + 0x90]
test rdx, rdx
jne 0x4dd04a
jmp 0x4dd058
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rdx
mov qword [r14], 0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x4dd066
mov r8d, 1
mov rcx, rbx
call fcn.00422030
jmp 0x4dd066