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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp dword [0x1021184], ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x318], ebx
jne 0x1014f94
cmp edi, ebx
je 0x1014f8c
cmp byte [edi], 0x2f
jne 0x1014f8c
cmp byte [edi + 1], 0x2f
je 0x1014f94
mov dword [ebp - 0x314], ebx
jmp 0x1014f9e
mov dword [ebp - 0x314], 1
push 1
lea ecx, [ebp - 0x320]
call fcn.01012e7b
test eax, eax
jne 0x1014fcf
xor edi, edi
lea ecx, [ebp - 0x320]
call fcn.01013b6f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 0xc
cmp dword [esi + 0x514], ebx
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x310], bl
je 0x1015197
cmp dword [ebp - 0x314], ebx
je 0x101500e
push edi
push 0x100238c
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.010161e1
add esp, 0x10
jmp 0x101516a
cmp dword [esi + 0x51c], ebx
je 0x101510c
mov eax, dword [esi + 0x520]
add eax, 0x210
mov cl, byte [eax]
neg cl
sbb ecx, ecx
test eax, ecx
je 0x101510c
lea eax, [esi + 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101503c
sub eax, edx
mov dword [ebp - 0x314], eax
mov byte [ebp - 0x108], bl
js 0x10150ba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x314]
cmp ecx, eax
jge 0x10150ba
lea eax, [esi + ecx]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
mov dword [ebp - 0x314], edi
call fcn.0101627b
push 0x1001914
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01016202
add esp, 0x18
jmp 0x10150ac
cmp al, 0x2f
je 0x10150a2
cmp al, 0x5c
jne 0x10150ab
lea eax, [edi + 1]
mov dword [ebp - 0x314], eax
inc edi
mov al, byte [edi]
cmp al, bl
jne 0x101509a
push dword [ebp - 0x314]
jmp 0x10150bb
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01016202
add esp, 0xc
cmp byte [ebp - 0x108], bl
lea eax, [ebp - 0x108]
je 0x10150ea
cmp byte [eax], 0x5c
jne 0x10150e5
mov byte [eax], 0x2f
inc eax
cmp byte [eax], bl
jne 0x10150dd
mov eax, dword [esi + 0x520]
lea ecx, [ebp - 0x108]
push ecx
add eax, 0x210
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
push ecx
push 0x1002384
jmp 0x1015150
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0101627b
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 0x14
test eax, eax
push edi
je 0x101514a
push 0x100238c
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.010161e1
add esp, 0x10
jmp 0x1015164
push esi
push 0x100237c
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.010161e1
add esp, 0x14
mov dword [ebp - 0x318], esi
push dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax]
mov esi, dword [esi + 0x520]
push ebx
push eax
lea eax, [ebp - 0x310]
push eax
push 1
mov ecx, esi
call fcn.010147be
mov edi, eax
jmp 0x101528d
push edi
lea eax, [esi + 0x30c]
push eax
lea eax, [esi + 0x410]
push eax
lea eax, [esi + 0x104]
push eax
push 0x100235c
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.010161e1
push 0x44
pop edi
push edi
lea eax, [ebp - 0x378]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x28
mov dword [ebp - 0x378], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x34c], 0x101
call edi
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax]
push 0xfffffffffffffff4
mov dword [ebp - 0x33c], eax
call edi
mov dword [ebp - 0x338], eax
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x378]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
push ebx
mov word [ebp - 0x348], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, ebx
je 0x101528d
push 0xffffffffffffffff
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x514], ebx
je 0x1015277
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1015277
cmp dword [ebp - 0x314], ebx
jbe 0x1015277
xor edi, edi
push dword [ebp - 0x334]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x330]
call esi
cmp edi, ebx
mov eax, dword [ebp - 0x324]
mov byte [eax], bl
je 0x1014fb1
mov ecx, dword [ebp - 0x31c]
mov dword [ecx + 4], 1
push 0x103
add ecx, 8
push ecx
push 0x104
push eax
call fcn.010163b1
add esp, 0x10
jmp 0x1014fb1