Function at 0x100a5fe0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10163f26
mov eax, dword fs:[0]
push eax
sub esp, 0xa30
mov eax, dword [0x10438fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov dword [ebp - 0xa3c], edi
mov ebx, edx
test esi, esi
je 0x100a61b6
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [ebp - 0xa29], al
test al, al
je 0x100a6070
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100a6049
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi + 0xc], 0
je 0x100a6058
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [edi]
test esi, esi
je 0x100a6063
call fcn.1002e860
mov dword [edi], 0
mov dword [edi + 8], 0xffffffff
lea esi, [edi + 4]
push esi
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0xa38], 0
call fcn.10017430
push ebx
lea ecx, [ebp - 0xa30]
mov dword [ebp - 4], 0
call fcn.10017430
mov eax, dword [esi]
sub eax, 0xc
dec dword [eax]
jne 0x100a60af
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0xa30]
mov dword [esi], eax
inc dword [eax - 0xc]
mov eax, dword [ebp - 0xa30]
test eax, eax
je 0x100a60dc
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x100a60dc
add eax, 0xfffffff4
dec dword [eax]
jne 0x100a60dc
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0
mov edi, str.freelist
lea eax, [ebp - 0xa30]
call fcn.100164f0
push 0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath]
mov ebx, dword [ebp - 0xa30]
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.MSVCR100.dll__wmakepath]
add esp, 0x28
lea edi, [ebp - 0xa28]
mov eax, esi
call fcn.10016670
mov byte [ebp - 4], 0
test ebx, ebx
je 0x100a6165
lea ecx, [ebx - 0xc]
test ecx, ecx
je 0x100a6165
add ebx, 0xfffffff4
dec dword [ebx]
jne 0x100a6165
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edx, dword [ebp - 0xa34]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a61d2
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0xa34]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x100a61d2
mov eax, dword [esi]
sub eax, 0xc
dec dword [eax]
jne 0x100a619e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0xa34]
mov dword [esi], eax
inc dword [eax - 0xc]
call fcn.10023ad0
test eax, eax
jg 0x100a61c2
mov esi, eax
jmp 0x100a61d8
mov byte [ebp - 0xa29], 0
jmp 0x100a6070
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xa38], eax
mov esi, dword [ebp - 0xa38]
cmp byte [ebp - 0xa29], 0
je 0x100a61f2
mov ecx, dword [ebp - 0xa3c]
push ecx
mov ecx, 1
call fcn.100a5e00
mov eax, dword [ebp - 0xa34]
test eax, eax
je 0x100a6214
lea edx, [eax - 0xc]
test edx, edx
je 0x100a6214
add eax, 0xfffffff4
dec dword [eax]
jne 0x100a6214
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10148524
mov esp, ebp
pop ebp
ret