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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4527ad
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x462010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x44]
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x20], eax
push 0x10000
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x405e52
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
push 0x12
push str.CreatePipe_failed_
mov ecx, edi
call fcn.00403ca0
mov byte [ebp - 0xd], 0
jmp 0x4060f9
xor eax, eax
mov dword [ebp - 0x94], 0x44
mov word [ebp - 0x5a], ax
lea esi, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov edx, 0x101
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
mov ax, word [ebp + 0x40]
mov word [ebp - 0x64], ax
mov al, byte [ebp + 8]
push esi
test al, al
movlpd qword [ebp - 0x90], xmm0
lea esi, [ebp - 0x94]
movlpd qword [ebp - 0x88], xmm0
cmovne ecx, edx
movlpd qword [ebp - 0x80], xmm0
cmp dword [ebp + 0x38], 8
push esi
movzx edx, al
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 8
push eax
push 0
push dword [ebp + 0x3c]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push edx
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x62], xmm0
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405f1a
push edi
push 2
call fcn.00407930
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x1c]
call esi
mov byte [ebp - 0xd], 0
jmp 0x4060f9
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 8], 0
mov dword [ebp - 0x1c], 0
jne 0x405f4a
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x14]
call esi
mov byte [ebp - 0xd], 1
jmp 0x4060f9
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 2
push eax
push 0x10000
lea ecx, [ebp - 0x40]
call fcn.00403e20
mov esi, dword [ebp - 0x40]
mov edi, 0x7d0
mov dword [ebp - 0x18], 0
nop dword [eax]
nop word [eax + eax]
push 0xc8
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405fff
cmp eax, 0x80
je 0x405fff
push 0
lea eax, [ebp - 0x18]
push eax
push 0xffff
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405ff3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x405ff3
mov eax, dword [ebp - 0x3c]
sub eax, esi
cmp eax, ecx
jbe 0x406192
mov byte [esi + ecx], 0
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405fe0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x20]
push esi
call fcn.004061c0
dec edi
mov dword [ebp - 0x18], 0
test edi, edi
jg 0x405f90
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18]
push 0
push eax
push 0xffff
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40606f
nop word [eax + eax]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40606f
mov eax, dword [ebp - 0x3c]
sub eax, esi
cmp eax, ecx
jbe 0x406192
mov eax, esi
mov byte [esi + ecx], 0
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406040
mov ecx, dword [ebp - 0x20]
sub eax, edx
push eax
push esi
call fcn.004061c0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0xffff
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x406020
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0xd], 1
cmp dword [eax + 0x10], 0
jne 0x40608f
mov ecx, dword [ebp - 0x44]
push 0x19
push str.Do_not_get_exe_run_result
mov byte [ebp - 0xd], 0
call fcn.00403ca0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0x103
jne 0x4060b3
push 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x14]
call edi
test esi, esi
je 0x4060f9
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4060ef
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618d
push ecx
push esi
call fcn.00407e59
add esp, 8
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x40612f
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406125
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618d
push edx
push ecx
call fcn.00407e59
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x406179
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40616f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40618d
push edx
push ecx
call fcn.00407e59
add esp, 8
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042ee77
call fcn.004061b0
int3