Function at 0x4df91c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0xd], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4dfb99
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4df9aa
lea edx, [ebp - 0x28]
mov eax, dword [0x595718]
call fcn.0040bc48
mov esi, dword [ebp - 0x28]
mov eax, dword [0x595698]
cmp dword [eax], 0
je 0x4df982
mov edi, dword [0x595698]
mov edi, dword [edi]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
call edi
jmp 0x4df990
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], esi
mov edx, dword [ebp - 0x2c]
call fcn.00408050
lea eax, [ebp - 0xc]
call fcn.00408218
mov ecx, 0x9e8
mov edx, 0x4dfbb8
mov eax, dword [ebp - 0xc]
call fcn.00407a60
mov byte [ebp - 0x15], 1
mov dl, 1
mov eax, dword [0x45acbc]
call fcn.004669bc
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x4dfb27
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004ded08
push dword [ebp - 4]
push 0x4dfc04
push 0x4dfc14
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00408c48
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x1ff
call fcn.004deed4
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4dfb0c
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
push dword [ebp - 4]
push 0x4dfc04
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00408c48
mov bl, 1
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4dfa70
test al, 0x10
je 0x4dfa70
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebp - 8]
call fcn.004df91c
mov ebx, eax
jmp 0x4dfaf2
cmp dword [ebp - 0x14], 0
je 0x4dfa80
mov edx, eax
mov eax, dword [ebp - 8]
call dword [ebp - 0x14]
mov ebx, eax
test bl, bl
je 0x4dfaf2
push 0x80
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
call sub.kernel32.dll_SetFileAttributesW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4dfaf2
mov eax, dword [ebp - 8]
call fcn.0040895c
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4dfaf2
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4dfaec
test ah, 4
je 0x4dfaec
test al, 0x10
je 0x4dfaec
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
call sub.kernel32.dll_RemoveDirectoryW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4dfaf2
push esi
call sub.kernel32.dll_SetLastError
test bl, bl
jne 0x4dfb00
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0xd], 0
jne 0x4dfb0c
inc dword [ebp - 0x20]
dec dword [ebp - 0x24]
jne 0x4dfa1b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfb2e
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.004060e0
ret