Function at 0x405b00
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.00465fd0
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 0x405b7d
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 0x405bd3
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 0x405d58
mov ebp, dword [esp + 0x208c]
mov eax, dword [esp + 0x10]
push esi
cmp eax, esi
je 0x405d02
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 0x405d4b
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x84]
xor eax, eax
mov edx, dword [0x488b9c]
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 0x405c79
call fcn.00473904
cmp edi, esi
jbe 0x405d19
mov ebx, dword [ebp + 8]
add ebx, edi
cmp ebx, 0xfffffffd
jbe 0x405c90
call fcn.00473904
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x405cb6
mov al, byte [ecx - 1]
test al, al
je 0x405cb6
cmp al, 0xff
je 0x405cb6
cmp ebx, esi
jne 0x405ccd
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x405d19
cmp ebx, esi
jne 0x405cc8
cmp ecx, esi
je 0x405d19
push esi
mov ecx, ebp
call fcn.004047f0
jmp 0x405d19
cmp dword [ebp + 0xc], ebx
jae 0x405cd5
push ebx
mov ecx, ebp
call fcn.00404820
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 0x405d19
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x405d58
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 0x405c14
jmp 0x405d58
push str.ReadFile_fialed
call fcn.00439770
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 0x405d78
push str.Error_closing_thread_handle.
call fcn.00439770
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x405d90
push str.Error_closing_process_handle.
call fcn.00439770
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call edi
test eax, eax
jne 0x405da8
push str.Error_closing_pipe_read_handle.
call fcn.00439770
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call edi
mov edi, eax
cmp edi, esi
jne 0x405dc2
push str.Error_closing_pipe_write_handle.
call fcn.00439770
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x2074
ret