Function at 0x10e6bc2
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x111127c]
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 0x10e6c10
push 0x10119b8
push 0x3db
push 0x1011918
call fcn.0107b4be
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 0x10e6c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6c7f
test byte [eax + 0x1c], 1
je 0x10e6c7f
cmp byte [eax + 0x19], 2
jb 0x10e6c7f
push esi
push 0x10118fc
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
test esi, esi
jg 0x10e6c8b
mov dword [ebp - 0x14], esi
jmp 0x10e6f42
and esi, 0xffff
or esi, 0x80070000
jmp 0x10e6c83
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 0x10e6cbf
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 0x10e6db8
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 0x10e6dc4
test byte [esi + 0x2e], 0xf
jne 0x10e6e16
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 0x10e6e63
lea eax, [ebp - 0x18]
push eax
push edi
push ecx
call fcn.010e5924
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x10e6ea0
mov edi, dword [ebp - 0x18]
cmp edi, ebx
jbe 0x10e6edc
mov eax, dword [ebp - 0x3c]
mov ebx, edi
mov edi, dword [ebp - 0x24]
jmp 0x10e6cad
mov dword [ebp - 0x14], 0x8007000e
jmp 0x10e6f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6dfc
test byte [eax + 0x1c], 1
je 0x10e6dfc
cmp byte [eax + 0x19], 2
jb 0x10e6dfc
push edi
push 0x10118fc
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
test edi, edi
jg 0x10e6e08
mov dword [ebp - 0x14], edi
jmp 0x10e6f32
and edi, 0xffff
or edi, 0x80070000
jmp 0x10e6e00
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6e57
test byte [eax + 0x1c], 1
je 0x10e6e57
cmp byte [eax + 0x19], 2
jb 0x10e6e57
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 0x10118fc
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109bb0b
mov eax, dword [0x111124c]
mov dword [ebp - 0x14], 1
jmp 0x10e6f32
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6e94
test byte [eax + 0x1c], 1
je 0x10e6e94
cmp byte [eax + 0x19], 2
jb 0x10e6e94
push edi
push ecx
push 0x10118fc
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov eax, dword [0x111124c]
mov dword [ebp - 0x14], 0x8000ffff
jmp 0x10e6f32
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6ed3
test byte [eax + 0x1c], 1
je 0x10e6ed3
cmp byte [eax + 0x19], 2
jb 0x10e6ed3
push edi
push dword [ebp - 0x18]
push 0x10118fc
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov eax, dword [0x111124c]
mov dword [ebp - 0x14], 0x80070216
jmp 0x10e6f32
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
test ebx, ebx
je 0x10e6db8
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 [0x111124c]
cmp eax, 0x111124c
je 0x10e6f32
test byte [eax + 0x1c], 1
je 0x10e6f32
cmp byte [eax + 0x19], 5
jb 0x10e6f32
push dword [ebp + 0xc]
push edi
push 0x10118fc
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
mov eax, dword [0x111124c]
test esi, esi
je 0x10e6f42
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x14], 0
pop edi
pop esi
pop ebx
jge 0x10e6f73
cmp eax, 0x111124c
je 0x10e6f73
test byte [eax + 0x1c], 1
je 0x10e6f73
cmp byte [eax + 0x19], 2
jb 0x10e6f73
push dword [ebp - 0x14]
push 0x10118fc
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 8