Function at 0x100040d0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
sub esp, 0x78
push ebx
push edi
xor edi, edi
mov dword [esp + 0x20], 0xc
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 1
push eax
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1000435b
push ebp
push esi
push 0x44
lea eax, [esp + 0x48]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x34]
push 0x10
push eax
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 0x101
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
push edi
push edi
push 0x8000000
push 1
push edi
push edi
push dword [esp + 0xac]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call ebp
test esi, esi
je 0x10004353
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x401
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x1000433d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [esp + 0x10], edi
imul eax, dword [esp + 0x90], 0x3e8
push edi
add ecx, eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004331
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004331
push 0
push 0
mov byte [eax + ebp], 0
push dword [esp + 0x18]
push ebp
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x100042f5
lea eax, [esi*2 + 2]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100042ef
push esi
push ebx
push dword [esp + 0x18]
push ebp
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100042db
push 0
push 0
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x100042d7
mov eax, dword [esp + 0x18]
add eax, ebp
mov dword [esp + 0x18], eax
inc eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
jne 0x10004292
push 8
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x100042a2
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x100042c5
mov edi, eax
test edi, edi
je 0x100042d7
push 0
push 0
push ebp
sub eax, ebp
add eax, dword [esp + 0x24]
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x100042d7
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov ebp, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100042f5
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x24]
jae 0x10004326
test edi, edi
je 0x10004326
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100041f0
jmp 0x10004331
push 0
push dword [esp + 0x38]
call sub.NTDLL.dll_NtTerminateProcess
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
push dword [esp + 0x34]
call ebp
mov ebx, dword [esp + 0x18]
push dword [esp + 0x1c]
call ebp
pop esi
pop ebp
mov eax, dword [esp + 0x8c]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
add esp, 0x78
ret