Function at 0x1016b80
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, 0x10023a8
je 0x1016bc5
push esi
push 0xdf
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
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 0x1016bf8
push esi
push 0xe0
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
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 0x1016c3a
test byte [0x102407c], 0x10
je 0x1016f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xe1
jmp 0x1016db8
test byte [0x102407c], 0x10
je 0x1016c6c
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
push dword [ebp - 0x270]
push esi
push 0xe2
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100e4a4
push dword [ebp - 0x26c]
lea eax, [ebp - 0x54]
push 0x10023f4
push 0x28
push eax
call fcn.01015e2c
add esp, 0x10
cmp eax, edi
jge 0x1016ca2
test byte [0x102407c], 0x10
je 0x1016f7f
push eax
push esi
push 0xe3
jmp 0x1016db8
test byte [0x102407c], 0x10
je 0x1016cc6
lea eax, [ebp - 0x54]
push eax
push esi
push 0xe4
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
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 0x1016d09
test byte [0x102407c], 0x10
je 0x1016f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xe5
jmp 0x1016db8
test byte [0x102407c], 0x10
je 0x1016d30
lea eax, [ebp - 0x254]
push eax
push esi
push 0xe6
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
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 0x1016d73
test byte [0x102407c], 0x10
je 0x1016f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0xe7
jmp 0x1016db8
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 0x1016dce
test byte [0x102407c], 0x10
je 0x1016f7f
call edi
push eax
push esi
push pe_nt_image_headers32
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x1016f7f
test byte [0x102407c], 0x10
je 0x1016df4
push dword [ebp - 0x25c]
push esi
push 0xe9
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
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 0x1016e3a
test byte [0x102407c], 0x10
je 0x1016f6a
push dword [ebp - 0x25c]
push esi
push ebx
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x1016f6a
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 0x1016eab
test byte [0x102407c], 0x10
je 0x1016e83
call edi
push eax
lea eax, [ebp - 0x154]
push eax
push esi
push 0xeb
push dword [0x1024074]
push dword [0x1024070]
call fcn.01014958
call edi
cmp eax, ebx
jne 0x1016f6a
test byte [0x102407c], 0x10
je 0x1016f6a
push dword [ebp - 0x25c]
push esi
push 0xec
jmp 0x1016e24
test byte [0x102407c], 0x10
je 0x1016ed1
push dword [ebp - 0x25c]
push esi
push 0xed
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
mov edi, dword [ebp - 0x264]
xor ebx, ebx
jmp 0x1016f45
test byte [0x102407c], 0x10
mov dword [ebp - 0x260], ebx
je 0x1016f02
push edi
push esi
push 0xee
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
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 0x1016f94
test byte [0x102407c], 0x10
je 0x1016f3b
push edi
push esi
push 0xf1
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
push edi
call fcn.01019bb1
pop ecx
lea edi, [edi + eax*2]
cmp word [edi], bx
jne 0x1016edb
test byte [0x102407c], 0x10
je 0x1016f6a
push esi
push 0xf2
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
cmp dword [ebp - 0x264], 0
je 0x1016f7f
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.01019860
leave
ret 4
test byte [ebp - 0x25e], 8
jne 0x1016fc6
test byte [0x102407c], 0x10
je 0x1016fbd
push esi
push 0xef
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov byte [ebp - 0x255], 1
jmp 0x1016f6a
test byte [0x102407c], 0x10
je 0x1016f6a
push esi
push 0xf0
jmp 0x1016f59