Function at 0x1016cf4
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
test byte [0x102407c], 0x10
mov eax, dword [0x102416c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 0x255], 0
mov esi, 0x10023e0
je 0x1016d39
push esi
push 0xe1
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
xor eax, eax
lea edi, [ebp - 0x270]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
test byte [0x102407c], 0x10
mov dword [ebp - 0x260], edi
je 0x1016d6c
push esi
push 0xe2
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
push edi
lea eax, [ebp - 0x260]
push eax
push 0xc
lea eax, [ebp - 0x270]
push eax
push edi
push edi
push 0x2d1080
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1016dae
test byte [0x102407c], 0x10
je 0x10170f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xe3
jmp 0x1016f28
test byte [0x102407c], 0x10
je 0x1016de0
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
push dword [ebp - 0x270]
push esi
push 0xe4
push dword [0x1024074]
push dword [0x1024070]
call fcn.010034bf
push dword [ebp - 0x26c]
lea eax, [ebp - 0x54]
push 0x100242c
push 0x28
push eax
call fcn.01015fa0
add esp, 0x10
cmp eax, edi
jge 0x1016e16
test byte [0x102407c], 0x10
je 0x10170f3
push eax
push esi
push 0xe5
jmp 0x1016f28
test byte [0x102407c], 0x10
je 0x1016e3a
lea eax, [ebp - 0x54]
push eax
push esi
push 0xe6
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
push 0x7f
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1016e7d
test byte [0x102407c], 0x10
je 0x10170f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xe7
jmp 0x1016f28
test byte [0x102407c], 0x10
je 0x1016ea4
lea eax, [ebp - 0x254]
push eax
push esi
push pe_nt_image_headers32
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
push 0x7f
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x1016ee7
test byte [0x102407c], 0x10
je 0x10170f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xe9
jmp 0x1016f28
xor eax, eax
lea ecx, [ebp - 0x25c]
push ecx
push eax
push eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xea
cmp eax, ebx
je 0x1016f3e
test byte [0x102407c], 0x10
je 0x10170f3
call edi
push eax
push esi
push ebx
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x10170f3
test byte [0x102407c], 0x10
je 0x1016f64
push dword [ebp - 0x25c]
push esi
push 0xeb
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
mov eax, dword [ebp - 0x25c]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x264], eax
jne 0x1016fae
test byte [0x102407c], 0x10
je 0x10170de
push dword [ebp - 0x25c]
push esi
push 0xec
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x10170de
lea ecx, [ebp - 0x25c]
push ecx
push dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x101701f
test byte [0x102407c], 0x10
je 0x1016ff7
call edi
push eax
lea eax, [ebp - 0x154]
push eax
push esi
push 0xed
push dword [0x1024074]
push dword [0x1024070]
call fcn.01014aa2
call edi
cmp eax, ebx
jne 0x10170de
test byte [0x102407c], 0x10
je 0x10170de
push dword [ebp - 0x25c]
push esi
push 0xee
jmp 0x1016f98
test byte [0x102407c], 0x10
je 0x1017045
push dword [ebp - 0x25c]
push esi
push 0xef
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
mov edi, dword [ebp - 0x264]
xor ebx, ebx
jmp 0x10170b9
test byte [0x102407c], 0x10
mov dword [ebp - 0x260], ebx
je 0x1017076
push edi
push esi
push 0xf0
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1017108
test byte [0x102407c], 0x10
je 0x10170af
push edi
push esi
push 0xf3
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
push edi
call fcn.01019d98
pop ecx
lea edi, [edi + eax*2]
cmp word [edi], bx
jne 0x101704f
test byte [0x102407c], 0x10
je 0x10170de
push esi
push 0xf4
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
cmp dword [ebp - 0x264], 0
je 0x10170f3
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x255]
pop edi
pop esi
pop ebx
call fcn.01019a47
leave
ret 4
test byte [ebp - 0x25e], 8
jne 0x101713a
test byte [0x102407c], 0x10
je 0x1017131
push esi
push 0xf1
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov byte [ebp - 0x255], 1
jmp 0x10170de
test byte [0x102407c], 0x10
je 0x10170de
push esi
push 0xf2
jmp 0x10170cd