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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
xor ebx, ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x6399a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], 0xffffffff
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x63996f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call sub.rtl260.bpl__System__FillChar_qqrpvic
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 0x101
mov word [ebp - 0x44], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x20]
call sub.rtl260.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 4]
mov edx, 0x6399c4
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x188]
call sub.rtl260.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x21], 0
je 0x639958
xor eax, eax
push ebp
push 0x639951
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xff
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp dword [ebp - 0x1c], 0
jbe 0x639914
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x184], 0
lea eax, [ebp - 0x18c]
lea edx, [ebp - 0x184]
mov ecx, pe_nt_image_headers32
call sub.rtl260.bpl__System__UStrFromArray_qqrr20System_UnicodeStringpci
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0xc]
cmp byte [ebp - 0x15], 0
je 0x639920
cmp dword [ebp - 0x1c], 0
jne 0x6398b8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639958
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x639976
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret