Function at 0x10a7ee0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [edi]
push ebx
mov ebx, dword [edi + 0x10]
xor ecx, ecx
mov dword [ebp - 8], eax
lea eax, [ebx + 4]
cmp dword [eax], ecx
push esi
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
je 0x10a7f14
push eax
push ecx
push 1
push ecx
push ecx
push ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_BackupRead]
lea eax, [esi + 0x70]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x60]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp word [edi + 4], 1
jne 0x10a7fad
lea eax, [esi + 0x44]
cmp word [eax], 0
je 0x10a7fad
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
test eax, eax
jne 0x10a7fad
push eax
push 1
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push eax
call fcn.010a7a67
test ax, ax
jne 0x10a8093
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x10a7fa5
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10a7f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 8]
call fcn.010a7422
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x10a7fc5
mov word [ebx + 0x266], 1
xor ax, ax
jmp 0x10a80f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10a7fd9
mov dword [ebp - 0x10], 0xfffffe0b
jmp 0x10a8049
mov ax, word [edi + 4]
cmp ax, 1
je 0x10a7ffe
test ax, ax
jne 0x10a8049
test dword [esi + 0x40], 0xffffffdf
je 0x10a8049
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
cmp word [eax + 0x18], 0
je 0x10a8049
push 0
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push 0
push dword [eax + 0xc]
push eax
call fcn.010a7a67
test ax, ax
je 0x10a801f
or dword [ebp - 0x10], 0xffffffff
jmp 0x10a8049
cmp word [edi + 4], 1
mov esi, dword [esi + 0x40]
je 0x10a802c
and esi, 0xffffffdf
test esi, esi
jne 0x10a8037
push 0x80
jmp 0x10a8038
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 8]
call fcn.010a7422
mov ebx, dword [ebx + 0x24c]
test ebx, ebx
je 0x10a8061
cmp word [edi + 4], 1
je 0x10a8061
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp ax, cx
je 0x10a8075
cmp ax, 0xfeb4
jne 0x10a80f9
cmp dword [ebp - 0x14], ecx
je 0x10a80f9
push ecx
push 1
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push ecx
push dword [eax + 0xc]
push eax
call fcn.010a7a67
test ax, ax
je 0x10a8099
or ax, 0xffff
jmp 0x10a80f9
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011d74
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10a80c1
add dword [ebp - 4], 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0x5c005c
jmp 0x10a80d8
push 4
push 0x1005e34
push dword [ebp - 4]
call esi
add esp, 0xc
test eax, eax
jne 0x10a80d8
add dword [ebp - 4], 8
push dword [ebp - 4]
push 0x233a
push dword [ebp - 0x14]
push 0
push dword [ebp - 8]
call fcn.0107f1b8
push dword [ebp - 8]
call fcn.010a7422
mov ax, 0xfe3f
pop esi
pop ebx
leave
ret