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

Disassembly:
push 0xffffffffffffffff
push 0x4617c2
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 [0x487014]
cmp eax, 0xffffffff
push esi
push edi
mov byte [0x487027], 1
je 0x409bca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [0x4925e0], ebx
jle 0x409c08
xor esi, esi
cmp esi, ebx
jl 0x409e5b
cmp edi, dword [0x4925d4]
jge 0x409e5b
mov eax, dword [0x4925d0]
mov eax, dword [esi + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 1
add esi, 0xc
cmp edi, dword [0x4925e0]
jl 0x409bd6
cmp byte [0x487028], bl
jne 0x409e48
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push 2
push ecx
call fcn.00421190
lea edx, [esp + 0x3c]
add esp, 8
push edx
call fcn.00404300
add esp, 0x10
push str.C:Program_FilesCommon_FilesBorland_SharedBDE
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], ebx
call fcn.00421e50
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.004220b0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 2
call fcn.00421e20
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 1
call fcn.00421ba0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x20]
call fcn.004220b0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.00421e20
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 1
call fcn.00421ba0
xor edi, edi
cmp dword [0x49263c], ebx
jle 0x409ddd
xor esi, esi
mov ebp, 6
push 0
sub esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00421d90
test esi, esi
mov byte [esp + 0x64], 4
jl 0x409e5b
cmp edi, dword [0x492630]
jge 0x409e5b
mov eax, dword [0x49262c]
lea edx, [esp + 0x50]
lea ecx, [esi + eax]
push edx
call fcn.004220b0
or ebx, 1
mov byte [esp + 0x64], 5
mov dword [esp + 0x24], ebx
mov ecx, eax
mov dword [esp + 0x64], ebp
call fcn.00421cf0
test eax, eax
jg 0x409d71
push 0
sub esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00421d90
cmp edi, dword [0x492630]
mov dword [esp + 0x64], 7
jge 0x409e5b
mov ecx, dword [0x49262c]
lea edx, [esp + 0x44]
add ecx, esi
push edx
call fcn.004220b0
or ebx, 2
mov byte [esp + 0x64], 8
mov dword [esp + 0x24], ebx
mov ecx, eax
mov dword [esp + 0x64], 9
call fcn.00421cf0
test eax, eax
mov byte [esp + 0x13], 0
jle 0x409d76
mov byte [esp + 0x13], 1
test bl, 2
mov dword [esp + 0x54], ebp
je 0x409d8f
and ebx, 0xfffffffd
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.00421ba0
test bl, 1
mov dword [esp + 0x54], 1
je 0x409da8
lea ecx, [esp + 0x40]
and ebx, 0xfffffffe
call fcn.00421ba0
cmp byte [esp + 0x13], 0
jne 0x409dcb
cmp edi, dword [0x492630]
jge 0x409e5b
mov eax, dword [0x49262c]
mov eax, dword [esi + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 1
add esi, 0xc
cmp edi, dword [0x49263c]
jl 0x409cb7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x468dc0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor edi, edi
cmp dword [0x49265c], edi
jle 0x409e29
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor esi, esi
test esi, esi
jl 0x409e5b
cmp edi, dword [0x492650]
jge 0x409e5b
mov ecx, dword [0x49264c]
mov eax, dword [esi + ecx + 4]
push eax
call ebx
add edi, 1
add esi, 0xc
cmp edi, dword [0x49265c]
jl 0x409e02
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0
call fcn.00421ba0
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.00421ba0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret
jmp fcn.0042b3b4