Function at 0x407a60
Capabilities:
Check for protected handle exception
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x488], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x494], eax
xor eax, eax
push edi
mov dword [ebp - 0x48c], edx
mov dword [ebp - 0x490], ecx
movlpd qword [ebp - 0x4b8], xmm0
movlpd qword [ebp - 0x4b0], xmm0
movups xmmword [ebp - 0x4a8], xmm0
mov word [ebp - 0x43e], ax
movups xmmword [ebp - 0x438], xmm0
mov dword [ebp - 0x480], 0x44
movlpd qword [ebp - 0x47c], xmm0
movlpd qword [ebp - 0x474], xmm0
movlpd qword [ebp - 0x46c], xmm0
movlpd qword [ebp - 0x464], xmm0
movlpd qword [ebp - 0x45c], xmm0
movlpd qword [ebp - 0x44e], xmm0
movlpd qword [ebp - 0x446], xmm0
mov dword [ebp - 0x454], 0x101
mov word [ebp - 0x450], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
mov edi, eax
lea eax, [ebp - 0x448]
push 0
push eax
push edi
push dword [ebx]
call fcn.0042a015
mov esi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
add esp, 4
push eax
push edi
call esi
push 2
push 1
push 0
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x484]
push edi
push dword [eax + 4]
call fcn.0042a015
add esp, 4
push eax
push edi
call esi
push 2
push 1
push 0
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 0x488]
push edi
push dword [eax + 4]
call fcn.0042a015
add esp, 4
push eax
push edi
call esi
push 0
push 1
push dword [ebx + 4]
call fcn.0042a015
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
add esp, 4
push eax
call esi
push 0
mov eax, dword [ebp - 0x484]
push 1
push dword [eax]
call fcn.0042a015
add esp, 4
push eax
call esi
mov eax, dword [ebp - 0x488]
push 0
push 1
push dword [eax]
call fcn.0042a015
add esp, 4
push eax
call esi
mov ebx, dword [ebp - 0x490]
mov eax, dword [ebx + 0x270]
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x407d4d
push dword [ebp - 0x48c]
lea eax, [ebp - 0x218]
mov word [ebp - 0x110], si
push dword [ebp - 0x494]
push str._s__s
push 0x104
push eax
lea eax, [ebp - 0x484]
push eax
push ebx
call fcn.00406450
add esp, 0x1c
cmp dword [ebp - 0x484], esi
jne 0x407e34
lea eax, [ebp - 0x4b8]
mov ecx, ebx
push eax
push 0x44ca14
lea edx, [ebp - 0x218]
call fcn.00406330
add esp, 8
test eax, eax
je 0x407ce6
mov edi, dword [ebp - 0x4a4]
mov ebx, dword [ebp - 0x4a8]
test edi, edi
je 0x407cb6
mov eax, dword [ebp - 0x4b8]
add eax, edi
mov dword [ebp - 0x488], eax
sub eax, edi
push eax
push 0xa
push edi
call fcn.00444050
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407c8c
inc esi
jmp 0x407c92
mov esi, dword [ebp - 0x488]
sub esi, edi
mov eax, 0x103
cmp esi, eax
cmova esi, eax
lea eax, [ebp - 0x110]
push esi
push edi
push eax
call fcn.00425980
mov byte [ebp + esi - 0x110], 0
jmp 0x407ccc
test ebx, ebx
je 0x407cdc
push ebx
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0042d440
add esp, 0xc
test ebx, ebx
je 0x407cdc
push ebx
call fcn.004290f0
add esp, 4
mov ebx, dword [ebp - 0x490]
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0x110], 0x23
jne 0x407d40
cmp byte [ebp - 0x10f], 0x21
jne 0x407d40
lea ecx, [ebp - 0x10e]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407d01
sub ecx, edx
lea esi, [ebp - 0x10f]
add esi, ecx
lea eax, [ebp - 0x10e]
cmp esi, eax
jbe 0x407d47
nop dword [eax]
movzx eax, byte [esi]
push eax
call fcn.00429940
add esp, 4
test eax, eax
je 0x407d47
mov byte [esi], 0
lea eax, [ebp - 0x10e]
dec esi
cmp esi, eax
ja 0x407d20
jmp 0x407d47
mov byte [ebp - 0x10e], 0
lea esi, [ebp - 0x10e]
cmp byte [esi], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
je 0x407d6f
push 0
lea eax, [ebp - 0x428]
push eax
push 0x104
push esi
call edi
lea esi, [ebp - 0x428]
push 0
lea eax, [ebp - 0x320]
push eax
push 0x104
push dword [ebp - 0x494]
call edi
cmp byte [esi], 0
lea eax, [ebp - 0x320]
push dword [ebp - 0x48c]
push eax
lea eax, [ebp - 0x218]
je 0x407dbb
push esi
push str.__s____s_s_
push 0x104
push eax
lea eax, [ebp - 0x484]
push eax
push ebx
call fcn.00406450
add esp, 0x20
jmp 0x407dd6
push str.__s_s_
push 0x104
push eax
lea eax, [ebp - 0x484]
push eax
push ebx
call fcn.00406450
add esp, 0x1c
cmp dword [ebp - 0x484], 0
jne 0x407e34
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x480]
push eax
push 0
push dword [ebp - 0x498]
lea eax, [ebp - 0x218]
push 0x200
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
push str.spawn_process
push str._s:_CreateProcess__s_:__ld
push ebx
call fcn.004064e0
add esp, 0x14
mov dword [ebp - 0x438], 0xffffffff
push dword [ebp - 0x444]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x440]
call esi
push dword [ebp - 0x448]
call esi
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x407e69
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x438]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00423c62
mov esp, ebp
pop ebp
ret