Function at 0x10e6a98
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
xor edx, edx
push 7
mov dword [ebp - 0x20], eax
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
xor esi, esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x2c], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
cmp ebx, edx
jne 0x10e6ae6
push 0x1011ab0
push 0x3db
push 0x1011a10
call fcn.0107b644
xor edx, edx
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push edx
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x20]
mov dword [ebx], edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10e6b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6b55
test byte [eax + 0x1c], 1
je 0x10e6b55
cmp byte [eax + 0x19], 2
jb 0x10e6b55
push esi
push 0x10119f4
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jg 0x10e6b61
mov dword [ebp - 0x14], esi
jmp 0x10e6e18
and esi, 0xffff
or esi, 0x80070000
jmp 0x10e6b59
mov eax, dword [ebp - 0x3c]
mov ecx, eax
lea edi, [eax + 0x40]
not ecx
and edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, 0x108
lea eax, [eax + ebx + 0x40]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10e6b95
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x10e6c8e
push dword [ebp - 0x14]
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x2c
pop eax
mov ecx, eax
mov dword [esi + 0x18], eax
mov al, byte [esi + 0x1d]
and al, 0xfe
or al, 2
mov byte [esi + 0x1d], al
mov eax, dword [ebp + 0xc]
mov word [esi], cx
mov ecx, eax
mov byte [esi + 0x1f], al
push 0
mov eax, ebx
shr eax, 8
mov byte [esi + 0x23], al
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
sar ecx, 8
push esi
push dword [ebp - 0x14]
mov byte [esi + 7], 0x12
push esi
push 0x4d004
push dword [ebp - 0x20]
mov byte [esi + 8], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], edi
mov byte [esi + 6], 0xa
mov byte [esi + 0x1c], 0x46
mov byte [esi + 0x1e], cl
mov byte [esi + 0x24], bl
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10e6c9a
test byte [esi + 0x2e], 0xf
jne 0x10e6cec
lea eax, [edi + esi]
movzx edi, byte [eax]
movzx edx, byte [eax + 1]
shl edi, 8
or edi, edx
movzx edx, byte [eax + 2]
shl edi, 8
mov dword [ebp - 0x28], eax
movzx eax, byte [eax + 3]
or edi, edx
shl edi, 8
or edi, eax
push 4
pop ecx
lea eax, [edi + 4]
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jb 0x10e6d39
lea eax, [ebp - 0x18]
push eax
push edi
push ecx
call fcn.010e57fa
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x10e6d76
mov edi, dword [ebp - 0x18]
cmp edi, ebx
jbe 0x10e6db2
mov eax, dword [ebp - 0x3c]
mov ebx, edi
mov edi, dword [ebp - 0x24]
jmp 0x10e6b83
mov dword [ebp - 0x14], 0x8007000e
jmp 0x10e6e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6cd2
test byte [eax + 0x1c], 1
je 0x10e6cd2
cmp byte [eax + 0x19], 2
jb 0x10e6cd2
push edi
push 0x10119f4
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test edi, edi
jg 0x10e6cde
mov dword [ebp - 0x14], edi
jmp 0x10e6e08
and edi, 0xffff
or edi, 0x80070000
jmp 0x10e6cd6
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6d2d
test byte [eax + 0x1c], 1
je 0x10e6d2d
cmp byte [eax + 0x19], 2
jb 0x10e6d2d
movzx ecx, byte [esi + 0x39]
push ecx
movzx ecx, byte [esi + 0x38]
push ecx
movzx ecx, byte [esi + 0x2e]
and ecx, 0xf
push ecx
push 0x10119f4
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01065870
mov eax, dword [0x111024c]
mov dword [ebp - 0x14], 1
jmp 0x10e6e08
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6d6a
test byte [eax + 0x1c], 1
je 0x10e6d6a
cmp byte [eax + 0x19], 2
jb 0x10e6d6a
push edi
push ecx
push 0x10119f4
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov eax, dword [0x111024c]
mov dword [ebp - 0x14], 0x8000ffff
jmp 0x10e6e08
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6da9
test byte [eax + 0x1c], 1
je 0x10e6da9
cmp byte [eax + 0x19], 2
jb 0x10e6da9
push edi
push dword [ebp - 0x18]
push 0x10119f4
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov eax, dword [0x111024c]
mov dword [ebp - 0x14], 0x80070216
jmp 0x10e6e08
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
test ebx, ebx
je 0x10e6c8e
push edi
push dword [ebp - 0x28]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [eax], ebx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6e08
test byte [eax + 0x1c], 1
je 0x10e6e08
cmp byte [eax + 0x19], 5
jb 0x10e6e08
push dword [ebp + 0xc]
push edi
push 0x10119f4
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov eax, dword [0x111024c]
test esi, esi
je 0x10e6e18
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x14], 0
pop edi
pop esi
pop ebx
jge 0x10e6e49
cmp eax, 0x111024c
je 0x10e6e49
test byte [eax + 0x1c], 1
je 0x10e6e49
cmp byte [eax + 0x19], 2
jb 0x10e6e49
push dword [ebp - 0x14]
push 0x10119f4
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0106f798
leave
ret 8