Function at 0x4cdca0
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, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x9c], esp
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xa4], 0x4cebc0
lea eax, [esi + 0xa0]
mov dword [esi + 8], 0
mov dword [esi + 0x18], 8
mov dword [esi + 0x2c], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xa0], ecx
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
mov ecx, 0x40080002
sub ecx, eax
mov al, 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x70], ecx
jmp 0x4cdd2c
mov al, 1
mov dword [esi + 0x14], 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x74], eax
mov edi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
lea ebx, [esi + 0x30]
xorps xmm0, xmm0
mov eax, dword [0x578200]
test eax, eax
jne 0x4cdd6e
nop word [eax + eax]
movaps xmmword [esi + 0x30], xmm0
push 0x10
push ebx
call edi
mov eax, dword [esi + 0x30]
xorps xmm0, xmm0
xchg dword [0x578200], eax
mov eax, dword [0x578200]
test eax, eax
je 0x4cdd50
mov eax, 1
lock xadd dword [0x578200], eax
mov dword [esi + 0x30], 0x566cec
mov dword [esi + 0x34], 2
mov dword [esi + 0x40], 0
mov byte [esi + 3], 1
mov dword [esi + 0xa8], 1
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
mov byte [esi + 2], al
lea eax, [esi + 0x74]
mov dword [esi + 0x60], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x64], fcn.004e6420
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x6c], fcn.004e6420
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x3c], 2
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x28], eax
push ebx
lea eax, [esi + 0x7c]
push eax
call fcn.004e29d0
add esp, 8
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x14]
test edx, edx
sete al
or cl, al
test cl, 1
jne 0x4cde07
push 1
push edx
push dword [esi + 0xc]
call fcn.00402cf0
add esp, 0xc
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x7c]
mov byte [esi + 2], 1
mov byte [esi + 3], 1
mov dword [esi + 0x14], eax
add eax, ecx
mov dword [esi + 0x8c], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 4], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x90], eax
lea eax, [esi + 0x88]
mov word [esi + 0x94], 0
mov dword [esi + 0x88], 1
push eax
lea eax, [esi + 0x30]
push eax
call fcn.004d0280
add esp, 8
mov edi, dword [esi + 0x34]
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x18]
push dword [esi + 0x70]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4cdf11
mov eax, dword [esi + 0x2c]
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 9
jg 0x4cdee0
cmp eax, 5
jne 0x4cdeb0
mov dword [esi + 0x2c], ebx
jmp 0x4cdec2
cmp dword [esi + 0x18], 0
je 0x4cdee0
cmp eax, 0x57
mov dword [esi + 0x18], 0
jne 0x4cdee0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4cdd20
add eax, eax
push 2
push eax
push edi
call fcn.00402cf0
add esp, 0xc
jmp 0x4cdd20
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 4], 0
mov dword [ebx], 1
test eax, eax
je 0x4cdffa
add eax, eax
push 2
push eax
push edi
call fcn.00402cf0
add esp, 0xc
jmp 0x4cdffa
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4cdf26
add eax, eax
push 2
push eax
push edi
call fcn.00402cf0
add esp, 0xc
movzx eax, byte [ebp + 0x10]
mov dword [esi + 0x60], 0xc
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 4]
mov dword [esi + 0x30], 0
mov dword [esi + 0x4c], 0
mov word [esi + 0x50], 0
xorps xmm0, xmm0
mov byte [esi + 2], 1
mov byte [esi + 3], 0
mov dword [esi + 0x68], eax
movzx eax, byte [ebp + 0xc]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 8]
mov byte [esi + 0x4d], al
xor al, 1
mov dword [esi + 0x78], ecx
lea ecx, [esi + 0x30]
mov byte [esi + 0x4c], al
lea eax, [esi + 0x60]
movups xmmword [esi + 0x38], xmm0
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x24], eax
push ecx
push dword [esi + 0x14]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.004bfda0
add esp, 0x10
movzx eax, byte [esi + 0x1c]
cmp al, 4
jne 0x4cdfca
mov eax, dword [esi + 0x20]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [esi + 4]
mov dword [ebx], 0
test eax, eax
je 0x4ce01e
push 1
push eax
push dword [esi + 0xc]
call fcn.00402cf0
add esp, 0xc
jmp 0x4ce01e
movzx ecx, byte [esi + 0x1f]
mov ebx, dword [ebp + 8]
mov byte [esi + 0x12], cl
movzx ecx, word [esi + 0x1d]
mov byte [ebx + 4], al
movzx edx, byte [esi + 0x12]
mov word [esi + 0x10], cx
mov ecx, dword [esi + 0x20]
movzx eax, word [esi + 0x10]
mov byte [ebx + 7], dl
mov word [ebx + 5], ax
mov dword [ebx + 8], ecx
mov dword [ebx], 1
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
test eax, eax
je 0x4ce012
push 1
push eax
push dword [esi + 0xc]
call fcn.00402cf0
add esp, 0xc
cmp edi, 0xffffffff
je 0x4ce01e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret