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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
push esi
jne 0x413cd7
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x24]
mov dword [ebp + 0x10], 0
mov esi, ebx
mov dword [ebp - 4], eax
and esi, 4
je 0x413cfa
push eax
call fcn.00414030
add esp, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x413d15
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x413d15
push 0xa
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x58], 0x44
call fcn.004141b0
mov ecx, dword [ebp + 0x18]
cmp ecx, 0xffffffff
mov dword [ebp - 0x20], ecx
jne 0x413d3c
mov dword [ebp - 0x20], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
lea eax, [ebp - 0x20]
push 0
push eax
call esi
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
call fcn.004141c0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xffffffff
mov dword [ebp - 0x1c], ecx
jne 0x413d71
mov dword [ebp - 0x1c], eax
push 2
push 1
lea edx, [ebp - 0x1c]
push 0
push edx
call esi
push eax
mov eax, dword [ebp - 0x1c]
push eax
call esi
push eax
call edi
call fcn.004141d0
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
jne 0x413d9a
mov dword [ebp - 0x18], eax
push 2
push 1
lea ecx, [ebp - 0x18]
push 0
push ecx
call esi
mov edx, dword [ebp - 0x18]
push eax
push edx
call esi
push eax
call edi
xor edx, edx
mov dword [ebp - 0x2c], 0x100
test bl, 2
mov dword [ebp + 0x24], edx
je 0x413dc8
mov dword [ebp + 0x24], 0x200
test bl, 1
je 0x413dd8
mov dword [ebp - 0x2c], 0x101
mov word [ebp - 0x28], dx
mov edi, dword [ebp + 0x14]
cmp edi, edx
je 0x413e15
mov esi, 0x4221c0
mov eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x413e0a
test cl, cl
je 0x413e06
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x413e0a
add eax, 2
add esi, 2
test cl, cl
jne 0x413de6
xor eax, eax
jmp 0x413e0f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edx
jne 0x413e15
xor edi, edi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
push esi
call fcn.00413eb0
mov eax, dword [ebp + 0x24]
add esp, 8
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x58]
push ecx
push edx
push edi
push 0
push eax
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
test bl, bl
je 0x413e75
mov ecx, dword [ebp - 0x10]
push ecx
call edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x413e69
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413e75
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x1c]
push eax
call edi
mov ecx, dword [ebp - 0x18]
push ecx
call edi
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
pop edi
je 0x413ea1
push eax
call esi
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret