Function at 0x57b768
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x57b770
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x57b9bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, 0x57b9d4
call sub.xmlrtl60.bpl__Xmldoc_NewXMLDocument_qqr17System_WideString
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x94]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov edx, 0x57b9e0
mov ebx, dword [eax]
call dword [ebx + 0x38]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov edx, 0x57b9f8
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__IntfCopy_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInter
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x57b8f6
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov cl, 0xfc
call sub.rtl60.bpl__System__OleVarFromInt_qqrr17System_OleVariantxixi
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x14]
pop eax
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call sub.rtl60.bpl__System__LStrFromWStr_qqrr17System_AnsiStringx17System_WideString
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call sub.rtl60.bpl__Sysutils_LowerCase_qqrx17System_AnsiString
mov eax, dword [ebp - 0x48]
mov edx, 0x57ba1c
call sub.rtl60.bpl__System__LStrCmp_qqrv
jne 0x57b8ea
mov edx, 0x57ba30
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
test al, al
jne 0x57b8d0
push 0
lea eax, [ebp - 0x54]
push eax
mov cl, 2
mov edx, 0x57ba30
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x58]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x68]
mov dl, 1
call sub.rtl60.bpl__System__VarFromBool_qqrr14System_Variantxo
lea ecx, [ebp - 0x68]
mov edx, 0x57ba30
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x58]
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x57b834
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b9c9
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x68]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x58]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x54]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x50]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x4c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x44]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x34]
mov edx, dword [sym.imp.xmlrtl60.bpl___xp_20Xmlintf_IXMLNodeList]
mov ecx, 3
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x28]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x14]
mov edx, dword [sym.imp.xmlrtl60.bpl___xp_16Xmlintf_IXMLNode]
mov ecx, 3
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret