Function at 0x100ffab0
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 0x100ffac4
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100ffce3
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ffadd
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ffaee
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 0x100ffc0d
cmp byte [ebp - 2], 0
je 0x100ffc0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100ffc0d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ffb2a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x100ffc0d
test ebx, ebx
je 0x100ffb62
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100ffb4a
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 0x101ace0c
push 0x14
push ebx
jmp 0x100ffbcb
mov esi, dword [0x101fc274]
test esi, esi
je 0x100ffba2
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ffb76
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 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x20
jmp 0x100ffbdb
mov eax, dword [0x101fc278]
test eax, eax
je 0x100ffbdb
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100ffbb5
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 0x101ace0c
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 0x100ffbe5
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ffbfb
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
mov byte [ebp - 1], al
jmp 0x100ffc10
mov al, byte [ebp - 1]
test al, al
jne 0x100ffcd9
test ebx, ebx
je 0x100ffc45
cmp dword [edi + 0x14], 8
jb 0x100ffc24
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 0x101ace0c
push 0x32
push ebx
jmp 0x100ffcc9
cmp dword [0x101fc274], 0
je 0x100ffc96
cmp dword [edi + 0x14], 8
jb 0x100ffc56
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc274]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x101ace0c
push 0x101ace0c
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 [0x101fc278]
test esi, esi
je 0x100ffcd9
cmp dword [edi + 0x14], 8
jb 0x100ffca8
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 0x101ace0c
push 0x32
push dword [0x101fc278]
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