Function at 0x10016cb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10016ced
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeDiskProperties._1.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10016ed7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x3dac
je 0x10016d2d
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x3ac
je 0x10016d2d
mov edx, dword [ebp + 8]
cmp dword [edx], 0x6ac
je 0x10016d2d
mov eax, dword [ebp + 8]
cmp dword [eax], 0x2eac
je 0x10016d2d
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x38ac
jne 0x10016d41
mov edx, dword [ebp - 4]
mov esi, dword [edx]
and esi, 0xffff0000
call fcn.1001d3f0
cmp esi, eax
jbe 0x10016d80
call fcn.1001d450
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeDiskProperties._2.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10016ed7
cmp dword [ebp + 0x10], 0xffffffff
je 0x10016ea4
cmp dword [ebp + 0xc], 0
je 0x10016ea4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x84
push edx
call fcn.1001f0f0
add esp, 8
test eax, eax
je 0x10016ea4
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 1
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10016dec
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 4]
add ecx, 0x84
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10016e1e
mov dword [ebp - 0x14], 0
cmp dword [ebp - 8], 0xffffffff
je 0x10016e2e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0xffffffff
je 0x10016e3e
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x10016e4a
cmp dword [ebp - 0x14], 0
je 0x10016ea4
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 0xc]
push edx
call fcn.1001ea18
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x84
push ecx
call fcn.1001f0bb
add esp, 8
test eax, eax
je 0x10016ea4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
add eax, 0x84
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeDiskProperties._3.__08X.__s.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
cmp dword [ebp + 0x10], 0xffffffff
je 0x10016eb6
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x198], edx
cmp dword [ebp + 0xc], 0
je 0x10016ed2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x84
push ecx
call fcn.1001e290
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc