Function at 0x5710ec
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call sub.rtl140.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 0x10]
call sub.rtl140.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 0x14]
call sub.rtl140.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x5713f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 0xc]
call sub.rtl140.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
je 0x5713c5
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call sub.rtl140.bpl__System__FillChar_qqrpvib
mov dword [ebp - 0x6c], 0x44
push 0x571418
push dword [ebp - 0xc]
push 0x571418
push 0x571428
push dword [ebp - 0x10]
lea eax, [ebp - 0x80]
mov edx, 5
call sub.rtl140.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x14]
call sub.rtl140.bpl__Sysutils_Trim_qqrx20System_UnicodeString
test bl, bl
je 0x5711bd
lea eax, [ebp - 0x14]
mov edx, 0x571444
call sub.rtl140.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5711ca
lea eax, [ebp - 0x14]
mov edx, 0x571474
call sub.rtl140.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push dword [ebp - 0x14]
push 0x5714a4
push dword [ebp + 0x14]
push 0x571418
lea eax, [ebp - 0x14]
mov edx, 4
call sub.rtl140.bpl__System__UStrCatN_qqrv
push 1
mov eax, dword [ebp - 4]
call fcn.0056b0b4
push eax
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5714cc
call sub.rtl140.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x84]
mov dl, 4
pop eax
call fcn.00561534
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0xc]
call sub.rtl140.bpl__Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x88]
call sub.rtl140.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
push 0x220
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
call sub.rtl140.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x5713c5
mov eax, dword [ebp - 0x74]
mov dword [edi], eax
cmp dword [edi], 0
seta byte [ebp - 0x15]
xor eax, eax
mov dword [esi], eax
test bl, bl
jne 0x571324
call sub.rtl140.bpl__Sysutils_Now_qqrv
fstp qword [ebp - 0x20]
wait
lea edx, [ebp - 0x90]
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call sub.rtl140.bpl__Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 8]
mov ecx, 0x5714f4
call sub.rtl140.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
push 0x571518
push 0
mov ecx, 0x57153c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00576fc4
push ebp
call fcn.00571044
pop ecx
mov dword [esi], eax
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_ProcessMessages_qqrv
cmp dword [esi], 0
ja 0x571309
call sub.rtl140.bpl__Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call sub.rtl140.bpl__Dateutils_MilliSecondsBetween_qqrx16System_TDateTimet1
cmp edx, 0
jne 0x571307
cmp eax, 0x2710
jb 0x5712c8
jmp 0x571309
jl 0x5712c8
cmp dword [esi], 0
jne 0x571324
push 1
mov eax, dword [ebp - 4]
call fcn.0056b0b4
mov ecx, 0x571554
mov dl, 4
call fcn.00561534
test bl, bl
je 0x5713c5
mov byte [ebp - 0x21], 0
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_GetActiveFormHandle_qqrv
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x5713be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x571369
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_EnableWindow
mov byte [ebp - 0x21], 1
push 0xa
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
sub eax, 1
jb 0x571382
sub eax, 0x101
je 0x571388
jmp 0x571369
mov byte [ebp - 0x15], 1
jmp 0x571396
mov eax, dword [sym.imp.vcl140.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl140.bpl__Forms_TApplication_ProcessMessages_qqrv
jmp 0x571369
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5713c5
cmp byte [ebp - 0x21], 0
je 0x5713bd
push 0xffffffffffffffff
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_EnableWindow
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_SetForegroundWindow
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5713ff
lea eax, [ebp - 0x90]
mov edx, 5
call sub.rtl140.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
mov edx, 4
call sub.rtl140.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 0x14]
call sub.rtl140.bpl__System__UStrClr_qqrpv
ret