Function at 0x58646c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x586474
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5868d5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x5868f0
mov edx, 0x58691c
mov eax, 0x80000002
call fcn.004a5820
cmp dword [ebp - 4], 0
je 0x5868ad
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TStringList_]
call sub.rtl120.bpl__Classes_TStringList__bctr_qqrv
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TStringList_]
call sub.rtl120.bpl__Classes_TStringList__bctr_qqrv
mov ebx, eax
mov edx, 0x5869b8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 1
push ebx
lea eax, [ebp - 0xc]
mov ecx, 0x5869e8
mov edx, dword [ebp - 4]
call fcn.004a6bb0
test eax, eax
je 0x5868ad
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, ebx
call sub.rtl120.bpl__System_TObject_Free_qqrv
lea edx, [ebp - 0x1c]
xor eax, eax
call sub.rtl120.bpl__System_ParamStr_qqri
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 8]
call sub.rtl120.bpl__Sysutils_ExtractFileDir_qqrx20System_UnicodeString
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x58657f
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.004a6268
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x28]
pop edx
call fcn.004a5ad4
dec eax
jne 0x586576
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x58652c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x586601
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sub.rtl120.bpl__Sysutils_ExtractFileExt_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30]
mov eax, 0x5869fc
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x5865f9
xor eax, eax
push ebp
push 0x5865ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.004a6608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5865f9
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x586597
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x58669a
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call sub.rtl120.bpl__Sysutils_ExtractFileExt_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x3c]
mov eax, 0x586a14
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x586692
xor eax, eax
push ebp
push 0x586688
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x44]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0x586a20
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586692
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x58661d
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5866f2
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
xor eax, eax
push ebp
push 0x5866e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.00586310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5866ea
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x5866b2
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TStringList_]
call sub.rtl120.bpl__Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004a6ef8
test eax, eax
jbe 0x58689d
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x58689d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TStringList_]
call sub.rtl120.bpl__Classes_TStringList__bctr_qqrv
mov dword [0x5a210c], eax
mov eax, dword [0x59e51c]
push dword [eax]
push 0x586a48
push 0x5869b8
push 0x586a5c
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x50]
push 0x586a6c
push 0x5869b8
lea eax, [ebp - 0x4c]
mov edx, 7
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x5a210c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x59e51c]
push dword [eax]
push 0x586a48
push 0x586a7c
push 0x586a5c
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x58]
push 0x586a6c
push 0x586a7c
lea eax, [ebp - 0x54]
mov edx, 7
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x54]
mov eax, dword [0x5a210c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x59e51c]
push dword [eax]
push 0x586a48
push 0x586aac
push 0x586a5c
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x60]
push 0x586a6c
push 0x586aac
lea eax, [ebp - 0x5c]
mov edx, 7
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x5a210c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [0x5a210c]
call fcn.004b5574
mov eax, dword [0x5a210c]
call sub.rtl120.bpl__System_TObject_Free_qqrv
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
jne 0x586891
xor eax, eax
push ebp
push 0x586887
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x68]
call fcn.004a6850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586891
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x586734
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 0x10]
call sub.rtl120.bpl__System_TObject_Free_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5868dc
lea eax, [ebp - 0x68]
mov edx, 0x14
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret