Function at 0x100ff240
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, ecx
mov byte [ebp - 2], dl
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100ff254
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100ff473
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ff26d
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ff27e
mov eax, dword [edi]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp + 8]
cmp eax, 1
sete byte [ebp - 1]
je 0x100ff39d
cmp byte [ebp - 2], 0
je 0x100ff39d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100ff39d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ff2ba
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x100ff39d
test ebx, ebx
je 0x100ff2f2
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100ff2da
mov ecx, dword [edi]
mov esi, 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 0x101ace8c
push 0x14
push ebx
jmp 0x100ff35b
mov esi, dword [0x101fc354]
test esi, esi
je 0x100ff332
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ff306
mov eax, dword [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 0x101ace8c
push 0x101ace8c
push str.FileUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x100ff36b
mov eax, dword [0x101fc358]
test eax, eax
je 0x100ff36b
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100ff345
mov ecx, dword [edi]
mov esi, dword [eax]
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 0x101ace8c
push 0x14
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ff375
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ff38b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
mov byte [ebp - 1], al
jmp 0x100ff3a0
mov al, byte [ebp - 1]
test al, al
jne 0x100ff469
test ebx, ebx
je 0x100ff3d5
cmp dword [edi + 0x14], 8
jb 0x100ff3b4
mov edi, dword [edi]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x101ace8c
push 0x32
push ebx
jmp 0x100ff459
cmp dword [0x101fc354], 0
je 0x100ff426
cmp dword [edi + 0x14], 8
jb 0x100ff3e6
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc354]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x101ace8c
push 0x101ace8c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x1019a4f8]
call esi
mov al, byte [ebp - 1]
add esp, 0x20
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x101fc358]
test esi, esi
je 0x100ff469
cmp dword [edi + 0x14], 8
jb 0x100ff438
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x101ace8c
push 0x32
push dword [0x101fc358]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
mov al, byte [ebp - 1]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret