Function at 0x41c480
Capabilities:
Check if file exists
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x460cd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41c693
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c4c2
sub eax, edx
sar eax, 1
je 0x41c693
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41c51c
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c510
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x41c4f6
mov dword [ebp - 0x14], 0
jmp 0x41c64b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x41c656
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41c656
push ebx
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41c586
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
lea ecx, [ecx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c57a
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x41c560
mov dword [ebp - 0x14], 0
jmp 0x41c64b
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x41c656
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c5a0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e79e
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41c653
mov edi, dword [ebp + 8]
push edi
push esi
push ebx
call fcn.0042f50c
add esp, 0xc
mov ecx, ebx
call fcn.0041c6f0
test eax, eax
jne 0x41c63f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41c636
xor esi, esi
mov dword [ebp - 0x18], esi
push 0xa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
lea ecx, [ecx]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c62d
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x41c610
mov dword [ebp - 0x14], 0
jmp 0x41c63f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.0041e7a3
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x41c656
jmp 0x41c677
mov ebx, dword [ebp + 8]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41c66e
mov dword [ebp - 0x14], 0
jmp 0x41c677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret