Function at 0x41c550
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 0x451756
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x468744]
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.00410fc0
mov edi, eax
lea esi, [ebp - 0x648]
mov byte [ebp - 4], 1
call fcn.00404010
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x650], esi
jb 0x41c5eb
mov eax, dword [ebp - 0x664]
push eax
call fcn.00439b10
add esp, 4
mov ecx, dword [ebx + 4]
push ecx
push str.File
push str.__s____d_
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov ebx, 1
add dword [0x4699f4], ebx
push 0
call fcn.00432290
mov eax, dword [ebp - 0x648]
add esp, 0x14
cmp dword [ebp - 0x634], esi
jae 0x41c62e
lea eax, [ebp - 0x648]
push eax
push 0x45a8b8
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov edi, dword [ebp - 0x648]
add esp, 0xc
cmp dword [ebp - 0x634], esi
jae 0x41c657
lea edi, [ebp - 0x648]
mov ecx, 0xbbe
call fcn.00435690
mov eax, dword [ebp - 0x648]
cmp dword [ebp - 0x634], esi
jae 0x41c675
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 0x41c695
lea eax, [ebp - 0x648]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x41c742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41c967
cmp eax, 3
je 0x41c967
push eax
push str.Delete_error_0x_X._Trying_move_locked_file_method
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
cmp dword [ebp - 0x634], esi
mov esi, dword [ebp - 0x648]
jae 0x41c6e7
lea esi, [ebp - 0x648]
call fcn.004251a0
test eax, eax
je 0x41c73d
mov edx, dword [0x46ae98]
cmp byte [edx + 0xcec], 0
je 0x41c73d
push eax
push str.Delete_error_0x_X__marking_for_delete_on_next_reboot
push 0x4699d4
mov eax, ebx
call fcn.0042d020
mov eax, dword [ebp - 0x648]
add esp, 0xc
cmp dword [ebp - 0x634], 8
jae 0x41c729
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 0x41c756
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x41c923
push str..lnk
push eax
call fcn.0043a345
add esp, 8
test eax, eax
jne 0x41c923
push str.Deleted_a_shortcut__checking_for_empty_parent_folders
push 0x4699d4
mov dword [ebp - 0x66c], 0x45b2d4
mov dword [ebp - 0x668], eax
call fcn.0042d020
mov eax, dword [ebp - 0x648]
add esp, 8
cmp dword [ebp - 0x634], esi
jae 0x41c7b1
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.0043a483
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41c923
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 0x41c805
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.0043a9dd
add esp, 0xc
test eax, eax
je 0x41c91b
lea eax, [ebp - 0x668]
push eax
push 0x458be4
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x66c]
call fcn.00424b80
test eax, eax
jne 0x41c874
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 0x41c91b
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 0x45a528
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 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x41c7e7
mov ebx, 1
lea esi, [ebx + 7]
push ebx
call fcn.00432290
sub dword [0x4699f4], ebx
add esp, 4
cmp dword [ebp - 0x634], esi
jb 0x41c949
mov eax, dword [ebp - 0x648]
push eax
call fcn.00439b10
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.00438786
mov esp, ebp
pop ebp
ret 4
push str.Does_not_exist__skipping
push 0x4699d4
mov eax, ebx
call fcn.0042d020
add esp, 8
jmp 0x41c742