Function at 0x10e6778
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
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e67c8
test byte [eax + 0x1c], 1
je 0x10e67c8
cmp byte [eax + 0x19], 4
jb 0x10e67c8
push 0x10119f4
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor esi, esi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
mov edi, 0x1011a10
cmp ebx, esi
jne 0x10e67f3
push 0x1011a9c
push 0x30f
push edi
call fcn.0107b644
cmp dword [ebp - 0x20], esi
jne 0x10e6808
push 0x1011a94
push 0x310
push edi
call fcn.0107b644
mov eax, dword [ebp - 0x20]
mov byte [ebx], 0
mov byte [eax], 0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
stosd dword es:[edi], eax
and dword [ebp - 0xc], esi
lea eax, [ebp - 0x28]
push eax
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x24]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10e6899
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e687f
test byte [eax + 0x1c], 1
je 0x10e687f
cmp byte [eax + 0x19], 2
jb 0x10e687f
push esi
push 0x10119f4
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jg 0x10e688b
mov dword [ebp - 0x14], esi
jmp 0x10e6a27
and esi, 0xffff
or esi, 0x80070000
jmp 0x10e6883
mov eax, dword [ebp - 0x3c]
mov ecx, eax
lea edi, [eax + 0x40]
not ecx
and edi, ecx
and dword [ebp - 0x18], esi
jmp 0x10e68ad
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
setne bl
lea ebx, [ebx*4 + 0x1c]
lea eax, [ebx + eax + 0x40]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x10e68ce
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x10e698d
push dword [ebp - 0x1c]
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 word [esi], cx
xor eax, eax
cmp dword [ebp - 0x18], eax
mov byte [esi + 7], 0x12
setne cl
mov byte [esi + 8], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], edi
lea ecx, [ecx*4 + 6]
mov byte [esi + 6], cl
mov cl, byte [esi + 0x1e]
or byte [esi + 0x1d], 8
and cl, 0xea
or cl, 0x2a
mov byte [esi + 0x1e], cl
cmp dword [ebp - 0x18], eax
jne 0x10e6943
mov byte [esi + 0x20], bl
mov byte [esi + 0x1c], 0x1a
lea ebx, [edi + esi + 4]
jmp 0x10e6956
mov ecx, ebx
shr ecx, 8
mov byte [esi + 0x24], bl
mov byte [esi + 0x1c], 0x5a
mov byte [esi + 0x23], cl
lea ebx, [edi + esi + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x1c]
push esi
push 0x4d004
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10e6996
test byte [esi + 0x2e], 0xf
je 0x10e69f4
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jb 0x10e68aa
jmp 0x10e6a12
mov dword [ebp - 0x14], 0x8007000e
jmp 0x10e6a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e69df
test byte [eax + 0x1c], 1
je 0x10e69df
cmp byte [eax + 0x19], 2
jb 0x10e69df
cmp dword [ebp - 0x18], 0
mov ecx, 0x1011a80
je 0x10e69c6
mov ecx, 0x1011a6c
push edi
push ecx
push 0x10119f4
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010e5828
mov eax, dword [0x111024c]
test edi, edi
jle 0x10e69ef
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x14], edi
jmp 0x10e6a17
test byte [ebx + 3], 0x33
je 0x10e6a00
mov eax, dword [ebp - 0x2c]
mov byte [eax], 1
test byte [ebx + 3], 0x30
jne 0x10e6a0c
test byte [ebx + 2], 0x38
je 0x10e6a12
mov eax, dword [ebp - 0x20]
mov byte [eax], 1
mov eax, dword [0x111024c]
test esi, esi
je 0x10e6a27
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 0x10e6a5d
cmp eax, 0x111024c
je 0x10e6a82
test byte [eax + 0x1c], 1
je 0x10e6a5d
cmp byte [eax + 0x19], 2
jb 0x10e6a5d
push dword [ebp - 0x14]
push 0x10119f4
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10e6a82
test byte [eax + 0x1c], 1
je 0x10e6a82
cmp byte [eax + 0x19], 4
jb 0x10e6a82
push 0x10119f4
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0106f798
leave
ret 8