Function at 0x41c590
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 0x4518e6
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x469744]
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.00410fd0
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 0x41c62b
mov eax, dword [ebp - 0x664]
push eax
call fcn.00439c00
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.004323e0
mov eax, dword [ebp - 0x648]
add esp, 0x14
cmp dword [ebp - 0x634], esi
jae 0x41c66e
lea eax, [ebp - 0x648]
push eax
push 0x45b8b8
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov edi, dword [ebp - 0x648]
add esp, 0xc
cmp dword [ebp - 0x634], esi
jae 0x41c697
lea edi, [ebp - 0x648]
mov ecx, 0xbbe
call fcn.004357d0
mov eax, dword [ebp - 0x648]
cmp dword [ebp - 0x634], esi
jae 0x41c6b5
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 0x41c6d5
lea eax, [ebp - 0x648]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x41c782
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41c9a7
cmp eax, 3
je 0x41c9a7
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 0x41c727
lea esi, [ebp - 0x648]
call fcn.00425270
test eax, eax
je 0x41c77d
mov edx, dword [0x46be98]
cmp byte [edx + 0xcec], 0
je 0x41c77d
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 0x41c769
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 0x41c796
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x41c963
push str..lnk
push eax
call fcn.0043a445
add esp, 8
test eax, eax
jne 0x41c963
push str.Deleted_a_shortcut__checking_for_empty_parent_folders
push 0x46a9d4
mov dword [ebp - 0x66c], 0x45c2d4
mov dword [ebp - 0x668], eax
call fcn.0042d150
mov eax, dword [ebp - 0x648]
add esp, 8
cmp dword [ebp - 0x634], esi
jae 0x41c7f1
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.0043a583
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41c963
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 0x41c845
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.0043aadd
add esp, 0xc
test eax, eax
je 0x41c95b
lea eax, [ebp - 0x668]
push eax
push 0x459be4
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x66c]
call fcn.00424c50
test eax, eax
jne 0x41c8b4
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 0x41c95b
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 0x45b528
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 0x41c827
mov ebx, 1
lea esi, [ebx + 7]
push ebx
call fcn.004323e0
sub dword [0x46a9f4], ebx
add esp, 4
cmp dword [ebp - 0x634], esi
jb 0x41c989
mov eax, dword [ebp - 0x648]
push eax
call fcn.00439c00
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.00438876
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 0x41c782