Function at 0x10e68a2
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
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 [0x111124c]
cmp eax, 0x111124c
je 0x10e68f2
test byte [eax + 0x1c], 1
je 0x10e68f2
cmp byte [eax + 0x19], 4
jb 0x10e68f2
push 0x10118fc
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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, 0x1011918
cmp ebx, esi
jne 0x10e691d
push 0x10119a4
push 0x30f
push edi
call fcn.0107b4be
cmp dword [ebp - 0x20], esi
jne 0x10e6932
push 0x101199c
push 0x310
push edi
call fcn.0107b4be
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 0x10e69c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e69a9
test byte [eax + 0x1c], 1
je 0x10e69a9
cmp byte [eax + 0x19], 2
jb 0x10e69a9
push esi
push 0x10118fc
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
test esi, esi
jg 0x10e69b5
mov dword [ebp - 0x14], esi
jmp 0x10e6b51
and esi, 0xffff
or esi, 0x80070000
jmp 0x10e69ad
mov eax, dword [ebp - 0x3c]
mov ecx, eax
lea edi, [eax + 0x40]
not ecx
and edi, ecx
and dword [ebp - 0x18], esi
jmp 0x10e69d7
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 0x10e69f8
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 0x10e6ab7
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 0x10e6a6d
mov byte [esi + 0x20], bl
mov byte [esi + 0x1c], 0x1a
lea ebx, [edi + esi + 4]
jmp 0x10e6a80
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 0x10e6ac0
test byte [esi + 0x2e], 0xf
je 0x10e6b1e
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jb 0x10e69d4
jmp 0x10e6b3c
mov dword [ebp - 0x14], 0x8007000e
jmp 0x10e6b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6b09
test byte [eax + 0x1c], 1
je 0x10e6b09
cmp byte [eax + 0x19], 2
jb 0x10e6b09
cmp dword [ebp - 0x18], 0
mov ecx, 0x1011988
je 0x10e6af0
mov ecx, 0x1011974
push edi
push ecx
push 0x10118fc
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010e5952
mov eax, dword [0x111124c]
test edi, edi
jle 0x10e6b19
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x14], edi
jmp 0x10e6b41
test byte [ebx + 3], 0x33
je 0x10e6b2a
mov eax, dword [ebp - 0x2c]
mov byte [eax], 1
test byte [ebx + 3], 0x30
jne 0x10e6b36
test byte [ebx + 2], 0x38
je 0x10e6b3c
mov eax, dword [ebp - 0x20]
mov byte [eax], 1
mov eax, dword [0x111124c]
test esi, esi
je 0x10e6b51
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 0x10e6b87
cmp eax, 0x111124c
je 0x10e6bac
test byte [eax + 0x1c], 1
je 0x10e6b87
cmp byte [eax + 0x19], 2
jb 0x10e6b87
push dword [ebp - 0x14]
push 0x10118fc
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e6bac
test byte [eax + 0x1c], 1
je 0x10e6bac
cmp byte [eax + 0x19], 4
jb 0x10e6bac
push 0x10118fc
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 8