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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451786
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x668], eax
mov ebx, ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x634], 7
mov dword [ebp - 0x638], eax
mov word [ebp - 0x648], cx
lea edx, [ebp - 0x664]
push edx
mov edx, str.path
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.00410f80
mov edi, eax
lea esi, [ebp - 0x648]
mov byte [ebp - 4], 1
call fcn.00404060
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x650], esi
jb 0x41c59b
mov eax, dword [ebp - 0x664]
push eax
call fcn.004396db
add esp, 4
mov ecx, dword [ebx + 4]
push ecx
push str.File
push str.__s____d_
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov ebx, 1
add dword [0x46a9f4], ebx
push 0
call fcn.004324d0
mov eax, dword [ebp - 0x648]
add esp, 0x14
cmp dword [ebp - 0x634], esi
jae 0x41c5de
lea eax, [ebp - 0x648]
push eax
push 0x45b7d0
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov edi, dword [ebp - 0x648]
add esp, 0xc
cmp dword [ebp - 0x634], esi
jae 0x41c607
lea edi, [ebp - 0x648]
mov ecx, 0xbbe
call fcn.00435930
mov eax, dword [ebp - 0x648]
cmp dword [ebp - 0x634], esi
jae 0x41c625
lea eax, [ebp - 0x648]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x648]
cmp dword [ebp - 0x634], esi
jae 0x41c645
lea eax, [ebp - 0x648]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x41c6f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41c917
cmp eax, 3
je 0x41c917
push eax
push str.Delete_error_0x_X._Trying_move_locked_file_method
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
cmp dword [ebp - 0x634], esi
mov esi, dword [ebp - 0x648]
jae 0x41c697
lea esi, [ebp - 0x648]
call fcn.00424eb0
test eax, eax
je 0x41c6ed
mov edx, dword [0x46bd98]
cmp byte [edx + 0xcec], 0
je 0x41c6ed
push eax
push str.Delete_error_0x_X__marking_for_delete_on_next_reboot
push 0x46a9d4
mov eax, ebx
call fcn.0042d150
mov eax, dword [ebp - 0x648]
add esp, 0xc
cmp dword [ebp - 0x634], 8
jae 0x41c6d9
lea eax, [ebp - 0x648]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x668]
mov dword [eax + 0x38], ebx
mov esi, 8
mov eax, dword [ebp - 0x648]
cmp dword [ebp - 0x634], esi
jae 0x41c706
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x41c8d3
push str..lnk
push eax
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x41c8d3
push str.Deleted_a_shortcut__checking_for_empty_parent_folders
push 0x46a9d4
mov dword [ebp - 0x66c], 0x45c1e4
mov dword [ebp - 0x668], eax
call fcn.0042d150
mov eax, dword [ebp - 0x648]
add esp, 8
cmp dword [ebp - 0x634], esi
jae 0x41c761
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.0043a043
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41c8d3
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c7b5
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.0043a59d
add esp, 0xc
test eax, eax
je 0x41c8cb
lea eax, [ebp - 0x668]
push eax
push 0x459b04
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x66c]
call fcn.00424890
test eax, eax
jne 0x41c824
lea edx, [ebp - 0x668]
push edx
mov edx, dword [ebp - 0x66c]
lea eax, [ebp - 0x424]
push eax
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x66c]
call eax
cmp dword [ebp - 0x668], 0
jne 0x41c8cb
push 0x104
lea ecx, [ebp - 0x62c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.temp
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x45b440
lea ecx, [ebp - 0x62c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x21c]
push edx
call edi
lea eax, [ebp - 0x21c]
push eax
call edi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x424]
push edx
call ebx
lea eax, [ebp - 0x21c]
push eax
call esi
lea ecx, [ebp - 0x424]
push ecx
push str.Deleted_folder__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x41c797
mov ebx, 1
lea esi, [ebx + 7]
push ebx
call fcn.004324d0
sub dword [0x46a9f4], ebx
add esp, 4
cmp dword [ebp - 0x634], esi
jb 0x41c8f9
mov eax, dword [ebp - 0x648]
push eax
call fcn.004396db
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
push str.Does_not_exist__skipping
push 0x46a9d4
mov eax, ebx
call fcn.0042d150
add esp, 8
jmp 0x41c6f2