Function at 0x1016ab1
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaac
mov eax, dword [0x101b2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 1
push 0xe2
push 0x1003268
lea ecx, [ebp - 0xa80]
mov dword [ebp - 0xa50], esi
call fcn.01014882
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0xa8c], ebx
lea edi, [ebp - 0xa88]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xaa8]
push 0x82a
mov dword [ebp - 0xaac], ebx
rep stosd dword es:[edi], eax
mov word [ebp - 0xa48], ax
lea eax, [ebp - 0xa46]
push ebx
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0xa4c], 0xffffffff
xor eax, eax
inc eax
add esp, 0x18
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa5c], eax
mov dword [ebp - 0xa54], ebx
cmp esi, ebx
je 0x1016be1
push dword [ebp + 8]
mov dword [esi], eax
mov eax, 0xf7
push 0x100323c
mov word [ebp - 0xa7c], ax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0xa80], ebx
call fcn.01015fb5
add esp, 0x10
mov dword [ebp - 0xa80], eax
cmp eax, ebx
mov eax, 0xfe
jl 0x1016bf0
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0xa7c], ax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa4c], eax
cmp eax, 0xffffffff
jne 0x1016bfc
call fcn.01015b4b
mov dword [ebp - 0xa80], eax
mov eax, 0x107
jmp 0x1016bf0
mov dword [ebp - 0xa80], 0x80070057
mov eax, 0xf7
mov word [ebp - 0xa7a], ax
jmp 0x1016ebc
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov ecx, 0x107
mov word [ebp - 0xa7c], cx
lea ecx, [ebp - 0xa58]
push ecx
push 0xc
lea ecx, [ebp - 0xa8c]
push ecx
push 0xc
lea ecx, [ebp - 0x21c]
push ecx
mov edi, 0x2d1400
push edi
push eax
mov dword [ebp - 0xa80], ebx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x218], ebx
call esi
test eax, eax
je 0x1016ca1
cmp dword [ebp - 0xa8c], 0xc
jne 0x1016ca1
cmp dword [ebp - 0xa88], 0xc
jne 0x1016ca1
cmp byte [ebp - 0xa84], bl
jne 0x1016ca1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016c8f
test dword [eax + 0x1c], 0x10000000
je 0x1016c8f
push dword [ebp + 8]
push 0x1003154
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd62
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x11f
jmp 0x1016eaf
push ebx
lea eax, [ebp - 0xa58]
push eax
push 0x20
lea eax, [ebp - 0xaac]
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0xa4c]
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x218], ebx
call esi
test eax, eax
je 0x1016cea
cmp dword [ebp - 0xaac], 0x20
jne 0x1016cea
cmp dword [ebp - 0xaa8], 0x20
je 0x1016cfd
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0xaac]
rep stosd dword es:[edi], eax
mov byte [ebp - 0xa94], bl
cmp byte [ebp - 0xa94], 0xf
jne 0x1016d61
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0101672f
test eax, eax
jl 0x1016d61
cmp dword [ebp - 0xa5c], ebx
jne 0x1016d61
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016d4f
test dword [eax + 0x1c], 0x10000000
je 0x1016d4f
push dword [ebp + 8]
push 0x1003154
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd62
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x145
jmp 0x1016eaf
cmp byte [ebp - 0xa94], 3
je 0x1016d77
cmp byte [ebp - 0xa94], 0xb
jne 0x1016e20
push 0x28
pop eax
push 3
mov word [ebp - 0xa48], ax
pop eax
push ebx
mov word [ebp - 0xa46], ax
lea eax, [ebp - 0xa58]
push eax
mov eax, 0x82c
push eax
lea ecx, [ebp - 0xa48]
push ecx
push eax
mov eax, ecx
push eax
push 0x4d02c
push dword [ebp - 0xa4c]
mov dword [ebp - 0xa40], 0x200
mov dword [ebp - 0xa3c], 0xa
mov dword [ebp - 0xa34], 0x2c
mov byte [ebp - 0xa22], 0xec
call esi
test eax, eax
je 0x1016e20
cmp word [ebp - 0x86a], 1
jne 0x1016e20
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016e0e
test dword [eax + 0x1c], 0x10000000
je 0x1016e0e
push dword [ebp + 8]
push 0x1003154
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd62
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x169
jmp 0x1016eaf
lea eax, [ebp - 0xa54]
push eax
push dword [ebp + 8]
call fcn.01016892
test eax, eax
jl 0x1016e80
cmp dword [ebp - 0xa54], ebx
je 0x1016e80
cmp dword [ebp - 0xa54], 0x2000
jbe 0x1016e80
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016e71
test dword [eax + 0x1c], 0x10000000
je 0x1016e71
push dword [ebp + 8]
push 0x1003154
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd62
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x17a
jmp 0x1016eaf
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016eaa
test dword [eax + 0x1c], 0x10000000
je 0x1016eaa
push dword [ebp + 8]
push 0x1003154
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd62
mov eax, 0x17f
mov dword [ebp - 0xa80], ebx
mov word [ebp - 0xa7c], ax
cmp dword [ebp - 0xa4c], 0xffffffff
mov esi, dword [ebp - 0xa80]
je 0x1016edf
cmp dword [ebp - 0xa4c], ebx
je 0x1016edf
push dword [ebp - 0xa4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa80]
call fcn.01014a83
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010141f3
leave
ret 8