Function at 0x5ff8b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x5ff8bc
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5ffbf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x5ffbce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x5ffbce
mov ecx, 0x5ffc14
mov dl, 1
mov eax, dword [0x5fea18]
call fcn.005fed74
mov esi, eax
mov dl, 2
mov eax, esi
call fcn.005fef38
mov dl, 1
mov eax, esi
call fcn.005fefe4
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.004248ec
sub eax, 1
jb 0x5ff92d
je 0x5ff938
dec eax
je 0x5ff943
jmp 0x5ff94c
xor edx, edx
mov eax, esi
call fcn.005ff12c
jmp 0x5ff94c
mov dl, 2
mov eax, esi
call fcn.005ff12c
jmp 0x5ff94c
mov dl, 1
mov eax, esi
call fcn.005ff12c
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.004248ec
dec eax
jne 0x5ff9c4
lea edx, [ebp - 0x6c]
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.004249d4
mov edx, dword [ebp - 0x6c]
mov eax, esi
call fcn.005ff010
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.00424acc
lea edx, [ebp - 0x70]
call sub.rtl120.bpl__Sysutils_IntToStr_qqri
mov edx, dword [ebp - 0x70]
mov eax, esi
call fcn.005ff044
lea edx, [ebp - 0x74]
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.00424bc4
mov edx, dword [ebp - 0x74]
mov eax, esi
call fcn.005ff168
lea edx, [ebp - 0x78]
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.00424cbc
mov edx, dword [ebp - 0x78]
mov eax, esi
call fcn.005ff078
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x5ffb67
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00578e0c
mov ebx, eax
test ebx, ebx
je 0x5ffb5d
cmp byte [ebx + 0x51], 0
jne 0x5ffb5d
lea edx, [ebp - 0x7c]
mov eax, dword [ebx + 0x30]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x7c], 0
je 0x5ffb5d
cmp byte [ebx + 0x52], 0
je 0x5ffa2e
cmp byte [ebx + 0x53], 0
je 0x5ffa2e
cmp byte [ebx + 0x54], 0
je 0x5ffb5d
mov eax, ebx
call fcn.0057876c
mov eax, ebx
call fcn.0057886c
movzx eax, byte [0x5ffc1c]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x5ffc2c
mov edx, 0x5ffc3c
mov eax, dword [ebx + 0x30]
call sub.rtl120.bpl__Sysutils_StringReplace_qqrx20System_UnicodeStringt1t149System__Set_t21Sysutils_Sysutils__15_iuc_0_iuc_1_
mov edx, dword [ebp - 0x80]
lea eax, [ebx + 0x34]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x84]
mov eax, dword [ebx + 0x34]
call fcn.0040bf9c
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0x34]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x88]
mov eax, dword [ebx + 0x34]
call sub.rtl120.bpl__Sysutils_ExtractFileName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x88]
lea eax, [ebx + 0x34]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push dword [ebx + 0x40]
push 0x5ffc2c
push dword [ebx + 0x34]
lea eax, [ebx + 0x34]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
lea edx, [ebp - 0x8c]
xor eax, eax
call fcn.005ff72c
mov edx, dword [ebp - 0x8c]
lea eax, [ebx + 0x34]
mov ecx, dword [ebx + 0x34]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
test dword [ebx + 0x4c], 0x800000
jle 0x5ffb07
lea edx, [ebp - 0x90]
xor eax, eax
call fcn.005ff72c
push dword [ebp - 0x90]
push dword [ebx + 0x80]
push 0x5ffc4c
lea eax, [ebx + 0x34]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
test byte [ebx + 0x4e], 0x80
jne 0x5ffb32
lea edx, [ebp - 0x94]
mov eax, dword [0x7a0d94]
mov eax, dword [eax]
call fcn.00422bb4
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x30]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
jmp 0x5ffb3d
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebx + 0x40]
push eax
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push 0
push 0
push 0
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005feab8
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
dec edi
jne 0x5ff9e2
cmp dword [ebp - 0x14], 0
jle 0x5ffbc7
push 0x5ffc64
mov eax, dword [0x7a066c]
push dword [eax]
push 0x5ffc74
push 0x5ffca4
lea edx, [ebp - 0x98]
mov eax, esi
call fcn.005fed5c
push dword [ebp - 0x98]
lea eax, [ebp - 8]
mov edx, 5
call sub.rtl120.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
call sub.kernel32.dll_CreateProcessW
mov eax, esi
call sub.rtl120.bpl__System_TObject_Free_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ffc00
lea eax, [ebp - 0x98]
mov edx, 0xc
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret