Function at 0x4010d0
Capabilities:
Get disk information via ioctl
Get disk size
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x412170]
push ebx
push esi
push edi
push 0x12
xor edi, edi
lea eax, [ebp - 0x4c]
push edi
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x98], edi
movups xmmword [ebp - 0x4c], xmm0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x94], eax
cmp eax, 0xffffffff
jne 0x401127
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401464
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], edi
push ecx
push 0
lea ecx, [ebp - 0x4c]
xorps xmm0, xmm0
push ecx
push 0
movups xmmword [ebp - 0x3c], xmm0
push eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x3c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x401331
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esi, 0x14
push 0
lea eax, [ebp - 0x90]
mov dword [esi - 0x10], edi
push eax
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push dword [ebp - 0x90]
call fcn.004031c7
push dword [ebp - 0x90]
mov edi, eax
push 0
push edi
call fcn.00402380
add esp, 0x10
mov dword [edi], 6
lea eax, [ebp - 0x3c]
push 0
push 0
push dword [ebp - 0x90]
push edi
push eax
push dword [ebp - 0x94]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000003
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401302
push 0
lea eax, [ebp - 0x90]
push eax
push 0xc
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x2d1080
push edi
call ebx
test eax, eax
je 0x40120c
mov eax, dword [ebp - 0x54]
mov dword [esi - 0x14], eax
push 0
lea eax, [ebp - 0x90]
mov dword [ebp - 8], 0
push eax
push 0x28
lea eax, [ebp - 0x8c]
xorps xmm0, xmm0
push eax
push 0xc
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call ebx
test eax, eax
je 0x401265
mov eax, dword [ebp - 0x70]
mov dword [esi], eax
movzx eax, byte [ebp - 0x82]
mov dword [esi + 8], eax
mov al, byte [ebp - 0x84]
mov byte [esi + 0xc], al
push 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x10], 7
push eax
push 0xc
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x401294
movzx eax, byte [ebp - 0x5c]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 0x90]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x41018
push edi
call ebx
test eax, eax
je 0x4012c8
movzx eax, byte [ebp - 0x14]
mov dword [esi - 0xc], eax
movzx eax, byte [ebp - 0x13]
mov dword [esi - 8], eax
movzx eax, byte [ebp - 0x12]
mov dword [esi - 4], eax
push 0
lea eax, [ebp - 0x90]
xorps xmm0, xmm0
push eax
push 8
lea eax, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
push eax
push 0
push 0
push 0x7405c
push edi
call ebx
test eax, eax
je 0x4012fb
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x3c]
push eax
inc edi
lea eax, [ebp - 0x4c]
push edi
push eax
push 0
push dword [ebp - 0x94]
mov dword [ebp - 0x98], edi
add esi, 0x30
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x401161
push dword [ebp - 0x94]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401464
mov esp, ebp
pop ebp
ret