Function at 0x45f0e0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x45f106
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x45f3ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00406c68
mov dword [ebp - 0xac], 0xc
mov dword [ebp - 0xa4], 0xffffffff
xor eax, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
push 0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_CreatePipe
push 0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreatePipe
push 0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_CreatePipe
lea eax, [ebp - 0x48]
mov ecx, 0x45f3cc
mov edx, dword [ebp + 0xc]
call fcn.0040731c
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x48]
call fcn.004070f4
push eax
lea eax, [ebp - 0x48]
call fcn.004071b8
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_WriteFile
lea eax, [ebp - 0x90]
mov edx, 0x44
call fcn.00423e10
mov dword [ebp - 0x90], 0x44
mov ax, word [ebp - 0x10]
mov word [ebp - 0x60], ax
mov dword [ebp - 0x64], 0x101
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 8], 0
jne 0x45f229
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x45f234
mov eax, dword [ebp - 8]
call fcn.00407780
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
call fcn.00407020
cmp dword [ebp - 0x4c], 0
jne 0x45f257
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.00407020
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x45f27f
cmp dword [ebp - 8], 0
je 0x45f27f
push 0x45f3dc
push dword [ebp - 8]
push 0x45f3ec
push dword [ebp - 0xc]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.004079e0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
call fcn.00407780
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x10], 0
je 0x45f29d
mov eax, dword [ebp + 0x10]
call fcn.00407780
mov dword [ebp - 0x30], eax
jmp 0x45f2a2
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xa0]
mov edx, 0x10
call fcn.00423e10
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
je 0x45f34a
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x9c]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x64
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x24], eax
push ebp
call fcn.0045efd0
pop ecx
cmp dword [ebp - 0x24], 0x102
je 0x45f2ff
cmp dword [ebp - 0x24], 0xffffffff
je 0x45f338
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x45f33f
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x45f359
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp + 8]
call fcn.00406c68
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x3c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f3b4
lea eax, [ebp - 0x4c]
call fcn.00406c44
lea eax, [ebp - 0x48]
call fcn.00406c68
ret