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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x44
mov edi, eax
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], bx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call esi
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call esi
push 3
push 1
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push ebx
push eax
push edi
push dword [ebp - 8]
push edi
call esi
push 3
push 1
lea eax, [ebp - 0x28]
push ebx
push eax
push edi
push dword [ebp - 0xc]
push edi
call esi
mov edi, dword [ebp + 8]
mov esi, 0x100
cmp edi, ebx
jne 0x4120a0
push 0x41a028
push dword [ebp + 0xc]
call fcn.004137e5
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x4120a0
push eax
lea eax, [ebp - 0x164]
push esi
push eax
mov byte [ebp - 0x163], bl
mov byte [ebp - 0x164], bl
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
cmp byte [ebp - 0x164], 0x23
mov byte [ebp - 0x65], bl
jne 0x412096
cmp byte [ebp - 0x163], 0x21
jne 0x412096
cmp byte [ebp - 0x162], bl
lea edi, [ebp - 0x162]
je 0x412096
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x41207c
movzx eax, byte [edi]
push 8
push eax
call dword [sym.imp.MSVCRT.dll__isctype]
pop ecx
pop ecx
jmp 0x41208d
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movzx eax, byte [edi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, ebx
je 0x412096
inc edi
cmp byte [edi], bl
jne 0x412062
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x164]
push dword [ebp + 0x18]
push 0x41c07c
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x264]
push esi
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.0041243d
lea eax, [ebp - 0x764]
push esi
push eax
push dword [ebp + 0x18]
call fcn.0041243d
lea eax, [ebp - 0x964]
push esi
push eax
push dword [ebp + 0x18]
call fcn.0040bb02
add esp, 0x38
cmp edi, ebx
je 0x412128
lea eax, [ebp - 0x464]
push esi
push eax
push edi
call fcn.0041243d
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x464]
push eax
push str._s___s_
lea eax, [ebp - 0x364]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x20
jmp 0x412145
lea eax, [ebp - 0x264]
push eax
push str.__s_
lea eax, [ebp - 0x364]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x664]
push esi
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0040bb02
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x964]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 0x10]
push 0x200
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4121c8
push 0x41221d
push dword [ebp - 4]
push dword [ebp + 0x1c]
call fcn.00412416
push 0x412342
push dword [ebp - 0x10]
push dword [ebp + 0x1c]
call fcn.00412416
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x4121e1
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp + 0x1c]
call dword [sym.imp.WS2_32.dll_closesocket]
push str..._.._mongoose_mongoose.c
push str..._.._mongoose_mongoose.c:8339
push 4
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x412210
push dword [ebp - 0x20]
lea eax, [ebp - 0x664]
push eax
push str.CGI_command:___ls______p
call fcn.00408faa
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x20], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret