Function at 0x45a550
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 0x45a5b5
xor esi, esi
mov rdi, rbp
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x8c], eax
jmp 0x45a5dc
mov rax, qword [rsp + 0x50]
xchg qword [0x004fb238], rax
mov rax, qword [0x004fb238]
test rax, rax
jne 0x45a610
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 0x45a5d0
call fcn.0043b870
jmp 0x45a5d5
mov eax, 1
lock xadd qword [0x004fb238], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0xb0], rax
lea rax, [fcn.004b40f0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.004b4340]
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.0048cd50
movups xmm0, xmmword [rsp + 0xd8]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x60], rax
test sil, 1
jne 0x45a6e0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x45a6e0
mov rcx, qword [rsp + 0x98]
mov r8d, 1
call fcn.004018d0
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.0044a590
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 0x45a855
lea r13d, [r14 + 1]
call sub.KERNEL32.dll_GetLastError
cmp r13d, 0xa
jge 0x45a7d4
cmp eax, 5
jne 0x45a7a0
mov r14d, r13d
jmp 0x45a7ad
test r12d, r12d
je 0x45a7d4
xor r12d, r12d
cmp eax, 0x57
jne 0x45a7d4
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x45a5b0
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.004018d0
jmp 0x45a5b0
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 0x45a80d
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.004018d0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x45a828
mov r8d, 1
mov rcx, rbx
call fcn.004018d0
cmp rsi, 0xffffffffffffffff
je 0x45a836
mov rcx, rsi
call fcn.004be984
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 0x45a873
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.004018d0
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.0041d9f0
mov r14, qword [rsp + 0xa8]
test rax, rax
je 0x45a907
mov qword [r14 + 8], rdx
mov qword [r14], 1
mov rdx, qword [rsp + 0x90]
test rdx, rdx
jne 0x45a81a
jmp 0x45a828
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rdx
mov qword [r14], 0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x45a836
mov r8d, 1
mov rcx, rbx
call fcn.004018d0
jmp 0x45a836