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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
call fcn.00412fd0
xor edi, edi
mov dword [ebp - 8], 0
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x412e57
push 2
push 1
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x412e57
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x412e57
push 2
push edi
push edi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x412e57
push 2
push edi
push edi
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x412e57
mov eax, dword [ebp - 8]
test eax, eax
je 0x412dc9
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], edi
test eax, eax
je 0x412dd6
push eax
call ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00403c50
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x7c]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
push 0x44
push 0
push eax
call fcn.00407f10
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
xor eax, eax
mov dword [ebp - 0x40], esi
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x3c], ebx
push eax
push 0
push 0
push 0x10
push 1
push 0
push 0
push 0
mov dword [ebp - 0x50], 0x101
call fcn.00403320
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x412ec6
call fcn.00403ca0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
test eax, eax
je 0x412e61
push eax
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 0
test eax, eax
je 0x412e72
push eax
call ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x412e83
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
test eax, eax
je 0x412e94
push eax
call ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x412ea5
push eax
call ebx
mov ecx, esi
mov dword [ebp - 0x14], 0
call fcn.00412fd0
lea ecx, [ebp + 8]
call fcn.00403ca0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
call fcn.00403ca0
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x412ee4
push eax
call ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test eax, eax
je 0x412ef5
push eax
call ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x412f06
push eax
call ebx
push 0
push 0
push 1
push 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x413080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x412e57
lea ecx, [ebp + 8]
mov edi, 1
call fcn.00403ca0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4