Function at 0x436aac
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa7c
push ebx
push esi
push edi
or edi, 0xffffffff
xor eax, eax
xor edx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x584], 0xc
mov dword [ebp - 0x580], edx
mov dword [ebp - 0x57c], 1
push 0
call fcn.00438730
cmp dword [ebp + 0xc], 0
pop ecx
je 0x436b41
push 0
lea ecx, [ebp - 0x584]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x436b41
push 0
push 0
call fcn.00438748
add esp, 8
mov eax, edi
jmp 0x436e5f
cmp dword [ebp + 0x10], 0
je 0x436b72
push 0
lea edx, [ebp - 0x584]
push edx
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x436b72
push 0
push 0
call fcn.00438748
add esp, 8
jmp 0x436e3f
cmp dword [ebp + 0x14], 0
je 0x436bb7
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0x10]
jne 0x436b8c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x584]
push edx
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x436bb7
push 0
push 0
call fcn.00438748
add esp, 8
jmp 0x436e21
mov ebx, dword [ebp + 8]
jmp 0x436bbd
inc ebx
mov al, byte [ebx]
test al, al
je 0x436bcb
cmp al, 0x20
je 0x436bcb
cmp al, 0x5c
jne 0x436bbc
mov esi, ebx
sub esi, dword [ebp + 8]
cmp esi, 0xfe
ja 0x436bdd
cmp byte [ebx], 0x5c
jne 0x436bfb
push 0x3ff
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x478]
push edx
call fcn.004bd890
add esp, 0xc
mov byte [ebp - 0x79], 0
jmp 0x436c53
push esi
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x578]
push eax
call fcn.004bc1ec
add esp, 0xc
lea edx, [ebp - 8]
mov byte [ebp + esi - 0x577], 0
push edx
lea ecx, [ebp - 0x478]
push ecx
push 0x400
lea eax, [ebp - 0x578]
push 0
push eax
push 0
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
jne 0x436c53
push 0
lea edx, [ebp - 0x578]
push edx
lea ecx, [ebp - 0x478]
push ecx
call fcn.004bcaf8
add esp, 0xc
mov al, byte [ebx]
test al, al
je 0x436ca4
cmp al, 0x5c
je 0x436ca4
lea edx, [ebp - 0x478]
push edx
call fcn.004e09d0
pop ecx
mov esi, eax
push ebx
call fcn.004e09d0
pop ecx
add esi, eax
add esi, 2
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
push eax
call fcn.004847cc
pop ecx
mov esi, eax
inc ebx
push ebx
lea eax, [ebp - 0x478]
push eax
push str._s__s
mov edx, dword [ebp - 0x24]
push edx
push esi
call fcn.004bf9a4
add esp, 0x14
jmp 0x436ccd
lea ecx, [ebp - 0x478]
push ecx
call fcn.004e09d0
pop ecx
inc eax
push eax
call fcn.004847cc
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 0x478]
push eax
push esi
call fcn.004bcaf8
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.004e0898
add esp, 0xc
mov dword [ebp - 0x68], 0x44
cmp dword [ebp + 0x18], 0
je 0x436d0f
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
or dword [ebp - 4], 8
jmp 0x436d5e
mov dword [ebp - 0x3c], 0x100
cmp dword [ebp + 0xc], 0
je 0x436d24
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], ecx
jmp 0x436d2e
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x10], 0
je 0x436d3c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x436d46
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x14], 0
je 0x436d54
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
jmp 0x436d5e
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x68]
push ecx
push eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 1
push 0
push 0
push esi
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x436d97
push 0
push 0
call fcn.00438748
add esp, 8
push esi
call fcn.00484894
pop ecx
jmp 0x436e03
push esi
call fcn.00484894
pop ecx
push 0
call fcn.00438730
mov eax, dword [ebp + 0x1c]
pop ecx
mov edi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
cmp dword [ebp + 0xc], 0
je 0x436dc8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp + 0x10], 0
je 0x436ddf
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
push edx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp + 0x14], 0
je 0x436df6
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0x74]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
jmp 0x436e5f
cmp dword [ebp - 0x1c], 0xffffffff
je 0x436e12
mov edx, dword [ebp - 0x1c]
push edx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x20], 0xffffffff
je 0x436e21
mov ecx, dword [ebp - 0x20]
push ecx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x14], 0xffffffff
je 0x436e30
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x18], 0xffffffff
je 0x436e3f
mov edx, dword [ebp - 0x18]
push edx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0xffffffff
je 0x436e4e
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x10], 0xffffffff
je 0x436e5d
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret