Function at 0x5df3c0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd64
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__IntfAddRef_qqrx44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 0x278]
mov edx, dword [sym.imp.rtl250.bpl___xp_26System_Sysutils_TSearchRec]
call sub.rtl250.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x5df6f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x27d], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
jne 0x5df69e
lea edx, [ebp - 0x284]
mov eax, ebx
call sub.rtl250.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 8]
call sub.rtl250.bpl__System_Sysutils_IncludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
je 0x5df69e
mov ecx, 0x5df718
mov edx, dword [ebp - 8]
mov eax, dword [sym.imp.AxComponentsRTL.bpl__Axrtl_System_Strutils_StrUtils_]
call sub.AxComponentsRTL.bpl__Axrtl_System_Strutils_StrUtils_SameStr_qqrx20System_UnicodeStringt1
test al, al
jne 0x5df69e
mov dl, 1
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
jne 0x5df4a2
mov byte [ebp - 0x27d], 1
jmp 0x5df69e
lea eax, [ebp - 0x288]
mov ecx, 0x5df728
mov edx, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call sub.rtl250.bpl__System_Sysutils_FindFirst_qqrx20System_UnicodeStringir26System_Sysutils_TSearchRec
mov ebx, eax
test ebx, ebx
jne 0x5df63c
xor eax, eax
push ebp
push 0x5df635
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x5df608
mov eax, dword [ebp - 0x264]
mov edx, 0x5df73c
call sub.rtl250.bpl__System__UStrEqual_qqrv
je 0x5df5fb
mov eax, dword [ebp - 0x264]
mov edx, 0x5df74c
call sub.rtl250.bpl__System__UStrEqual_qqrv
je 0x5df5fb
mov esi, dword [ebp - 0x268]
test esi, 0x10
je 0x5df585
mov eax, dword [ebp - 0x27c]
cmp dword [eax + 0x18], 0
jle 0x5df546
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp + 8]
jge 0x5df546
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x5df69e
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x27c]
call fcn.005df3c0
test al, al
jne 0x5df5fb
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x5df69e
mov eax, esi
and eax, 1
dec eax
jne 0x5df5b6
and esi, 0xfffffffe
push esi
lea eax, [ebp - 0x290]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x290]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
lea eax, [ebp - 0x294]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x294]
call sub.rtl250.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
test al, al
jne 0x5df5fb
lea edx, [ebp - 0x298]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x298]
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
jne 0x5df5fb
call sub.rtl250.bpl__System_Sysutils_RaiseLastOSError_qqrv
lea eax, [ebp - 0x278]
call sub.rtl250.bpl__System_Sysutils_FindNext_qqrr26System_Sysutils_TSearchRec
mov ebx, eax
test ebx, ebx
jne 0x5df61c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x5df4e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5df63c
lea eax, [ebp - 0x278]
call sub.rtl250.bpl__System_Sysutils_FindClose_qqrr26System_Sysutils_TSearchRec
ret
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
jne 0x5df68e
cmp dword [ebp + 8], 0
jg 0x5df65a
mov eax, dword [ebp - 0x27c]
cmp byte [eax + 0x14], 0
je 0x5df68e
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jne 0x5df68e
lea edx, [ebp - 0x29c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x29c]
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
jne 0x5df68e
call sub.rtl250.bpl__System_Sysutils_RaiseLastOSError_qqrv
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
xor al, 1
mov byte [ebp - 0x27d], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5df6fa
lea eax, [ebp - 0x29c]
mov edx, dword [0x4a9fec]
mov ecx, 2
call sub.rtl250.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x294]
mov edx, 5
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x278]
mov edx, dword [sym.imp.rtl250.bpl___xp_26System_Sysutils_TSearchRec]
call sub.rtl250.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 8]
call sub.rtl250.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret