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

Disassembly:
sub esp, 0x534
push ebx
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebp, ebp
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push ebp
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 1
call dword [0x40e140]
test eax, eax
jne 0x406ab1
mov eax, dword [esp + 0x54c]
mov esi, dword [0x40e168]
mov dword [eax], 0x23000003
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406a97
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x406c2c
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x44
push eax
call dword [0x40e13c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
push 0xc8
push ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x60], bp
mov dword [esp + 0x5c], 0x101
call dword [0x40e104]
mov edi, 0x414bb4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x54c]
and ecx, 3
lea edx, [esp + 0x7c]
mov eax, dword [ebx + 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x548]
push eax
push ecx
push edx
call dword [0x40e33c]
add esp, 0xc
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x7c]
push eax
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
call dword [0x40e08c]
test eax, eax
jne 0x406b97
mov esi, dword [0x40e168]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
mov dword [ebx], 0x23000003
test eax, eax
je 0x406b7d
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406c2c
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x40e168]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x144]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14c]
push 0x400
push edx
push eax
call dword [0x40e138]
test eax, eax
je 0x406c05
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x548]
mov eax, ecx
lea esi, [esp + 0x144]
lea edi, [edx + ebp]
push 0x32
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebp, dword [esp + 0x1c]
call dword [0x40e0cc]
jmp 0x406ba2
mov eax, dword [esp + 0x14]
mov dword [ebx], 0
test eax, eax
mov dword [ebx + 4], ebp
je 0x406c1d
push eax
call dword [0x40e168]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406c2c
push eax
call dword [0x40e168]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret