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

Disassembly:
sub esp, 0x134
mov eax, dword [0x4080a8]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x158]
push ebp
push esi
mov esi, dword [esp + 0x144]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x14c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], edx
cmp eax, ebp
je 0x403acb
cmp byte [eax], 0
je 0x403acb
push ebx
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], ebp
cmp esi, ebp
je 0x403798
push ebp
push 0x80
push 3
lea ecx, [esp + 0x34]
push ecx
push 2
push 0x80000000
push esi
call ebx
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 1
jmp 0x4037bf
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [esp + 0xbc], 1
mov dword [esp + 0x10], eax
jne 0x4037b7
cmp eax, 0xffffffff
jne 0x4037b7
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
cmp esi, 0xffffffff
je 0x403800
cmp edi, ebp
je 0x40383d
push ebp
push 0x80
cmp dword [esp + 0x15c], ebp
je 0x40381c
push 4
lea edx, [esp + 0x34]
push edx
push 1
push 0x40000000
push edi
call ebx
push 2
push 0
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403833
or eax, 0xffffffff
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040477c
add esp, 0x134
ret
push 2
lea eax, [esp + 0x34]
push eax
push 1
push 0x40000000
push edi
call ebx
mov dword [esp + 0x18], eax
mov ebp, eax
mov dword [esp + 0x20], 1
jmp 0x403864
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [esp + 0xbc], 1
mov dword [esp + 0x18], eax
jne 0x40385c
cmp eax, 0xffffffff
jne 0x40385c
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
cmp ebp, 0xffffffff
jne 0x403879
cmp dword [esp + 0x1c], 0
je 0x403800
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403800
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40391b
test edi, edi
je 0x4038c3
mov ecx, esi
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4038b0
test dl, dl
je 0x4038ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4038b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403890
xor eax, eax
jmp 0x4038b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4038c3
xor edi, edi
mov esi, ebp
mov dword [esp + 0x14], edi
jmp 0x403940
cmp dword [esp + 0x15c], 0
push 0
push 0x80
je 0x4038fe
push 4
lea ecx, [esp + 0x34]
push ecx
push 1
push 0x40000000
push esi
call ebx
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403911
jmp 0x403800
push 2
lea edx, [esp + 0x34]
push edx
push 1
push 0x40000000
push esi
call ebx
mov esi, eax
mov dword [esp + 0x14], 1
jmp 0x40393e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [esp + 0xbc], 1
mov esi, eax
jne 0x403936
cmp esi, 0xffffffff
jne 0x403936
xor esi, esi
mov dword [esp + 0x14], 0
xor edi, edi
cmp esi, 0xffffffff
jne 0x40396a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], edi
je 0x403958
mov eax, dword [esp + 0x10]
push eax
call esi
cmp dword [esp + 0x20], edi
je 0x403800
push ebp
call esi
jmp 0x403800
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x101
cmp dword [esp + 0x164], edi
je 0x4039b4
xor ecx, ecx
mov word [esp + 0x6c], cx
jmp 0x4039be
mov edx, 1
mov word [esp + 0x6c], dx
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push edi
push edi
push 1
xor eax, eax
push edi
mov word [esp + 0x8a], ax
mov eax, dword [esp + 0x50]
push edi
push eax
push edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x1c], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403a21
push ebx
call edi
cmp dword [esp + 0x20], 0
je 0x403a2b
push ebp
call edi
cmp dword [esp + 0x14], 0
je 0x403800
push esi
call edi
jmp 0x403800
cmp dword [esp + 0x160], edi
jne 0x403aa1
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [esp + 0x24], 0x103
push 1
call ebp
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xa0]
push ecx
call ebx
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x24]
push edx
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, 0x103
je 0x403a61
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov dword [ecx], eax
xor edi, edi
cmp dword [esp + 0x1c], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403ab0
push ebx
call edi
cmp dword [esp + 0x20], 0
je 0x403aba
push ebp
call edi
cmp dword [esp + 0x14], 0
je 0x403ac4
push esi
call edi
xor eax, eax
jmp 0x403803
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0040477c
add esp, 0x134
ret