Function at 0x44e5a0
Capabilities:
Create pipe
Generate random numbers via winapi
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, 0x40080002
lea esi, [esp + 0x88]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], 8
sub eax, edx
mov dword [esp + 0x7c], eax
mov al, 1
nop dword [eax + eax]
mov ebx, eax
call fcn.004b4890
mov dword [esp + 0x80], eax
mov eax, dword [0x50111c]
test eax, eax
je 0x44e613
jmp 0x44e64c
mov eax, dword [esp + 0x50]
xchg dword [0x50111c], eax
mov eax, dword [0x50111c]
test eax, eax
jne 0x44e64c
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
push 2
push 0x10
lea eax, [esp + 0x58]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x44e600
mov ecx, esi
call sym.std::sys::windows::rand::fallback_rng::he92dd41b7e25e7b5
mov eax, dword [esp + 0x88]
xchg dword [0x50111c], eax
mov eax, dword [0x50111c]
test eax, eax
je 0x44e613
mov eax, 1
lock xadd dword [0x50111c], eax
mov dword [esp + 0x58], 0x4c3ce8
mov dword [esp + 0x5c], 2
mov dword [esp + 0x50], 0
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x3c], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::h4b8e71a493729f24
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::h4b8e71a493729f24
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 2
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
call sym.alloc::fmt::format::format_inner::h7d706fe4c0bc66fd
add esp, 8
movsd xmm0, qword [esp + 0xc]
mov eax, dword [esp + 0x14]
test bl, 1
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x58], eax
jne 0x44e6f0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44e6f0
push 1
push eax
push dword [esp + 0x2c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
mov dword [esp + 0x28], eax
movsd qword [esp + 0x20], xmm0
test eax, eax
mov ebx, dword [esp + 0x24]
lea ecx, [ebx + eax]
mov dword [esp + 0x34], ecx
je 0x44e720
movzx eax, byte [ebx]
test al, al
js 0x44e740
inc ebx
mov edi, eax
jmp 0x44e790
xor edi, edi
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
xor esi, esi
jmp 0x44e7be
movzx edx, byte [ebx + 1]
mov edi, eax
and edi, 0x1f
and edx, 0x3f
cmp al, 0xdf
jbe 0x44e788
movzx ecx, byte [ebx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x44eb0a
movzx eax, byte [ebx + 3]
and edi, 7
shl ecx, 6
add ebx, 4
shl edi, 0x12
and eax, 0x3f
or eax, ecx
or edi, eax
cmp edi, 0xffff
jbe 0x44e790
jmp 0x44eb1e
shl edi, 6
add ebx, 2
or edi, edx
mov eax, 1
mov dword [esp + 4], 0
mov esi, dword [esp + 0x34]
mov ecx, 0xffffffff
mov dword [esp], ebx
sub esi, ebx
add esi, 3
cmovb esi, ecx
shr esi, 2
add esi, eax
mov ax, 1
mov dword [esp + 0x1c], eax
cmp esi, 4
mov eax, 3
cmovb esi, eax
cmp esi, 0x3ffffffe
ja 0x44ecaf
lea ebx, [esi + esi + 2]
test ebx, ebx
js 0x44ecaf
push 2
push ebx
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x44eca2
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp]
inc esi
mov word [eax], di
mov edi, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
inc ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 4]
jmp 0x44e839
mov edx, dword [esp + 8]
mov word [eax + edi*2], dx
inc edi
test ebx, ebx
je 0x44e880
test cx, cx
je 0x44e860
mov edx, ecx
xor ecx, ecx
mov dword [esp + 8], edx
cmp edi, dword [esp + 0x18]
jne 0x44e830
jmp 0x44e990
cmp ebx, dword [esp + 0x34]
je 0x44e880
movzx ecx, byte [ebx]
test cl, cl
js 0x44e8b3
inc ebx
mov dword [esp + 8], ecx
xor ecx, ecx
cmp edi, dword [esp + 0x18]
jne 0x44e830
jmp 0x44e990
cmp word [esp + 0x1c], 1
jne 0x44ea70
cmp edi, esi
mov ebx, 0
mov edx, 0
mov dword [esp + 8], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
jne 0x44e830
jmp 0x44e9b4
mov dword [esp], ebx
movzx ebx, byte [ebx + 1]
mov edx, ecx
and edx, 0x1f
and ebx, 0x3f
cmp cl, 0xdf
jbe 0x44e91d
mov dword [esp + 8], edx
mov edx, ebx
mov ebx, dword [esp]
shl edx, 6
movzx ebx, byte [ebx + 2]
and ebx, 0x3f
or ebx, edx
cmp cl, 0xf0
mov dword [esp + 4], ebx
jb 0x44e93c
mov edx, dword [esp]
mov ebx, dword [esp + 4]
movzx ecx, byte [edx + 3]
add edx, 4
shl ebx, 6
mov dword [esp], edx
mov edx, dword [esp + 8]
and ecx, 0x3f
and edx, 7
or ecx, ebx
mov ebx, dword [esp]
shl edx, 0x12
or edx, ecx
mov ecx, edx
cmp ecx, 0xffff
jbe 0x44e86e
jmp 0x44e959
mov ecx, dword [esp]
shl edx, 6
or edx, ebx
mov dword [esp + 8], edx
add ecx, 2
mov ebx, ecx
xor ecx, ecx
cmp edi, dword [esp + 0x18]
jne 0x44e830
jmp 0x44e990
mov ecx, dword [esp + 8]
mov ebx, dword [esp]
shl ecx, 0xc
add ebx, 3
add ecx, dword [esp + 4]
cmp ecx, 0xffff
jbe 0x44e86e
lea edx, [ecx + 0xff0000]
and ecx, 0x3ff
shr edx, 0xa
or ecx, 0xdc00
or edx, 0xd800
mov dword [esp + 8], edx
cmp edi, dword [esp + 0x18]
jne 0x44e830
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [esp + 0x34]
mov eax, 0xffffffff
sub edx, ebx
add edx, 3
cmovb edx, eax
shr edx, 2
cmp cx, 1
sbb edx, 0xffffffff
cmp word [esp + 0x1c], 1
sbb edx, 0xffffffff
inc edx
add edx, edi
jb 0x44ec87
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
add eax, eax
cmp eax, edx
mov esi, eax
ja 0x44e9cf
mov esi, edx
cmp esi, 5
mov dword [esp], ebx
jae 0x44e9dc
mov esi, 4
xor ebx, ebx
cmp esi, 0x40000000
lea edx, [esi + esi]
mov dword [esp + 4], ecx
setb bl
add ebx, ebx
cmp dword [esp + 0x18], 0
je 0x44ea0a
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, 2
jmp 0x44ea0c
xor eax, eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x38]
push eax
push ebx
call sym.alloc::raw_vec::finish_grow::h3dcb0958f95cb943
add esp, 8
cmp dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
je 0x44ea51
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp]
cmp ecx, 0x80000001
jne 0x44ec83
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 4]
jmp 0x44e830
mov ebx, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], esi
jmp 0x44e830
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esp + 0x44]
push dword [esp + 0x94]
push edi
call sub.KERNEL32.dll_CreateNamedPipeW
mov esi, eax
cmp eax, 0xffffffff
jne 0x44eb9a
call sub.KERNEL32.dll_GetLastError
cmp dword [esp + 0x4c], 0xa
jge 0x44eb49
cmp eax, 5
jne 0x44ead0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jmp 0x44eae4
cmp dword [esp + 0x30], 0
je 0x44eb49
cmp eax, 0x57
mov dword [esp + 0x30], 0
jne 0x44eb49
xor eax, eax
test ebx, ebx
lea esi, [esp + 0x88]
je 0x44e5e0
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
xor eax, eax
jmp 0x44e5e0
shl edi, 0xc
add ebx, 3
or edi, ecx
cmp edi, 0xffff
jbe 0x44e790
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 2
shr ecx, 0xa
or edi, 0xdc00
mov dword [esp + 4], edi
or ecx, 0xd800
mov edi, ecx
jmp 0x44e79d
mov ecx, dword [esp + 0x2c]
test ebx, ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x44eb6f
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44eb86
push 1
push eax
push dword [esp + 0x2c]
call sym.___rust_dealloc
add esp, 0xc
cmp esi, 0xffffffff
je 0x44ec45
push esi
call sub.KERNEL32.dll_CloseHandle
jmp 0x44ec45
test ebx, ebx
je 0x44ebac
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], 0
xorps xmm0, xmm0
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
mov byte [esp + 0x6d], al
xor al, 1
mov byte [esp + 0x6c], al
lea eax, [esp + 0x38]
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], eax
mov edx, edi
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x2c]
call sym.std::sys::windows::fs::File::open::h58641c3019439e6c
add esp, 8
movzx eax, byte [esp + 0xc]
cmp al, 4
jne 0x44ec4d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [ecx], 0
test eax, eax
je 0x44ec45
push 1
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0xf]
mov edx, dword [esp + 0x2c]
movzx ebx, word [esp + 0xd]
mov edi, dword [esp + 0x10]
mov byte [edx + 7], cl
mov word [edx + 5], bx
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x44eb77
jmp 0x44eb86
test ecx, ecx
jne 0x44ec92
mov dword [esp + 0x14], edi
call sym.alloc::raw_vec::capacity_overflow::he71b25d1f8f09560
jmp 0x44ecb4
mov dword [esp + 0x14], edi
push ecx
push eax
call sym.alloc::alloc::handle_alloc_error::h1460775c4f8d05ce
add esp, 8
jmp 0x44ecb4
push 2
push ebx
call sym.alloc::alloc::handle_alloc_error::h1460775c4f8d05ce
add esp, 8
jmp 0x44ecb4
call sym.alloc::raw_vec::capacity_overflow::he71b25d1f8f09560
ud2