Function at 0x40efd0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41ddbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
push ebx
push ebp
push esi
xor esi, esi
push edi
lea eax, [esp + 0x30]
push esi
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40f05c
mov ebx, dword [esp + 0x4a0]
mov al, byte [esp + 0x13]
mov edi, 0x401008
or ecx, 0xffffffff
mov byte [ebx], al
xor eax, eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x401008
mov ecx, ebx
call fcn.0040cc60
mov eax, ebx
jmp 0x40f26d
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x80]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x4a4]
lea eax, [esp + 0x3c]
push edx
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push ecx
push esi
mov dword [esp + 0x90], 0x101
mov word [esp + 0x94], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40f120
mov ebp, dword [esp + 0x4a0]
mov dl, byte [esp + 0x13]
push esi
mov ecx, ebp
mov byte [ebp], dl
call fcn.0040cc10
mov edi, 0x401008
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.0040cd20
test al, al
je 0x40f119
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x401008
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov eax, ebp
jmp 0x40f26d
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.0040cc10
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x1c]
stosw word es:[edi], ax
push esi
push ecx
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x98]
push 0x400
push edx
push eax
mov dword [esp + 0x4ac], esi
mov dword [esp + 0x30], esi
call ebx
test eax, eax
je 0x40f212
mov ecx, dword [0x407740]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
sub ecx, edx
cmp ecx, esi
ja 0x40f1a4
call fcn.00412f64
test esi, esi
jbe 0x40f1ed
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebp, [edx + esi]
push ebp
call fcn.0040cd20
test al, al
je 0x40f1ed
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, esi
lea esi, [esp + 0x90]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x98]
push 0x400
push eax
push ecx
call ebx
test eax, eax
jne 0x40f18b
xor esi, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x4a0]
mov al, byte [esp + 0x20]
lea edx, [esp + 0x20]
mov byte [edi], al
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov ecx, dword [0x407740]
push ecx
push esi
push edx
mov ecx, edi
call fcn.0040c540
mov ecx, dword [esp + 0x24]
cmp ecx, esi
je 0x40f26b
mov al, byte [ecx - 1]
test al, al
je 0x40f261
cmp al, 0xff
je 0x40f261
dec al
mov byte [ecx - 1], al
jmp 0x40f26b
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x490]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48c
ret