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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
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 0x49cea3
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ccd2
sub eax, edx
sar eax, 1
je 0x49cea3
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49cd2c
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 0x49cd20
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x49cd06
mov dword [ebp - 0x14], 0
jmp 0x49ce5b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x49ce66
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x49ce66
push ebx
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49cd96
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 0x49cd8a
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x49cd70
mov dword [ebp - 0x14], 0
jmp 0x49ce5b
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x49ce66
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49cdb0
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.004da994
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x49ce63
mov edi, dword [ebp + 8]
push edi
push esi
push ebx
call fcn.004fa94e
add esp, 0xc
mov ecx, ebx
call fcn.0049cf00
test eax, eax
jne 0x49ce4f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49ce46
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 0x49ce3d
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x49ce20
mov dword [ebp - 0x14], 0
jmp 0x49ce4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.004da999
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x49ce66
jmp 0x49ce87
mov ebx, dword [ebp + 8]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x49ce7e
mov dword [ebp - 0x14], 0
jmp 0x49ce87
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