Function at 0x410fb0
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4403c6
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0x674]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x684]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, str.path
mov dword [esp + 0x684], ebx
call fcn.00406dd0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x684], 1
call fcn.00404070
mov edi, 8
mov byte [esp + 0x67c], bl
cmp dword [esp + 0x34], edi
jb 0x411051
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004286d5
add esp, 4
mov edx, dword [esi + 4]
push edx
push str.File
push str.__s____d_
push 0x450638
xor eax, eax
call fcn.0041ee40
add dword [0x450658], 1
push ebx
call fcn.00423530
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp dword [esp + 0x50], edi
jae 0x411089
lea eax, [esp + 0x3c]
push eax
push str.Deleting__s
push 0x450638
xor eax, eax
call fcn.0041ee40
mov ebx, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], edi
jae 0x4110ac
lea ebx, [esp + 0x3c]
mov ecx, 0xbbe
call fcn.00424950
cmp dword [esp + 0x50], edi
mov eax, dword [esp + 0x3c]
jae 0x4110c4
lea eax, [esp + 0x3c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x50], edi
mov eax, dword [esp + 0x3c]
jae 0x4110de
lea eax, [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x41115b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x411144
cmp eax, 3
je 0x411144
mov ecx, dword [0x451a94]
cmp byte [ecx + 0xaf0], 0
je 0x41115b
push eax
push str.Delete_error_0x_X__marking_for_delete_on_next_reboot
push 0x450638
mov eax, 1
call fcn.0041ee40
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], edi
jae 0x411130
lea eax, [esp + 0x3c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp + 0x34], 1
jmp 0x41115b
push str.Does_not_exist__skipping
push 0x450638
mov eax, 1
call fcn.0041ee40
add esp, 8
cmp dword [esp + 0x50], edi
mov eax, dword [esp + 0x3c]
jae 0x411169
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x41131a
push str..lnk
push eax
call fcn.00428644
add esp, 8
test eax, eax
jne 0x41131a
push str.Deleted_a_shortcut__checking_for_empty_parent_folders
push 0x450638
mov dword [esp + 0x1c], vtable.CShellFileCount.0
mov dword [esp + 0x20], eax
call fcn.0041ee40
mov eax, dword [esp + 0x44]
add esp, 8
cmp dword [esp + 0x50], edi
jae 0x4111ba
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x260]
push 0x104
push edx
call fcn.004299fa
add esp, 0xc
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41131a
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411212
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x264]
push eax
call fcn.00429337
add esp, 0xc
test eax, eax
je 0x411315
lea ecx, [esp + 0x18]
push ecx
push 0x4451dc
lea edx, [esp + 0x264]
push edx
lea ecx, [esp + 0x20]
call fcn.0041b9e0
test eax, eax
jne 0x411278
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x260]
push ecx
lea ecx, [esp + 0x1c]
call eax
cmp dword [esp + 0x18], 0
jne 0x411315
push 0x104
lea ecx, [esp + 0x468]
push ecx
call ebp
push str.temp
lea edx, [esp + 0x468]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x54]
push eax
push 0
push 0x44673c
lea ecx, [esp + 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x54]
push edx
call esi
lea eax, [esp + 0x54]
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x260]
push edx
call edi
lea eax, [esp + 0x54]
push eax
call ebx
lea ecx, [esp + 0x25c]
push ecx
push str.Deleted_folder__s
push 0x450638
xor eax, eax
call fcn.0041ee40
add esp, 0xc
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4111f8
mov edi, 8
push 1
call fcn.00423530
sub dword [0x450658], 1
add esp, 4
cmp dword [esp + 0x50], edi
jb 0x41133e
mov eax, dword [esp + 0x3c]
push eax
call fcn.004286d5
add esp, 4
mov ecx, dword [esp + 0x674]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.00426d9a
add esp, 0x66c
ret 4