Function at 0x407070
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fd9e
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
push 0x44
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.004f8b70
xorps xmm0, xmm0
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
add esp, 0xc
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x80], xmm0
xor esi, esi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x10], esi
ja 0x4070f5
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4071c8
push 0xffffffffffffffff
push esi
push edi
mov ecx, eax
call fcn.00402910
jmp 0x4071c8
push edi
lea ecx, [ebp - 0x70]
call fcn.004075e0
push 0x5485d0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403920
push ebx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00407480
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x40715e
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x407141
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402b60
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x407173
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40719c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403020
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4071c8
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403020
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x98], 0x101
mov word [ebp - 0x94], ax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 2
add eax, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f63a3
mov edi, eax
add esp, 4
test edi, edi
jne 0x40721b
xor esi, esi
jmp 0x407290
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, edi
cmovae ecx, dword [ebp - 0x28]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x407230
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407272
push str._CreateProcessRetPID__create_process_error._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x407285
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0
push 2
push edi
call fcn.004f6173
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4072a5
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00403020
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret