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

Disassembly:
push 0xffffffffffffffff
push 0x457c56
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
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.00412d30
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x684], 1
call fcn.004040c0
mov ebp, 8
mov byte [esp + 0x67c], bl
cmp dword [esp + 0x34], ebp
jb 0x41e515
mov edx, dword [esp + 0x20]
push edx
call fcn.0043e965
add esp, 4
mov eax, dword [esi + 4]
push eax
push str.File
push str.__s____d_
push 0x46fa40
xor eax, eax
call fcn.00431730
add dword [0x46fa60], 1
push ebx
call fcn.00436e10
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp dword [esp + 0x50], ebp
jae 0x41e54d
lea eax, [esp + 0x3c]
push eax
push str.Deleting__s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov ebx, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], ebp
jae 0x41e570
lea ebx, [esp + 0x3c]
mov ecx, 0xbbe
call fcn.00439d60
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x41e588
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 0x41e5a2
lea eax, [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x41e653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41e63c
cmp eax, 3
je 0x41e63c
push eax
push str.Delete_error_0x_X._Trying_move_locked_file_method
push 0x46fa40
xor eax, eax
call fcn.00431730
mov esi, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], ebp
jae 0x41e5e6
lea esi, [esp + 0x3c]
call fcn.00427670
test eax, eax
je 0x41e653
mov ecx, dword [0x470c20]
cmp byte [ecx + 0xce4], 0
je 0x41e653
push eax
push str.Delete_error_0x_X__marking_for_delete_on_next_reboot
push 0x46fa40
mov eax, 1
call fcn.00431730
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x50], ebp
jae 0x41e624
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 0x41e653
push str.Does_not_exist__skipping
push 0x46fa40
mov eax, 1
call fcn.00431730
add esp, 8
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x41e661
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x41e818
push str..lnk
push eax
call fcn.0043e79a
add esp, 8
test eax, eax
jne 0x41e818
push str.Deleted_a_shortcut__checking_for_empty_parent_folders
push 0x46fa40
mov dword [esp + 0x20], vtable.CShellFileCount.0
mov dword [esp + 0x1c], eax
call fcn.00431730
mov eax, dword [esp + 0x44]
add esp, 8
cmp dword [esp + 0x50], ebp
jae 0x41e6b2
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x260]
push 0x104
push eax
call fcn.0043f42c
add esp, 0xc
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41e818
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 0x41e710
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x264]
push ecx
call fcn.0043f5fa
add esp, 0xc
test eax, eax
je 0x41e813
lea edx, [esp + 0x14]
push edx
push 0x45ea84
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x24]
call fcn.00427090
test eax, eax
jne 0x41e776
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 0x41e813
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 0x4603c8
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 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x41e6f0
mov ebp, 8
push 1
call fcn.00436e10
sub dword [0x46fa60], 1
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x41e83c
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043e965
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.0043d02a
add esp, 0x66c
ret 4