Function at 0x408f90
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44a262
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 0xc], ebx
mov eax, dword [0x464134]
cmp eax, 0xffffffff
push esi
push edi
mov byte [0x464147], 1
je 0x408fca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47741c]
xor edi, edi
cmp eax, ebx
jle 0x409008
xor esi, esi
cmp esi, ebx
jl 0x40925a
cmp edi, dword [0x477410]
jge 0x40925a
mov eax, dword [0x47740c]
mov eax, dword [esi + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x47741c]
inc edi
add esi, 0xc
cmp edi, eax
jl 0x408fd7
mov al, byte [0x464148]
test al, al
jne 0x409247
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push 2
push ecx
call fcn.0041b540
lea edx, [esp + 0x3c]
add esp, 8
push edx
call fcn.00403f50
add esp, 0x10
push str.C:Program_FilesCommon_FilesBorland_SharedBDE
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], ebx
call fcn.0041c090
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.0041c1d0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 2
call fcn.0041c060
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 1
call fcn.0041bee0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041c1d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.0041c060
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 1
call fcn.0041bee0
mov eax, dword [0x477478]
xor edi, edi
cmp eax, ebx
jle 0x4091dc
xor esi, esi
mov ebp, 6
lea esp, [esp]
push 0
sub esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041bff0
test esi, esi
mov byte [esp + 0x64], 4
jl 0x40925a
cmp edi, dword [0x47746c]
jge 0x40925a
mov eax, dword [0x477468]
lea edx, [esp + 0x50]
lea ecx, [esi + eax]
push edx
call fcn.0041c1d0
or ebx, 1
mov dword [esp + 0x24], ebx
mov ecx, eax
mov dword [esp + 0x64], ebp
call fcn.0041bf70
test eax, eax
jg 0x409170
push 0
sub esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041bff0
cmp edi, dword [0x47746c]
mov dword [esp + 0x64], 7
jge 0x40925a
mov ecx, dword [0x477468]
lea edx, [esp + 0x44]
add ecx, esi
push edx
call fcn.0041c1d0
or ebx, 2
mov dword [esp + 0x24], ebx
mov ecx, eax
mov dword [esp + 0x64], 9
call fcn.0041bf70
test eax, eax
mov byte [esp + 0x13], 0
jle 0x409175
mov byte [esp + 0x13], 1
test bl, 2
mov dword [esp + 0x54], ebp
je 0x40918e
and ebx, 0xfffffffd
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.0041bee0
test bl, 1
mov dword [esp + 0x54], 1
je 0x4091a7
lea ecx, [esp + 0x40]
and ebx, 0xfffffffe
call fcn.0041bee0
mov al, byte [esp + 0x13]
test al, al
jne 0x4091cb
cmp edi, dword [0x47746c]
jge 0x40925a
mov eax, dword [0x477468]
mov eax, dword [esi + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x477478]
inc edi
add esi, 0xc
cmp edi, eax
jl 0x4090c0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x44fad4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x477498]
xor edi, edi
test eax, eax
jle 0x409228
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor esi, esi
test esi, esi
jl 0x40925a
cmp edi, dword [0x47748c]
jge 0x40925a
mov ecx, dword [0x477488]
mov eax, dword [esi + ecx + 4]
push eax
call ebx
mov eax, dword [0x477498]
inc edi
add esi, 0xc
cmp edi, eax
jl 0x409202
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0
call fcn.0041bee0
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.0041bee0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret
jmp fcn.0043afed