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

Disassembly:
sub esp, 0x27c
mov eax, dword [0x481524]
xor eax, esp
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x284]
push ebx
push ebp
mov ebp, dword [esp + 0x288]
push esi
push edi
push 0x44
mov esi, edx
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
call fcn.004542b0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 0x101
mov word [esp + 0x58], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esp + 0x298]
push 2
push 1
push 0
lea ecx, [esp + 0x6c]
push ecx
mov edi, eax
push edi
push edx
call fcn.0044eb8d
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
add esp, 4
push eax
push edi
call ebx
mov ecx, dword [esp + 0x29c]
push 2
push 1
push 0
lea eax, [esp + 0x70]
push eax
push edi
push ecx
call fcn.0044eb8d
add esp, 4
push eax
push edi
call ebx
mov edx, dword [esi + 0x230]
mov edi, dword [edx + 0x39c]
test edi, edi
jne 0x40ad7f
mov eax, dword [esp + 0x10]
push ebp
push 0x5c
push eax
push str._s_c_s
mov edi, 0x104
lea ebx, [esp + 0x188]
mov eax, esi
mov byte [esp + 0x82], 0
call fcn.0040a020
mov ecx, ebx
push 0x4726f0
push ecx
call fcn.0044d6d1
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40ad7b
push ebx
lea edx, [esp + 0x74]
push edi
push edx
call fcn.0044d499
add esp, 0xc
cmp byte [esp + 0x70], 0x23
jne 0x40ad35
cmp byte [esp + 0x71], 0x21
je 0x40ad3a
mov byte [esp + 0x72], 0
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad41
sub eax, edx
lea edi, [esp + eax + 0x6f]
lea eax, [esp + 0x70]
cmp edi, eax
jbe 0x40ad72
movsx ecx, byte [edi]
push ecx
call fcn.0044bca6
add esp, 4
test eax, eax
je 0x40ad72
mov byte [edi], 0
dec edi
lea edx, [esp + 0x70]
cmp edi, edx
ja 0x40ad56
push ebx
call fcn.0044f95b
add esp, 4
lea edi, [esp + 0x72]
push 0x2f
push ebp
call fcn.0044e8d0
add esp, 8
test eax, eax
je 0x40ad91
lea ebp, [eax + 1]
cmp byte [edi], 0
mov eax, 0x471cdd
je 0x40ada0
mov eax, 0x4726f4
push ebp
push eax
push edi
push str._s_s_s
mov edi, 0x104
lea ebx, [esp + 0x188]
mov eax, esi
call fcn.0040a020
mov eax, dword [esp + 0x20]
push eax
push 0x472618
lea ebx, [esp + 0x88]
mov eax, esi
call fcn.0040a020
mov ecx, ebx
push ecx
call fcn.0040a630
add esp, 0x1c
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
push ecx
push edx
push 0x200
push 1
push 0
push 0
lea eax, [esp + 0x198]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ae3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x17c]
push ecx
push str.spawn_process
push str._s:_CreateProcess__s_:__d
call fcn.00409e20
add esp, 0x10
mov dword [esp + 0x14], 0xffffffff
jmp 0x40ae57
mov edx, dword [esp + 0x298]
push edx
call fcn.0044fac4
mov eax, dword [esp + 0x2a0]
push eax
call fcn.0044fac4
add esp, 8
mov ecx, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x60]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044aab8
add esp, 0x27c
ret