Function at 0x100538b0
Capabilities:
Create pipe
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
mov bl, 1
lea edi, [esp + 0x50]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x2c], 8
sub eax, edx
mov dword [esp + 0x80], eax
nop dword [eax + eax]
call fcn.100a4684
mov dword [esp + 0x8c], eax
mov esi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xorps xmm0, xmm0
mov eax, dword [0x101610fc]
test eax, eax
jne 0x1005392f
nop
movaps xmmword [esp + 0x50], xmm0
push 0x10
push edi
call esi
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
mov dword [0x101610fc], eax
mov eax, dword [0x101610fc]
test eax, eax
je 0x10053910
mov eax, 1
lock xadd dword [0x101610fc], eax
mov dword [esp + 0x50], 0x1012c9d8
mov dword [esp + 0x54], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::hde7cfeaa5e335763
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::hde7cfeaa5e335763
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 2
push edi
lea eax, [esp + 0x94]
push eax
call sym.alloc::fmt::format::format_inner::h50f5774af0e74e13
add esp, 8
mov ecx, dword [esp + 0x24]
test ecx, ecx
sete al
or bl, al
test bl, 1
jne 0x100539bb
push 1
push ecx
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
lea esi, [ecx + edx]
test edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x30], esi
je 0x10053a00
movzx eax, byte [ecx]
test al, al
js 0x10053a30
inc ecx
mov esi, eax
mov dword [esp + 8], ecx
jmp 0x10053a8a
mov dword [esp + 0xc], 0
mov ebx, 4
mov edi, 8
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0
xor esi, esi
jmp 0x10053ad3
movzx edx, byte [ecx + 1]
mov esi, eax
and esi, 0x1f
and edx, 0x3f
cmp al, 0xdf
jbe 0x10053a7e
mov edi, ecx
movzx ecx, byte [ecx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x10053dd8
movzx edx, byte [edi + 3]
and esi, 7
shl ecx, 6
lea eax, [edi + 4]
shl esi, 0x12
mov dword [esp + 8], eax
and edx, 0x3f
or edx, ecx
or esi, edx
cmp esi, 0xffff
jbe 0x10053a8a
jmp 0x10053df0
shl esi, 6
lea eax, [ecx + 2]
mov dword [esp + 8], eax
or esi, edx
mov eax, 1
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x30]
mov edx, 0xffffffff
mov ebx, 3
sub ecx, dword [esp + 8]
add ecx, 3
cmovb ecx, edx
shr ecx, 2
add ecx, eax
cmp ecx, 4
cmovae ebx, ecx
cmp ecx, 0x3ffffffe
lea edi, [ebx + ebx + 2]
ja 0x10053f7d
inc ebx
mov ax, 1
mov dword [esp + 0x18], eax
mov eax, dword [0x10145400]
movzx eax, byte [eax]
push 2
push edi
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10053f76
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x50]
mov dword [esp + 0x20], 1
mov word [ecx], si
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
inc eax
mov dword [esp + 0x84], eax
jmp 0x10053b47
mov dword [esp + 8], esi
mov esi, edi
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov word [ecx + edi*2], ax
inc edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov edi, esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10053bb0
test cx, cx
je 0x10053b90
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x20], ebx
jne 0x10053b20
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov ecx, 0xffffffff
sub eax, esi
add eax, 3
cmovb eax, ecx
movzx ecx, dx
shr eax, 2
cmp word [esp + 0x1c], 1
sbb eax, 0xffffffff
add eax, ecx
jmp 0x10053bd2
cmp esi, dword [esp + 0x30]
je 0x10053bb0
movzx eax, byte [esi]
test al, al
js 0x10053c84
inc esi
mov ecx, eax
jmp 0x10053b50
cmp dx, 1
jne 0x10053d40
xor eax, eax
cmp dword [esp + 0x20], ebx
jne 0x10053c30
mov dword [esp + 0x1c], ecx
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x20]
lea ecx, [eax + 1]
mov dword [esp + 0x88], ebx
add ecx, edi
jb 0x10053f64
mov dword [esp + 8], esi
mov esi, ebx
lea ebx, [eax + edi + 1]
mov dword [esp + 0x18], edx
mov edi, 4
lea ecx, [esi + esi]
cmp ecx, ebx
cmova ebx, ecx
xor edx, edx
cmp ebx, 0x40000000
setb al
cmp ebx, 5
cmovb ebx, edi
test esi, esi
je 0x10053c45
mov edi, dword [esp + 0x10]
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], ecx
mov ecx, 2
jmp 0x10053c47
mov esi, edi
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0x1c], ecx
jmp 0x10053b28
xor ecx, ecx
mov dl, al
lea edi, [ebx + ebx]
mov dword [esp + 0x54], ecx
add edx, edx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x3c]
push eax
push edi
call sym.alloc::raw_vec::finish_grow::hbc5dc30d71bdd337
add esp, 8
cmp dword [esp + 0x3c], 0
jne 0x10053f5a
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x50]
jmp 0x10053b2c
mov dword [esp + 0x18], edx
movzx edx, byte [esi + 1]
mov ecx, eax
and ecx, 0x1f
and edx, 0x3f
cmp al, 0xdf
jbe 0x10053cdb
mov dword [esp + 0xc], ecx
movzx ecx, byte [esi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x10053cf4
mov edx, dword [esp + 0xc]
movzx eax, byte [esi + 3]
shl ecx, 6
add esi, 4
and edx, 7
and eax, 0x3f
shl edx, 0x12
or eax, ecx
mov ecx, edx
or ecx, eax
mov edx, dword [esp + 0x18]
cmp ecx, 0xffff
jbe 0x10053b50
jmp 0x10053d12
shl ecx, 6
add esi, 2
mov dword [esp + 0x1c], 0
or ecx, edx
mov edx, dword [esp + 0x18]
jmp 0x10053b58
mov eax, dword [esp + 0xc]
add esi, 3
shl eax, 0xc
or eax, ecx
mov ecx, eax
mov edx, dword [esp + 0x18]
cmp ecx, 0xffff
jbe 0x10053b50
lea eax, [ecx + 0xff0000]
and ecx, 0x3ff
shr eax, 0xa
or ecx, 0xdc00
mov dword [esp + 0x1c], ecx
or eax, 0xd800
mov ecx, eax
jmp 0x10053b58
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esp + 0x40]
push dword [esp + 0x98]
push dword [esp + 0x2c]
call sub.kernel32.dll_CreateNamedPipeW
mov esi, eax
cmp eax, 0xffffffff
jne 0x10053e6c
call sub.kernel32.dll_GetLastError
mov ecx, dword [esp + 0x84]
cmp ecx, 9
jg 0x10053e1b
cmp eax, 5
jne 0x10053da0
mov eax, ecx
mov dword [esp + 0x4c], ecx
jmp 0x10053db4
cmp dword [esp + 0x2c], 0
je 0x10053e1b
cmp eax, 0x57
mov dword [esp + 0x2c], 0
jne 0x10053e1b
mov eax, ebx
xor ebx, ebx
test eax, eax
je 0x100538f0
add eax, eax
push 2
push eax
push dword [esp + 0x18]
call sym.___rust_dealloc
add esp, 0xc
xor ebx, ebx
jmp 0x100538f0
shl esi, 0xc
lea eax, [edi + 3]
mov dword [esp + 8], eax
or esi, ecx
cmp esi, 0xffff
jbe 0x10053a8a
lea ecx, [esi + 0xff0000]
and esi, 0x3ff
mov eax, 2
shr ecx, 0xa
or esi, 0xdc00
mov dword [esp + 0xc], esi
or ecx, 0xd800
mov esi, ecx
jmp 0x10053a97
mov ecx, dword [esp + 0x28]
test ebx, ebx
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x10053e41
add ebx, ebx
push 2
push ebx
push dword [esp + 0x18]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10053e58
push 1
push eax
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
cmp esi, 0xffffffff
je 0x10053f1c
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x10053f1c
test ebx, ebx
je 0x10053e81
add ebx, ebx
push 2
push ebx
push dword [esp + 0x18]
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
xor ebx, ebx
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov byte [esp + 0x6d], al
xor al, 1
mov byte [esp + 0x6c], al
lea eax, [esp + 0x3c]
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push edi
push dword [esp + 0x80]
call sym.std::sys::pal::windows::fs::File::open::h3e8e5909ba41fa7f
add esp, 8
movzx eax, byte [esp + 0x34]
cmp al, 4
jne 0x10053f24
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ecx], 0
test eax, eax
je 0x10053f1c
push 1
push eax
push dword [esp + 0x1c]
call sym.___rust_dealloc
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0x37]
mov edx, dword [esp + 0x28]
movzx ebx, word [esp + 0x35]
mov edi, dword [esp + 0x38]
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 + 0x24]
test eax, eax
jne 0x10053e49
jmp 0x10053e58
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
jmp 0x10053f66
xor eax, eax
push ecx
push eax
mov esi, dword [esp + 0x18]
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
jmp 0x10053f8b
mov eax, 2
jmp 0x10053f7f
xor eax, eax
mov bl, 1
push edi
push eax
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
ud2