Function at 0x40df90
Capabilities:
Check if file exists
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x451c14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40e1a3
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dfd2
sub eax, edx
sar eax, 1
je 0x40e1a3
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e02c
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e020
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x40e006
mov dword [ebp - 0x14], 0
jmp 0x40e15b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x40e166
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40e166
push ebx
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e096
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
lea ecx, [ecx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e08a
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x40e070
mov dword [ebp - 0x14], 0
jmp 0x40e15b
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x40e166
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e0b0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418971
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40e163
mov edi, dword [ebp + 8]
push edi
push esi
push ebx
call fcn.0042771d
add esp, 0xc
mov ecx, ebx
call fcn.0040e200
test eax, eax
jne 0x40e14f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e146
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
lea ecx, [ecx]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e13d
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x40e120
mov dword [ebp - 0x14], 0
jmp 0x40e14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.0041896c
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x40e166
jmp 0x40e187
mov ebx, dword [ebp + 8]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40e17e
mov dword [ebp - 0x14], 0
jmp 0x40e187
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret