Function at 0x4175fa
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x43], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x64], ecx
mov dword [rsp + 0x44], 8
xorps xmm6, xmm6
lea r12, [rsp + 0xb0]
lea rsi, [rsp + 0x98]
lea rbp, [rsp + 0x108]
lea r13, [rsp + 0x68]
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x88], rax
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rsp + 0x98], eax
mov rax, qword [0x00c060a8]
test rax, rax
jne 0x4176b2
movaps xmmword [rsp + 0xb0], xmm6
xor ecx, ecx
mov rdx, r12
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x4176a4
mov rax, qword [rsp + 0xb0]
jmp 0x4176a9
call fcn.00417aed
xchg qword [0x00c060a8], rax
jmp 0x41766c
mov eax, 1
lock xadd qword [0x00c060a8], rax
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x68], rsi
lea rax, [0x0040999c]
mov qword [rsp + 0x70], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0xb0], rax
mov ecx, 2
mov qword [rsp + 0xb8], rcx
and qword [rsp + 0xd0], 0
mov qword [rsp + 0x78], rbp
lea rax, [0x00409cca]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], rcx
lea rcx, [rsp + 0xf0]
mov rdx, r12
call fcn.00405037
test bl, 1
je 0x417746
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
call fcn.00404ef9
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x100]
lea rax, [rcx + r15]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
and word [rsp + 0x78], 0
mov dword [rsp + 0x80], 1
mov rcx, r13
call fcn.0040e058
test ax, ax
je 0x417877
mov edi, edx
mov rcx, r12
mov rdx, r13
call fcn.0040e09a
mov rcx, qword [rsp + 0xb0]
inc rcx
mov rax, 0xffffffffffffffff
cmove rcx, rax
cmp rcx, 5
mov eax, 4
cmovb rcx, rax
xor edx, edx
call fcn.0040d8ca
mov r14, rax
mov word [rax], di
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], 1
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
mov ebx, 1
mov rcx, r12
call fcn.0040e058
cmp ax, 1
jne 0x41786d
mov edi, edx
cmp rbx, qword [rsp + 0xa0]
jne 0x41785b
mov rcx, rbp
mov rdx, r12
call fcn.0040e09a
mov rdx, qword [rsp + 0x108]
inc rdx
mov rax, 0xffffffffffffffff
cmove rdx, rax
mov rcx, rsi
call fcn.0040d917
mov r14, qword [rsp + 0x98]
mov word [r14 + rbx*2], di
inc rbx
mov qword [rsp + 0xa8], rbx
jmp 0x417810
mov rbx, qword [rsp + 0xa0]
jmp 0x41787f
mov r14d, 2
xor ebx, ebx
mov eax, 0x10000
mov dword [rsp + 0x28], eax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x20], eax
and dword [rsp + 0x30], 0
mov rcx, r14
mov edx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x44]
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x4179ae
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xe8], rdi
mov rdi, rsi
mov rsi, r13
mov rax, qword [rsp + 0x88]
lea r13d, [rax + 1]
call fcn.0040ed84
mov r15, rax
mov rcx, rax
call fcn.0040f5cb
cmp r13d, 0xa
jge 0x417970
mov ebx, eax
mov ebp, edx
mov ecx, eax
mov r8d, 1
mov r9d, 5
call fcn.0040f5f1
test al, al
je 0x41791b
mov eax, r13d
mov qword [rsp + 0x88], rax
jmp 0x417943
cmp dword [rsp + 0x44], 0
je 0x417970
mov ecx, ebx
mov edx, ebp
mov r8d, 1
mov r9d, 0x57
call fcn.0040f5f1
mov dword [rsp + 0x44], 0
test al, al
je 0x417970
mov rcx, r15
call fcn.0040dfef
mov rcx, r14
mov rdx, qword [rsp + 0x90]
call fcn.0040ed9a
mov bl, 1
mov r13, rsi
mov rsi, rdi
lea rbp, [rsp + 0x108]
jmp 0x417660
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], r15
mov qword [rax], 1
mov rcx, r14
mov rdx, qword [rsp + 0x90]
call fcn.0040ed9a
mov rsi, 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0xe8]
jmp 0x417a2f
mov rcx, r14
mov rdx, rbx
call fcn.0040ed9a
lea r8, [rsp + 0xb0]
and qword [r8 + 0x10], 0
and dword [r8], 0
and qword [r8 + 0x1c], 0
and word [r8 + 0x24], 0
mov al, byte [rsp + 0x43]
mov byte [r8 + 0x21], al
xor al, 1
mov byte [r8 + 0x20], al
and dword [r8 + 0x18], 0
mov dword [rsp + 0x68], 0x18
and qword [rsp + 0x70], 0
mov dword [rsp + 0x78], 1
mov qword [r8 + 8], r13
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
mov rdx, r15
call fcn.0041322b
test rax, rax
je 0x417a61
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rdi
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.00404ef9
cmp rdi, 0xffffffffffffffff
je 0x417a45
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
and qword [rax], 0
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.00404ef9
jmp 0x417a45