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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e75a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10144930]
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 0x1004a623
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004a452
sub eax, edx
sar eax, 1
je 0x1004a623
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004a4ac
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 0x1004a4a0
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x1004a486
mov dword [ebp - 0x14], 0
jmp 0x1004a5db
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x1004a5e6
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1004a5e6
push ebx
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004a516
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 0x1004a50a
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x1004a4f0
mov dword [ebp - 0x14], 0
jmp 0x1004a5db
call edi
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x1004a5e6
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004a530
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.100b61c6
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1004a5e3
mov edi, dword [ebp + 8]
push edi
push esi
push ebx
call fcn.100c6466
add esp, 0xc
mov ecx, ebx
call fcn.1004a680
test eax, eax
jne 0x1004a5cf
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1004a5c6
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 0x1004a5bd
push 1
call edi
add esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 5
jl 0x1004a5a0
mov dword [ebp - 0x14], 0
jmp 0x1004a5cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.100b61c1
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0
je 0x1004a5e6
jmp 0x1004a607
mov ebx, dword [ebp + 8]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1004a5fe
mov dword [ebp - 0x14], 0
jmp 0x1004a607
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