Function at 0x4285e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push 0x104
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004a9a20
lea eax, [ebp - 0x108]
push eax
call fcn.004a86c0
push 0
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004a8630
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x108]
add esp, 0x28
push eax
call esi
cmp eax, 0xffffffff
je 0x42882c
test al, 0x10
je 0x428800
push edi
push 0
push 0x429ae0
push 1
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0042bb00
lea eax, [ebp - 0x108]
mov dword [ebp - 0x116], 0
push eax
call fcn.004a73a0
add esp, 0x18
test eax, eax
jne 0x428787
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4286a0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
jne 0x4286cb
push 0
push 1
lea eax, [ebp - 0x108]
push eax
push str.:7:DeleteFiles___s____d___d__will_produce_no_results_because_the_path_given_is_empty___Use_a__after_the_backslash_to_delete_files_or_remove_the_back_slash_to_delete_the_directory.
call fcn.00424fd0
add esp, 0x10
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4286d4
sub ecx, edx
lea eax, [ecx + 0xa]
push eax
push 1
call fcn.004eea94
mov edi, eax
add esp, 8
test edi, edi
je 0x428787
lea ecx, [ebp - 0x108]
mov edx, edi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x428701
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428713
sub ecx, edx
mov byte [ecx + edi + 1], al
mov eax, 0x614
mov word [ebp - 0x118], ax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 3
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x112], 0
mov dword [ebp - 0x10e], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.004eea9f
add esp, 4
test esi, esi
je 0x4287d9
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.004289f0
add esp, 4
test eax, eax
je 0x4287e6
push esi
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push ebx
push str.:3:DeleteDirectory___s___FAILED:_DeleteFiles___s___1__0__FAILED:__s_ld
call fcn.00424a90
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
je 0x42882c
push ebx
call fcn.004289f0
add esp, 4
test eax, eax
je 0x42882c
push ebx
call esi
cmp eax, 0xffffffff
je 0x42881e
test al, 0x10
jne 0x42882c
push ebx
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.00424a90
add esp, 8
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret