Function at 0x10b5834
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 0x10b587e
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 0x10b5934
lea eax, [edi + 0x44]
cmp word [eax], 0
je 0x10b5934
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
test eax, eax
jne 0x10b5934
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.010b5387
test ax, ax
jne 0x10b5a42
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 0x10b5929
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 0x10b591d
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.010b4ca9
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x10b594c
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
xor ax, ax
jmp 0x10b5ac3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10b5966
mov dword [ebp - 0x264], 0xfffffe0b
jmp 0x10b59e8
mov ax, word [esi + 4]
cmp ax, 1
je 0x10b598e
test ax, ax
jne 0x10b59e8
test dword [edi + 0x40], 0xffffffdf
je 0x10b59e8
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax + 0x14]
cmp word [eax + 0x18], 0
je 0x10b59e8
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.010b5387
test ax, ax
je 0x10b59b8
or dword [ebp - 0x264], 0xffffffff
jmp 0x10b59e8
cmp word [esi + 4], 1
mov edi, dword [edi + 0x40]
je 0x10b59c5
and edi, 0xffffffdf
test edi, edi
jne 0x10b59d0
push 0x80
jmp 0x10b59d1
push edi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x25c]
call fcn.010b4ca9
mov ebx, dword [ebx + 0x24c]
test ebx, ebx
je 0x10b5a00
cmp word [esi + 4], 1
je 0x10b5a00
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x264]
xor ecx, ecx
cmp ax, cx
je 0x10b5a17
cmp ax, 0xfeb4
jne 0x10b5ac3
cmp dword [ebp - 0x268], ecx
je 0x10b5ac3
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.010b5387
test ax, ax
je 0x10b5a48
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10b5ac3
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dec
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call esi
add esp, 0xc
test eax, eax
jne 0x10b5a79
add dword [ebp - reloc.KERNEL32.dll_GetTapeParameters], 0xc
mov eax, dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
mov dword [eax], 0x5c005c
jmp 0x10b5a96
push 4
push 0x1005db4
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call esi
add esp, 0xc
test eax, eax
jne 0x10b5a96
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.01089474
push dword [ebp - 0x25c]
call fcn.010b4ca9
mov ax, 0xfe3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret