Function at 0x407dc0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43f053
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455ac0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebx, 1
xor ebp, ebp
push 0xfffffffffffffff5
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
je 0x407f74
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push ebp
push ebx
push eax
call esi
push ebp
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
call edi
test eax, eax
je 0x407f74
mov ecx, dword [esp + 0x1c]
push ebp
push ebx
push ecx
call esi
push 0x40
xor eax, eax
lea edx, [esp + 0x50]
push ebp
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.00423f20
mov eax, dword [esp + 0x2c]
or dword [esp + 0x80], 0x101
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x80], eax
mov word [esp + 0x78], bp
call fcn.0041600b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x407ecc
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov edi, dword [esp + 0x9c]
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.__s___s
push ecx
mov dword [esp + 0xa4], ebp
call fcn.00402a60
mov ecx, dword [esp + 0x24]
lea esi, [ecx - 0x10]
mov eax, esi
add esp, 0x10
cmp dword [eax + 0xc], ebx
jle 0x407f2d
mov edx, dword [eax + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.00401610
mov ecx, dword [esp + 0x14]
lea esi, [ecx - 0x10]
mov eax, esi
or ebx, 0xffffffff
add dword [eax + 0xc], ebx
jne 0x407f38
mov dword [eax + 0xc], ebx
mov eax, dword [edi]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x4c]
push edx
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407f7b
mov dword [esp + 0x94], ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x407f74
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor al, al
jmp 0x408021
mov eax, dword [esi + 0xc]
cmp eax, ebp
jge 0x407f93
add eax, 1
cmp eax, ebp
mov dword [esi + 0xc], eax
jne 0x407f93
mov dword [esi + 0xc], 1
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x38]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407fc6
mov edx, dword [esp + 0x38]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x14]
call fcn.00401da0
xor al, al
jmp 0x408021
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0xa8]
cmp eax, ebp
je 0x408016
mov edx, dword [esp + 0x18]
push esi
push eax
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00407cb0
add esp, 0x10
mov ecx, dword [esp + 0xac]
push eax
mov byte [esp + 0x98], 1
call fcn.004057f0
lea ecx, [esp + 0x28]
call fcn.00401da0
lea ecx, [esp + 0x14]
call fcn.00401da0
mov al, 1
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret