Function at 0x100158a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100a0f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp + 8]
call fcn.1000c9f0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
push 0
lea edx, [ebp - 0x84]
push edx
push 8
lea eax, [ebp - 0x7c]
push eax
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x2d1400
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10015905
mov byte [ebp - 0x6a], 1
jmp 0x10015909
mov byte [ebp - 0x6a], 0
mov al, byte [ebp - 0x6a]
mov byte [ebp - 0x69], al
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
jne 0x10015948
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10072324
call fcn.10012f20
add esp, 8
mov edx, dword [ebp - 0x70]
and edx, 1
je 0x10015940
and dword [ebp - 0x70], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.10006780
nop
mov eax, dword [ebp + 8]
jmp 0x10015a8b
mov eax, dword [ebp - 0x78]
push eax
call fcn.1003a71e
add esp, 4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x78]
push edx
push 0
mov eax, dword [ebp - 0x74]
push eax
call fcn.1004bd80
add esp, 0xc
push 0
lea ecx, [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x74]
push eax
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x2d1400
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001599f
mov byte [ebp - 0x6b], 1
jmp 0x100159a3
mov byte [ebp - 0x6b], 0
mov al, byte [ebp - 0x6b]
mov byte [ebp - 0x69], al
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
jne 0x100159e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_error__X_n
call fcn.10012f20
add esp, 8
mov edx, dword [ebp - 0x70]
and edx, 1
je 0x100159da
and dword [ebp - 0x70], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.10006780
nop
mov eax, dword [ebp + 8]
jmp 0x10015a8b
mov ecx, 0xa
mov esi, dword [ebp - 0x74]
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x4c], 2
je 0x10015a19
cmp dword [ebp - 0x4c], 3
je 0x10015a19
cmp dword [ebp - 0x4c], 5
je 0x10015a19
cmp dword [ebp - 0x4c], 8
je 0x10015a19
cmp dword [ebp - 0x4c], 0xa
je 0x10015a19
cmp dword [ebp - 0x4c], 0x11
je 0x10015a19
cmp dword [ebp - 0x4c], 0xb
jne 0x10015a3c
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.100041e0
push eax
mov ecx, dword [ebp + 8]
call fcn.10004860
lea ecx, [ebp - 0x28]
call fcn.10006780
nop
jmp 0x10015a5b
push 0x10072291
lea ecx, [ebp - 0x40]
call fcn.100041e0
push eax
mov ecx, dword [ebp + 8]
call fcn.10004860
lea ecx, [ebp - 0x40]
call fcn.10006780
nop
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.1003a727
add esp, 4
mov eax, dword [ebp - 0x70]
and eax, 1
je 0x10015a88
and dword [ebp - 0x70], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.10006780
nop
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a6b5
mov esp, ebp
pop ebp
ret