Function at 0x406570
Capabilities:
Access peb ldr_data
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Get number of processors
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41a2f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x427880]
xor eax, dword [esp + 0xec]
push edi
mov dword [esp + 0xe0], eax
mov dword [esp + 0x10], 0
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0xfc], 0
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dx, word [esp + 0xfc]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0x10
push 1
push 0
mov word [esp + 0x84], dx
mov edx, dword [esp + 0x114]
push 0
push edx
push 0
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.MFC70U.DLL_Ordinal_977
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0xec], 1
call sub.MFC70U.DLL_Ordinal_977
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [esp + 0xec], 2
push esi
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x64
lea ecx, [esp + 0x8c]
push ecx
push edx
call edi
mov esi, eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xc]
call fcn.00406370
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
call fcn.00401e40
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 3
call fcn.00401a70
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xf0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x4066a6
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.004012c0
mov edi, dword [esp + 0xfc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0xf0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0xf0], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406787
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0xfc]
add eax, 0xfffffff0
mov dword [esp + 0xf0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x4067b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe0]
xor ecx, dword [esp + 0xf0]
mov eax, edi
pop edi
call fcn.00419c26
add esp, 0xec
ret 0xc