Function at 0x660e38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x660e40
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x66116d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x661142
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x661142
mov ecx, 0x661188
mov dl, 1
mov eax, dword [0x65ffbc]
call fcn.00660318
mov esi, eax
mov dl, 2
mov eax, esi
call fcn.006604dc
mov dl, 1
mov eax, esi
call fcn.00660588
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.00428e78
sub al, 1
jb 0x660eb1
je 0x660ebc
dec al
je 0x660ec7
jmp 0x660ed0
xor edx, edx
mov eax, esi
call fcn.006606d0
jmp 0x660ed0
mov dl, 2
mov eax, esi
call fcn.006606d0
jmp 0x660ed0
mov dl, 1
mov eax, esi
call fcn.006606d0
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.00428e78
cmp al, 1
jne 0x660f49
lea edx, [ebp - 0x6c]
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.00428f5c
mov edx, dword [ebp - 0x6c]
mov eax, esi
call fcn.006605b4
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.00429054
lea edx, [ebp - 0x70]
call sub.rtl120.bpl__Sysutils_IntToStr_qqri
mov edx, dword [ebp - 0x70]
mov eax, esi
call fcn.006605e8
lea edx, [ebp - 0x74]
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.0042914c
mov edx, dword [ebp - 0x74]
mov eax, esi
call fcn.0066070c
lea edx, [ebp - 0x78]
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.00429244
mov edx, dword [ebp - 0x78]
mov eax, esi
call fcn.0066061c
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 0x6610d1
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.0052bf78
mov ebx, eax
test ebx, ebx
je 0x6610c7
cmp byte [ebx + 0x51], 0
jne 0x6610c7
cmp byte [ebx + 0x52], 0
je 0x660f9e
cmp byte [ebx + 0x53], 0
je 0x660f9e
cmp byte [ebx + 0x54], 0
je 0x6610c7
mov eax, ebx
call fcn.0052b940
mov eax, ebx
call fcn.0052b9e4
movzx eax, byte [0x661190]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x6611a0
mov edx, 0x6611b0
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 - 0x7c]
lea eax, [ebx + 0x34]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x80]
mov eax, dword [ebx + 0x34]
call fcn.0040d994
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 sub.rtl120.bpl__Sysutils_ExtractFileName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0x34]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push dword [ebx + 0x40]
push 0x6611a0
push dword [ebx + 0x34]
lea eax, [ebx + 0x34]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
lea edx, [ebp - 0x88]
xor eax, eax
call fcn.00660ca4
mov edx, dword [ebp - 0x88]
lea eax, [ebx + 0x34]
mov ecx, dword [ebx + 0x34]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
test dword [ebx + 0x4c], 0x800000
jle 0x661071
lea edx, [ebp - 0x8c]
xor eax, eax
call fcn.00660ca4
push dword [ebp - 0x8c]
push dword [ebx + 0x80]
push 0x6611c0
lea eax, [ebx + 0x34]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
test byte [ebx + 0x4e], 0x80
jne 0x66109c
lea edx, [ebp - 0x90]
mov eax, dword [0x807134]
mov eax, dword [eax]
call fcn.00426ee8
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x30]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
jmp 0x6610a7
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.0066005c
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
dec edi
jne 0x660f67
cmp dword [ebp - 0x14], 0
jle 0x66113b
push 0x6611d8
lea eax, [ebp - 0x94]
call fcn.0040ccac
push dword [ebp - 0x94]
push 0x6611e8
push 0x661218
lea edx, [ebp - 0x98]
mov eax, esi
call fcn.00660300
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 0x661174
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