Function at 0x4085b0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
mov eax, 0x2074
call fcn.0042a700
push esi
push edi
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x7c]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push esi
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, esi
jne 0x40862d
pop edi
xor eax, eax
pop esi
add esp, 0x2074
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x2080]
lea eax, [esp + 0x38]
push edx
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push ecx
push esi
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], 0x101
mov word [esp + 0x90], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x408683
pop edi
xor eax, eax
pop esi
add esp, 0x2074
ret
push ebx
lea edx, [esp + 0x1c]
push ebp
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x90]
push 1
push edx
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x408808
mov ebp, dword [esp + 0x208c]
mov eax, dword [esp + 0x10]
push esi
cmp eax, esi
je 0x4087b2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x8c]
push 0x1fff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4087fb
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x84]
xor eax, eax
mov edx, dword [0x449158]
mov byte [esp + ecx + 0x84], 0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, edi
ja 0x408729
call fcn.00434ab0
cmp edi, esi
jbe 0x4087c9
mov ebx, dword [ebp + 8]
add ebx, edi
cmp ebx, 0xfffffffd
jbe 0x408740
call fcn.00434ab0
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x408766
mov al, byte [ecx - 1]
test al, al
je 0x408766
cmp al, 0xff
je 0x408766
cmp ebx, esi
jne 0x40877d
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x4087c9
cmp ebx, esi
jne 0x408778
cmp ecx, esi
je 0x4087c9
push esi
mov ecx, ebp
call fcn.00406ce0
jmp 0x4087c9
cmp dword [ebp + 0xc], ebx
jae 0x408785
push ebx
mov ecx, ebp
call fcn.004072e0
mov eax, dword [ebp + 4]
mov ecx, edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x84]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
xor esi, esi
mov byte [ecx + ebx], 0
jmp 0x4087c9
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408808
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x90]
push 1
push eax
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x4086c4
jmp 0x408808
push 0x454d98
call fcn.0040fef0
add esp, 4
mov edx, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
pop ebp
pop ebx
test eax, eax
jne 0x408828
push 0x454d78
call fcn.0040fef0
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x408840
push 0x454d58
call fcn.0040fef0
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call edi
test eax, eax
jne 0x408858
push 0x454d38
call fcn.0040fef0
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call edi
mov edi, eax
cmp edi, esi
jne 0x408872
push 0x454d14
call fcn.0040fef0
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x2074
ret