Function at 0x10b56a6
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x25c], eax
lea eax, [ebx + 4]
cmp dword [eax], ecx
push edi
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x268], ecx
je 0x10b56f0
push eax
push ecx
push 1
push ecx
push ecx
push ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_BackupRead]
lea eax, [edi + 0x70]
push eax
lea eax, [edi + 0x68]
push eax
lea eax, [edi + 0x60]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp word [esi + 4], 1
jne 0x10b57a6
lea eax, [edi + 0x44]
cmp word [eax], 0
je 0x10b57a6
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
test eax, eax
jne 0x10b57a6
push eax
push 1
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [edi + 0x7c]
push dword [eax + 0x18]
mov eax, dword [ebp - 0x25c]
push dword [eax + 0xc]
push eax
call fcn.010b51f9
test ax, ax
jne 0x10b58b4
lea eax, [ebp - 0x254]
push eax
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x260], eax
je 0x10b579b
lea eax, [edi + 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10b578f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x268], eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x25c]
call fcn.010b4b1b
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x10b57be
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
xor ax, ax
jmp 0x10b5935
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10b57d8
mov dword [ebp - 0x264], 0xfffffe0b
jmp 0x10b585a
mov ax, word [esi + 4]
cmp ax, 1
je 0x10b5800
test ax, ax
jne 0x10b585a
test dword [edi + 0x40], 0xffffffdf
je 0x10b585a
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x14]
cmp word [eax + 0x18], 0
je 0x10b585a
push 0
push 1
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x25c]
push 0
push dword [eax + 0xc]
push eax
call fcn.010b51f9
test ax, ax
je 0x10b582a
or dword [ebp - 0x264], 0xffffffff
jmp 0x10b585a
cmp word [esi + 4], 1
mov edi, dword [edi + 0x40]
je 0x10b5837
and edi, 0xffffffdf
test edi, edi
jne 0x10b5842
push 0x80
jmp 0x10b5843
push edi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x25c]
call fcn.010b4b1b
mov ebx, dword [ebx + 0x24c]
test ebx, ebx
je 0x10b5872
cmp word [esi + 4], 1
je 0x10b5872
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x264]
xor ecx, ecx
cmp ax, cx
je 0x10b5889
cmp ax, 0xfeb4
jne 0x10b5935
cmp dword [ebp - 0x268], ecx
je 0x10b5935
push ecx
push 1
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [ebp - 0x25c]
push ecx
push dword [eax + 0xc]
push eax
call fcn.010b51f9
test ax, ax
je 0x10b58ba
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10b5935
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dd4
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call esi
add esp, 0xc
test eax, eax
jne 0x10b58eb
add dword [ebp - reloc.KERNEL32.dll_GetTapeParameters], 0xc
mov eax, dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
mov dword [eax], 0x5c005c
jmp 0x10b5908
push 4
push 0x1005db4
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call esi
add esp, 0xc
test eax, eax
jne 0x10b5908
add dword [ebp - reloc.KERNEL32.dll_GetTapeParameters], 8
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
push 0x233a
push dword [ebp - 0x268]
push 0
push dword [ebp - 0x25c]
call fcn.010892e6
push dword [ebp - 0x25c]
call fcn.010b4b1b
mov ax, 0xfe3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret