Function at 0x406b50
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1a
push 0
push 0
push 0x466094
mov dword [ebp - 0x240], 0xffffffff
or edi, 0xffffffff
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [ebp - 0x228], 0x1c
lea eax, [ebp - 0x228]
mov dword [ebp - 0x268], esi
push eax
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x406fc9
nop
push ebx
push esi
push 0x466094
call fcn.004061f0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x26c], esi
cmp esi, 0xffffffff
je 0x406c00
push 0
lea eax, [ebp - 0x264]
push eax
push 0xc
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x230]
je 0x406c1f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x228]
push eax
inc ebx
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x406bb0
jmp 0x406fc9
mov eax, dword [ebp + 8]
cmp eax, 7
jne 0x406ea6
push 0
push dword [ebp - 0x214]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00406ff0
mov ecx, eax
add esp, 8
mov eax, edx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x238], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x258], xmm0
test eax, eax
jne 0x406cb1
cmp ecx, 0x64
ja 0x406cb1
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x248], eax
jmp 0x406dd3
mov eax, dword [ebp - 0x254]
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x248], eax
nop
mov ecx, 0xe147ae15
mov eax, esi
mul ecx
mov ebx, 0x47ae147a
mov dword [ebp - 0x258], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x238]
mul ecx
mov ecx, eax
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x238]
mov edx, 0x47ae147a
mul edx
add ecx, edi
mov edi, esi
mov dword [ebp - 0x254], edx
mov edx, dword [ebp - 0x240]
adc edx, 0
mov dword [ebp - 0x260], eax
add ebx, ecx
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x244], ebx
mov ebx, dword [ebp - 0x260]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x238]
adc eax, eax
add ebx, edx
mov edx, dword [ebp - 0x254]
adc edx, eax
mov eax, dword [ebp - 0x23c]
sub edi, ebx
sbb ecx, edx
shrd edi, ecx, 1
shr ecx, 1
add edi, ebx
adc ecx, edx
mov edx, 0x64
shrd edi, ecx, 6
shr ecx, 6
sub dword [ebp - 0x248], edi
sbb eax, ecx
mul edx
mov edx, 0x64
mov ebx, eax
mov eax, dword [ebp - 0x248]
mul edx
add ebx, edx
add eax, esi
mov dword [ebp - 0x248], eax
mov esi, edi
adc ebx, dword [ebp - 0x238]
mov eax, ecx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], eax
test eax, eax
ja 0x406cd0
jb 0x406dc1
cmp esi, 0x64
ja 0x406cd0
mov dword [ebp - 0x240], esi
mov esi, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x240]
mov eax, ecx
mov edx, 0xe147ae15
mul edx
mov ebx, 0x47ae147a
mov dword [ebp - 0x270], eax
mov edi, edx
mov eax, ecx
mov ecx, 0xe147ae15
mul ebx
mov ebx, eax
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x238]
mul ecx
mov ecx, eax
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x238]
mov edx, 0x47ae147a
mul edx
add ecx, edi
mov dword [ebp - 0x25c], edx
mov edx, dword [ebp - 0x26c]
adc edx, 0
mov dword [ebp - 0x260], eax
add ebx, ecx
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x270], ebx
mov ebx, dword [ebp - 0x260]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x238]
adc eax, eax
add ebx, edx
mov edx, dword [ebp - 0x25c]
adc edx, eax
mov eax, dword [ebp - 0x240]
sub eax, ebx
sbb ecx, edx
shrd eax, ecx, 1
shr ecx, 1
add eax, ebx
mov ebx, dword [ebp - 0x248]
adc ecx, edx
shrd eax, ecx, 6
shr ecx, 6
sub ebx, eax
mov eax, dword [ebp - 0x23c]
sbb eax, ecx
mov ecx, 0x64
mul ecx
mov edi, eax
mov eax, ebx
mul ecx
add edi, edx
add dword [ebp - 0x240], eax
adc edi, dword [ebp - 0x238]
jmp 0x406fbc
cmp eax, 0x11
je 0x406f62
cmp eax, 8
je 0x406f62
push 0
cmp eax, 0xa
xorps xmm0, xmm0
lea eax, [ebp - 0x264]
movlpd qword [ebp - 0x250], xmm0
push eax
push 8
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 8
push eax
push 8
push eax
push 0x41018
push esi
jne 0x406f4b
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x406fbc
movzx eax, byte [ebp - 0x24b]
xor edi, edi
imul ebx, eax, 0xf4240
movzx eax, byte [ebp - 0x24c]
imul eax, eax, 0x2710
add ebx, eax
movzx eax, byte [ebp - 0x24a]
adc edi, edi
imul eax, eax, 0x64
add ebx, eax
movzx eax, byte [ebp - 0x249]
cdq
adc edi, 0
add ebx, eax
adc edi, edx
add ebx, 0x3b200000
mov dword [ebp - 0x240], ebx
adc edi, 0x6f05b59d
jmp 0x406fbc
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x406fbc
movzx eax, byte [ebp - 0x24b]
cdq
mov edi, edx
jmp 0x406fb6
push dword [ebp - 0x214]
call fcn.00405f70
push dword [ebp - 0x214]
cdq
mov edi, eax
mov ebx, edx
call fcn.00405ea0
cdq
add esp, 8
mov ecx, eax
mov eax, edx
mov edx, 0x63
mul edx
mov dword [ebp - 0x23c], eax
mov eax, ecx
mov ecx, 0x63
mul ecx
add dword [ebp - 0x23c], edx
add eax, edi
mov edi, dword [ebp - 0x23c]
adc edi, ebx
add eax, 0xe2840000
adc edi, 0x7ce66c50
mov dword [ebp - 0x240], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x268]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret