Function at 0x4276c0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Create two anonymous pipes
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x10080
call fcn.0056a4b0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x1007c], eax
mov eax, dword [esp + 0x10088]
push ebx
push ebp
mov ebp, dword [esp + 0x1008c]
push esi
push edi
xor edi, edi
push 0x40
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push edi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], edi
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xfffffffffffffff4
mov esi, eax
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 0x101
mov word [esp + 0x74], di
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x90], eax
call ebx
push edi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
call ebx
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 3
push 1
push edi
lea edx, [esp + 0x84]
push edx
push esi
push eax
push esi
call ebx
mov edx, dword [esp + 0x1c]
push 3
push 1
push edi
lea ecx, [esp + 0x88]
push ecx
push esi
push edx
push esi
call ebx
cmp ebp, edi
jne 0x42786d
mov eax, dword [esp + 0x14]
push eax
mov ebx, 0x58ef44
call fcn.00426c50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42787f
push ebx
lea ecx, [esp + 0x8c]
push 0x2000
push ecx
mov byte [esp + 0x95], 0
mov byte [esp + 0x94], 0
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
cmp byte [esp + 0x88], 0x23
mov byte [esp + 0x2087], 0
jne 0x42785f
cmp byte [esp + 0x89], 0x21
jne 0x42785f
lea ebp, [esp + 0x8a]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x427811
mov edi, dword [sym.imp.MSVCR80.dll_isspace]
sub eax, edx
movzx edx, byte [esp + eax + 0x8a]
lea esi, [esp + eax + 0x8a]
push edx
call edi
add esp, 4
test eax, eax
je 0x42785f
jmp 0x427840
lea eax, [esp + 0x8a]
cmp esi, eax
jbe 0x42785f
mov byte [esi], 0
movzx ecx, byte [esi - 1]
sub esi, 1
push ecx
call edi
add esp, 4
test eax, eax
jne 0x427840
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
test ebp, ebp
je 0x42787f
push ebp
lea ebx, [esp + 0xa08c]
call fcn.00427620
add esp, 4
mov ebp, ebx
mov esi, dword [esp + 0x2c]
push esi
lea ebx, [esp + 0x408c]
call fcn.00427620
push esi
mov esi, 0x2000
lea edi, [esp + 0x6090]
call fcn.00426ad0
add esp, 8
test ebp, ebp
je 0x4278b0
mov eax, 0x58ca48
jmp 0x4278b7
mov eax, 0x58c9f6
mov ebp, eax
mov edx, dword [esp + 0x14]
push edx
push eax
push ebp
push str._s_s__s_
lea edi, [esp + 0x2098]
call fcn.00426df0
mov eax, edi
push eax
lea edi, [esp + 0xc09c]
call fcn.00426ad0
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x6090]
push eax
push ecx
push 0x200
push 1
push 0
push 0
mov edx, edi
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x427976
mov edi, dword [sym.imp.MSVCR80.dll_malloc]
mov esi, dword [esp + 0x24]
push 8
call edi
mov ebx, dword [sym.imp.MSVCR80.dll__beginthread]
add esp, 4
test eax, eax
je 0x42794c
mov ecx, dword [esp + 0x1009c]
push eax
push 0
push 0x427450
mov dword [eax], ecx
mov dword [eax + 4], esi
call ebx
add esp, 0xc
mov esi, dword [esp + 0x18]
push 8
call edi
add esp, 4
test eax, eax
je 0x427991
mov edx, dword [esp + 0x1009c]
push eax
push 0
push 0x427530
mov dword [eax], edx
mov dword [eax + 4], esi
call ebx
add esp, 0xc
jmp 0x427991
mov eax, dword [esp + 0x24]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x1009c]
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [esp + 0x7c]
push eax
call ebp
mov ecx, dword [esp + 0x78]
push ecx
call ebp
mov edx, dword [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x34]
push ecx
call ebp
mov edx, dword [esp + 0x30]
push edx
call ebp
mov ecx, dword [esp + 0x1008c]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00569ed6
add esp, 0x10080
ret