Function at 0x45e720
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, 0xb0
mov eax, 0x40080002
mov bl, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 8
sub eax, edx
mov dword [esp + 0x80], eax
nop word [eax + eax]
call fcn.004ae518
mov dword [esp + 0x88], eax
mov eax, dword [0x4f1114]
test eax, eax
je 0x45e793
jmp 0x45e7d1
mov eax, dword [esp + 0x50]
xchg dword [0x4f1114], eax
mov eax, dword [0x4f1114]
test eax, eax
jne 0x45e7d1
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 0x45e780
lea ecx, [esp + 0x98]
call dbg.fallback_rng
mov eax, dword [esp + 0x98]
xchg dword [0x4f1114], eax
mov eax, dword [0x4f1114]
test eax, eax
je 0x45e793
mov eax, 1
lock xadd dword [0x4f1114], eax
mov dword [esp + 0x50], 0x4c07e4
mov dword [esp + 0x54], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::h4509cd4bc876950e
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::h4509cd4bc876950e
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 2
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x90]
push eax
call dbg.format_inner
add esp, 8
test esi, esi
sete al
or bl, al
test bl, 1
jne 0x45e85d
push 1
push esi
push dword [esp + 0x18]
call sym.___rust_dealloc
add esp, 0xc
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
lea edx, [esi + ecx]
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x2c], edx
je 0x45e8a0
movzx eax, byte [esi]
test al, al
js 0x45e8c0
lea ebx, [esi + 1]
mov edi, eax
jmp 0x45e910
mov dword [esp + 0x1c], 0
xor edi, edi
mov dword [esp + 0x18], 0
xor ebx, ebx
xor edx, edx
jmp 0x45e93b
movzx edx, byte [esi + 1]
mov edi, eax
and edi, 0x1f
and edx, 0x3f
cmp al, 0xdf
jbe 0x45e908
movzx ecx, byte [esi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x45ec76
movzx eax, byte [esi + 3]
and edi, 7
shl ecx, 6
lea ebx, [esi + 4]
shl edi, 0x12
and eax, 0x3f
or eax, ecx
or edi, eax
cmp edi, 0xffff
jbe 0x45e910
jmp 0x45ec8a
shl edi, 6
lea ebx, [esi + 2]
or edi, edx
mov eax, 1
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x2c]
mov ecx, 0xffffffff
sub edx, ebx
add edx, 3
cmovb edx, ecx
shr edx, 2
add edx, eax
mov ax, 1
mov dword [esp + 0x18], eax
cmp edx, 4
mov eax, 3
mov dword [esp + 0xc], edi
cmovb edx, eax
cmp edx, 0x3ffffffe
ja 0x45ee30
lea esi, [edx + edx + 2]
test esi, esi
js 0x45ee30
mov eax, dword [0x4d8218]
mov edi, edx
movzx eax, byte [eax]
push 2
push esi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x45ee17
mov ecx, eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
inc edi
mov dword [esp + 0x14], ecx
inc eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xc]
mov word [ecx], ax
mov eax, ecx
mov ecx, 1
jmp 0x45e9bb
mov esi, edi
xor edi, edi
mov word [eax + ecx*2], di
inc ecx
mov edi, esi
mov esi, dword [esp + 0x1c]
test ebx, ebx
mov dword [esp + 0xc], ecx
je 0x45ea40
test si, si
je 0x45ea20
xor ecx, ecx
mov dword [esp + 8], esi
cmp dword [esp + 0xc], edi
jne 0x45ea10
mov esi, dword [esp + 0x2c]
mov eax, 0xffffffff
sub esi, ebx
add esi, 3
cmovb esi, eax
shr esi, 2
cmp cx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc]
sbb esi, 0xffffffff
cmp dx, 1
sbb esi, 0xffffffff
jmp 0x45ea63
mov esi, edi
mov dword [esp + 0x1c], ecx
jmp 0x45eb0c
cmp ebx, dword [esp + 0x2c]
je 0x45ea40
movzx ecx, byte [ebx]
test cl, cl
js 0x45eb19
mov dword [esp + 8], ecx
inc ebx
xor ecx, ecx
jmp 0x45e9d2
cmp dx, 1
jne 0x45ebe0
xor ebx, ebx
xor edx, edx
cmp ecx, edi
mov esi, 0
mov dword [esp + 8], 0
jne 0x45e9b0
inc esi
add esi, ecx
jb 0x45ee01
lea eax, [edi + edi]
mov ecx, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x4c], edi
cmp eax, esi
cmova esi, eax
cmp esi, 5
cmovb esi, ecx
xor edx, edx
cmp esi, 0x40000000
setb cl
test edi, edi
je 0x45eaae
mov edi, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], eax
jmp 0x45eab8
mov edi, ebx
mov dword [esp + 0x54], 0
mov dl, cl
lea eax, [esi + esi]
add edx, edx
lea ebx, [esp + 0x50]
lea ecx, [esp + 0x38]
push ebx
push eax
call sym.alloc::raw_vec::finish_grow::h5e0168a6cd91d060
add esp, 8
cmp dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
je 0x45eb02
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
cmp eax, 0x80000001
jne 0x45edf9
mov ebx, edi
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 8]
jmp 0x45e9b4
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ebx, edi
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 8]
jmp 0x45e9b4
mov esi, ecx
and esi, 0x1f
mov dword [esp + 8], esi
movzx esi, byte [ebx + 1]
and esi, 0x3f
cmp cl, 0xdf
mov dword [esp + 0x1c], esi
jbe 0x45eb7d
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
movzx edx, byte [ebx + 2]
shl esi, 6
and edx, 0x3f
or edx, esi
cmp cl, 0xf0
jb 0x45eb96
movzx ecx, byte [ebx + 3]
mov esi, dword [esp + 8]
shl edx, 6
add ebx, 4
and esi, 7
and ecx, 0x3f
shl esi, 0x12
or ecx, edx
or esi, ecx
cmp esi, 0xffff
ja 0x45ebaa
mov edx, dword [esp + 0x18]
mov dword [esp + 8], esi
xor ecx, ecx
jmp 0x45e9d2
mov ecx, dword [esp + 8]
add ebx, 2
shl ecx, 6
add ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
xor ecx, ecx
jmp 0x45e9d2
mov esi, dword [esp + 8]
add ebx, 3
shl esi, 0xc
or esi, edx
cmp esi, 0xffff
jbe 0x45eb6e
lea edx, [esi + 0xff0000]
and esi, 0x3ff
shr edx, 0xa
or esi, 0xdc00
or edx, 0xd800
mov dword [esp + 8], edx
mov edx, dword [esp + 0x18]
mov ecx, esi
jmp 0x45e9d2
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esp + 0x3c]
push dword [esp + 0x98]
push dword [esp + 0x30]
call sub.KERNEL32.dll_CreateNamedPipeW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x45ed07
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x20]
cmp ecx, 9
jg 0x45ecb7
cmp eax, 5
jne 0x45ec40
mov eax, ecx
mov dword [esp + 0x48], ecx
jmp 0x45ec54
cmp dword [esp + 0x28], 0
je 0x45ecb7
cmp eax, 0x57
mov dword [esp + 0x28], 0
jne 0x45ecb7
xor ebx, ebx
test edi, edi
je 0x45e760
add edi, edi
push 2
push edi
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
xor ebx, ebx
jmp 0x45e760
shl edi, 0xc
lea ebx, [esi + 3]
or edi, ecx
cmp edi, 0xffff
jbe 0x45e910
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 2
shr ecx, 0xa
or edi, 0xdc00
or ecx, 0xd800
mov edx, edi
mov edi, ecx
mov dword [esp + 0x1c], edx
jmp 0x45e91d
mov ecx, dword [esp + 0x24]
test edi, edi
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
je 0x45ece0
add edi, edi
push 2
push edi
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
test esi, esi
je 0x45ecf3
push 1
push esi
push dword [esp + 0x18]
call sym.___rust_dealloc
add esp, 0xc
cmp ebx, 0xffffffff
je 0x45edbf
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x45edbf
mov esi, dword [esp + 0x20]
test edi, edi
je 0x45ed20
add edi, edi
push 2
push edi
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x78]
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 al, 1
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x80]
call dbg.open
add esp, 8
movzx eax, byte [esp + 0x30]
cmp al, 4
jne 0x45edc7
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
test esi, esi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x45edbf
push 1
push esi
push dword [esp + 0x18]
call sym.___rust_dealloc
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0x33]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov byte [edx + 7], cl
movzx ecx, word [esp + 0x31]
mov word [edx + 5], cx
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 1
test esi, esi
jne 0x45ece4
jmp 0x45ecf3
mov edi, dword [esp + 0x4c]
test eax, eax
jne 0x45ee08
call dbg.capacity_overflow
jmp 0x45ee41
push dword [esp + 0x40]
push eax
call dbg.handle_alloc_error
add esp, 8
jmp 0x45ee41
mov dword [esp + 0xc], 0
push esi
push 2
mov esi, dword [esp + 0x28]
call dbg.handle_alloc_error
add esp, 8
jmp 0x45ee41
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x20]
call dbg.capacity_overflow
ud2