Function at 0x1016ad1
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.010148a2
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 0x1016c01
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.01015fd5
add esp, 0x10
mov dword [ebp - 0xa80], eax
cmp eax, ebx
mov eax, 0xfe
jl 0x1016c10
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 0x1016c1c
call fcn.01015b6b
mov dword [ebp - 0xa80], eax
mov eax, 0x107
jmp 0x1016c10
mov dword [ebp - 0xa80], 0x80070057
mov eax, 0xf7
mov word [ebp - 0xa7a], ax
jmp 0x1016edc
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 0x1016cc1
cmp dword [ebp - 0xa8c], 0xc
jne 0x1016cc1
cmp dword [ebp - 0xa88], 0xc
jne 0x1016cc1
cmp byte [ebp - 0xa84], bl
jne 0x1016cc1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016caf
test dword [eax + 0x1c], 0x10000000
je 0x1016caf
push dword [ebp + 8]
push 0x1003154
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd82
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x11f
jmp 0x1016ecf
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 0x1016d0a
cmp dword [ebp - 0xaac], 0x20
jne 0x1016d0a
cmp dword [ebp - 0xaa8], 0x20
je 0x1016d1d
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 0x1016d81
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0101674f
test eax, eax
jl 0x1016d81
cmp dword [ebp - 0xa5c], ebx
jne 0x1016d81
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016d6f
test dword [eax + 0x1c], 0x10000000
je 0x1016d6f
push dword [ebp + 8]
push 0x1003154
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd82
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x145
jmp 0x1016ecf
cmp byte [ebp - 0xa94], 3
je 0x1016d97
cmp byte [ebp - 0xa94], 0xb
jne 0x1016e40
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 0x1016e40
cmp word [ebp - 0x86a], 1
jne 0x1016e40
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016e2e
test dword [eax + 0x1c], 0x10000000
je 0x1016e2e
push dword [ebp + 8]
push 0x1003154
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd82
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x169
jmp 0x1016ecf
lea eax, [ebp - 0xa54]
push eax
push dword [ebp + 8]
call fcn.010168b2
test eax, eax
jl 0x1016ea0
cmp dword [ebp - 0xa54], ebx
je 0x1016ea0
cmp dword [ebp - 0xa54], 0x2000
jbe 0x1016ea0
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016e91
test dword [eax + 0x1c], 0x10000000
je 0x1016e91
push dword [ebp + 8]
push 0x1003154
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd82
mov eax, dword [ebp - 0xa50]
mov dword [eax], ebx
mov eax, 0x17a
jmp 0x1016ecf
mov eax, dword [section..data]
cmp eax, section..data
je 0x1016eca
test dword [eax + 0x1c], 0x10000000
je 0x1016eca
push dword [ebp + 8]
push 0x1003154
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100cd82
mov eax, 0x17f
mov dword [ebp - 0xa80], ebx
mov word [ebp - 0xa7c], ax
cmp dword [ebp - 0xa4c], 0xffffffff
mov esi, dword [ebp - 0xa80]
je 0x1016eff
cmp dword [ebp - 0xa4c], ebx
je 0x1016eff
push dword [ebp - 0xa4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa80]
call fcn.01014aa3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01014215
leave
ret 8