Function at 0x4414d8
Capabilities:
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x4419dd
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x44195e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x4419f8
mov eax, dword [ebp - 0x10]
call fcn.0043efec
xor ecx, ecx
mov edx, 0x441a18
mov eax, dword [ebp - 0x10]
call fcn.0043ef78
mov esi, eax
xor ecx, ecx
mov edx, 0x441a34
mov eax, dword [ebp - 0x10]
call fcn.0043ef78
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrEqual_qqrv
jne 0x44155f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4419ba
cmp esi, 8
ja case.0x441568.0
jmp dword [esi*4 + 0x44156f]
test bl, bl
je 0x441611
mov dl, 1
mov eax, dword [0x43f934]
call fcn.0043fd50
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x44160a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x4415d0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_DeleteFileW
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00440724
test al, al
jne 0x4415f4
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.0044112c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x441568.0
lea eax, [ebp - 0x14]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0043f06c
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
jmp case.0x441568.0
test bl, bl
je 0x4416c3
mov dl, 1
mov eax, dword [0x43f934]
call fcn.0043fd50
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4416bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x441682
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_DeleteFileW
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00440724
test al, al
jne 0x4416a6
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.0044112c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x441568.0
lea eax, [ebp - 0x14]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0043f06c
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x4416ee
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
or ecx, 0xffffffff
mov edx, 0x441a5c
mov eax, dword [ebp - 0x10]
call fcn.0043ef78
mov ebx, eax
cmp ebx, 0xffffffff
je case.0x441568.0
push ebx
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
jmp case.0x441568.0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 0x18]
call sub.rtl160.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov eax, dword [ebp - 0x18]
mov dl, 1
call sub.rtl160.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je case.0x441568.0
push ebx
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
jmp case.0x441568.0
lea eax, [ebp - 8]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x441a78
mov eax, dword [ebp - 0x10]
call fcn.0043efec
mov eax, dword [ebp - 8]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrEqual_qqrv
je case.0x441568.0
push 1
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
jne case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044112c
jmp case.0x441568.0
or ecx, 0xffffffff
mov edx, 0x441a5c
mov eax, dword [ebp - 0x10]
call fcn.0043ef78
mov ebx, eax
cmp ebx, 0xffffffff
je case.0x441568.0
push ebx
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
jmp case.0x441568.0
mov dl, 1
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
je case.0x441568.0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jne case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
jmp case.0x441568.0
mov dl, 1
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
jne case.0x441568.0
test bl, bl
je 0x4418f9
mov dl, 1
mov eax, dword [0x43f934]
call fcn.0043fd50
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4418f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00440724
test al, al
jne 0x4418dc
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.0044112c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x441568.0
lea eax, [ebp - 0x14]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov edx, 0x441a5c
mov eax, dword [ebp - 0x10]
call fcn.0043efec
mov eax, dword [ebp - 0xc]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrEqual_qqrv
je 0x441931
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004412f8
jmp case.0x441568.0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_ForceDirectories_qqr20System_UnicodeString
test al, al
jne case.0x441568.0
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4419ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4419e4
lea eax, [ebp - 0x18]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret