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

Disassembly:
push 0xffffffffffffffff
push 0x451d96
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x674]
mov dword fs:[0], eax
mov eax, dword [esp + 0x684]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea ecx, [esp + 0x1c]
push ecx
push esi
mov ecx, str.path
mov dword [esp + 0x684], ebx
call fcn.00412330
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x684], 1
call fcn.004040b0
mov ebp, 8
mov byte [esp + 0x67c], bl
cmp dword [esp + 0x34], ebp
jb 0x41dcb5
mov edx, dword [esp + 0x20]
push edx
call fcn.00439059
add esp, 4
mov eax, dword [esi + 4]
push eax
push str.File
push str.__s____d_
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add dword [0x4676c0], 1
push ebx
call fcn.00432010
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp dword [esp + 0x50], ebp
jae 0x41dced
lea eax, [esp + 0x3c]
push eax
push str.Deleting__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov ebx, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], ebp
jae 0x41dd10
lea ebx, [esp + 0x3c]
mov ecx, 0xbbe
call fcn.00434620
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x41dd28
lea eax, [esp + 0x3c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x41dd42
lea eax, [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x41ddf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41dddc
cmp eax, 3
je 0x41dddc
push eax
push str.Delete_error_0x_X._Trying_move_locked_file_method
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov esi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], ebp
jae 0x41dd86
lea esi, [esp + 0x3c]
call fcn.00426d70
test eax, eax
je 0x41ddf3
mov ecx, dword [0x468b8c]
cmp byte [ecx + 0xce4], 0
je 0x41ddf3
push eax
push str.Delete_error_0x_X__marking_for_delete_on_next_reboot
push 0x4676a0
mov eax, 1
call fcn.0042cad0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], ebp
jae 0x41ddc4
lea eax, [esp + 0x3c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x34], 1
jmp 0x41ddf3
push str.Does_not_exist__skipping
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 8
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x41de01
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x41dfb8
push str..lnk
push eax
call fcn.00438dd3
add esp, 8
test eax, eax
jne 0x41dfb8
push str.Deleted_a_shortcut__checking_for_empty_parent_folders
push 0x4676a0
mov dword [esp + 0x20], vtable.CShellFileCount.0
mov dword [esp + 0x1c], eax
call fcn.0042cad0
mov eax, dword [esp + 0x44]
add esp, 8
cmp dword [esp + 0x50], ebp
jae 0x41de52
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x260]
push 0x104
push eax
call fcn.00439323
add esp, 0xc
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41dfb8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x54]
push edx
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x54]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41deb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x264]
push ecx
call fcn.0043988d
add esp, 0xc
test eax, eax
je 0x41dfb3
lea edx, [esp + 0x14]
push edx
push 0x4589e4
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x24]
call fcn.00426790
test eax, eax
jne 0x41df16
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x260]
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x20]
call edx
cmp dword [esp + 0x14], 0
jne 0x41dfb3
push 0x104
lea eax, [esp + 0x468]
push eax
call ebp
push str.temp
lea ecx, [esp + 0x468]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x54]
push edx
push 0
push 0x45a2d0
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x54]
push ecx
call edi
lea edx, [esp + 0x54]
push edx
call edi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x260]
push ecx
call esi
lea edx, [esp + 0x54]
push edx
call ebx
lea eax, [esp + 0x25c]
push eax
push str.Deleted_folder__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x41de90
mov ebp, 8
push 1
call fcn.00432010
sub dword [0x4676c0], 1
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x41dfdc
mov edx, dword [esp + 0x3c]
push edx
call fcn.00439059
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.0043782a
add esp, 0x66c
ret 4