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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x40de92
mov eax, dword [edi]
jmp 0x40de94
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e0a4
cmp dword [edi + 0x14], 8
jb 0x40dead
mov eax, dword [edi]
jmp 0x40deaf
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
jb 0x40dec0
mov eax, dword [edi]
jmp 0x40dec2
mov eax, edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp eax, 1
sete al
mov byte [ebp + 0xb], al
test al, al
jne 0x40e09b
cmp byte [ebp + 0xc], al
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp + 0x10]
je 0x40dfee
call eax
cmp eax, 5
jne 0x40dfe9
cmp dword [edi + 0x14], 8
jb 0x40df04
mov eax, dword [edi]
jmp 0x40df06
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
mov dword [ebp - 4], edx
test dl, 1
je 0x40dfe9
test ebx, ebx
je 0x40df43
cmp dword [edi + 0x14], 8
jb 0x40df29
mov ecx, dword [edi]
jmp 0x40df2b
mov ecx, edi
mov eax, dword [ebx]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push str.FileUtils
push 0x47fb68
push 0x14
push ebx
jmp 0x40dfab
mov ecx, dword [0x490788]
test ecx, ecx
je 0x40df7d
cmp dword [edi + 0x14], 8
jb 0x40df57
mov eax, dword [edi]
jmp 0x40df59
mov eax, edi
push edx
push eax
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x47fb68
push 0x47fb68
push str.FileUtils
push str.OOBEUtils
push 0x14
call ecx
add esp, 0x20
jmp 0x40dfb1
mov ecx, dword [0x49078c]
test ecx, ecx
je 0x40dfb1
cmp dword [edi + 0x14], 8
jb 0x40df91
mov edx, dword [edi]
jmp 0x40df93
mov edx, edi
push dword [ebp - 4]
mov eax, dword [ecx]
push edx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push str.FileUtils
push 0x47fb68
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
jb 0x40dfbb
mov eax, dword [edi]
jmp 0x40dfbd
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
jb 0x40dfd3
mov eax, dword [edi]
jmp 0x40dfd5
mov eax, edi
push eax
call esi
cmp eax, 1
sete al
mov byte [ebp + 0xb], al
test al, al
jne 0x40e09a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40e022
cmp dword [edi + 0x14], 8
jb 0x40dffa
mov edi, dword [edi]
mov esi, dword [ebx]
call eax
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x47fb68
push 0x32
push ebx
call dword [esi + 0x34]
mov al, byte [ebp + 0xb]
add esp, 0x1c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [0x490788], 0
je 0x40e065
cmp dword [edi + 0x14], 8
jb 0x40e033
mov edi, dword [edi]
call eax
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x47fb68
push 0x47fb68
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x490788]
mov al, byte [ebp + 0xb]
add esp, 0x20
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x49078c]
test esi, esi
je 0x40e09a
cmp dword [edi + 0x14], 8
jb 0x40e077
mov edi, dword [edi]
mov esi, dword [esi]
call eax
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x47fb68
push 0x32
push dword [0x49078c]
call dword [esi + 0x34]
add esp, 0x1c
pop ebx
mov al, byte [ebp + 0xb]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret