Function at 0x65bdf8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x65c0ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x80]
cmp ebx, 1
jle 0x65c0ca
dec ebx
push ebx
mov eax, dword [ebp - 8]
add eax, 0xa0
mov ecx, 1
mov edx, dword [0x656d8c]
call sub.rtl120.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call sub.rtl120.bpl__System__DynArrayLength_qqrv
dec eax
test eax, eax
jl 0x65bffa
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
push dword [eax + 8]
push 0x65c10c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc eax
call sub.rtl120.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
je 0x65bf5c
xor eax, eax
push ebp
push 0x65bf00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TFileStream_]
call sub.rtl120.bpl__Classes_TFileStream__bctr_qqrx20System_UnicodeStringus
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65bfee
xor eax, eax
push ebp
push 0x65bf97
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [sym.imp.rtl120.bpl__Classes_TFileStream_]
call sub.rtl120.bpl__Classes_TFileStream__bctr_qqrx20System_UnicodeStringus
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65bfee
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x65be75
cmp byte [ebp - 9], 0
jne 0x65c0ca
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call sub.rtl120.bpl__System__DynArrayLength_qqrv
dec eax
test eax, eax
jl 0x65c0ad
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x65c0a1
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 8]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
push ebp
push 0x65c083
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sub.rtl120.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + edx*4], ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65c08d
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
je 0x65c0a1
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__Sysutils_DeleteFile_qqrx20System_UnicodeString
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x65c026
push 0
mov eax, dword [ebp - 8]
add eax, 0xa0
mov ecx, 1
mov edx, dword [0x656d8c]
call sub.rtl120.bpl__System__DynArraySetLength_qqrv
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65c0f4
lea eax, [ebp - 0x20]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret