Function at 0x420ee0
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519fb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2990
push ebx
call fcn.004988e0
mov eax, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
push esi
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
push edi
mov byte [eax], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x20], 1
nop dword [eax]
push edi
lea eax, [ebp - 0x290]
mov dword [ebp - 0x1c], 0
push str..PhysicalDrive_d
push eax
call fcn.00420850
add esp, 0xc
lea eax, [ebp - 0x290]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x421334
push 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0xc8]
movq qword [ebp - 0xa8], xmm0
push eax
push 0
push 0
push 0x700a0
push esi
movups xmmword [ebp - 0xc8], xmm0
movups xmmword [ebp - 0xb8], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x421327
cmp dword [ebp - 0xc0], 0xc
jne 0x421327
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xac]
push 0x2710
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x29a0]
push 0
push eax
call fcn.004b0ce0
add esp, 0xc
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
push 0
push eax
push 0x2710
lea eax, [ebp - 0x29a0]
mov dword [ebp - 0x34], 0
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x421327
mov dword [ebp - 0x190], 0x545aa8
mov dword [ebp - 0x180], 0x545a88
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
or eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x178]
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.00421f60
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x194], eax
lea eax, [ebp - 0x178]
mov ecx, eax
mov dword [ebp - 0x9c], eax
call fcn.0041b190
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x29a0]
mov eax, dword [ebp - 0x2994]
add eax, ecx
lea ecx, [ebp - 0x98]
push eax
call fcn.004059a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x29a0]
mov eax, dword [ebp - 0x2990]
add eax, ecx
lea ecx, [ebp - 0x80]
push eax
call fcn.004059a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x29a0]
mov eax, dword [ebp - 0x298c]
add eax, ecx
lea ecx, [ebp - 0x68]
push eax
call fcn.004059a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x29a0]
mov eax, dword [ebp - 0x2988]
add eax, ecx
lea ecx, [ebp - 0x50]
push eax
call fcn.004059a0
push dword [ebp - 0x28]
mov edx, str.DiskSize:
mov byte [ebp - 4], 8
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x180]
call fcn.004065e0
mov ecx, eax
call fcn.00421ad0
mov edx, str._VendorIdOffset:
lea ecx, [ebp - 0x180]
call fcn.004065e0
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00416220
mov edx, str._ProductIdOffset:
lea ecx, [ebp - 0x180]
call fcn.004065e0
lea edx, [ebp - 0x80]
mov ecx, eax
call fcn.00416220
mov edx, str._ProductRevisionOffset:
lea ecx, [ebp - 0x180]
call fcn.004065e0
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.00416220
mov edx, str._SerialNumberOffset:
lea ecx, [ebp - 0x180]
call fcn.004065e0
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.00416220
push dword [ebp - 0x2984]
mov edx, str._BusType:
push ecx
lea ecx, [ebp - 0x180]
call fcn.004065e0
add esp, 4
mov ecx, eax
call fcn.00421c40
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x190]
call fcn.00421970
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00405910
mov eax, dword [ebp - 0xcc]
cmp eax, 0x10
jb 0x42124d
inc eax
lea ecx, [ebp - 0xe0]
push eax
push dword [ebp - 0xe0]
call fcn.004023a0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x11], 1
cmp eax, 0x10
jb 0x421266
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004023a0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x42128d
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004023a0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp eax, 0x10
jb 0x4212b4
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.004023a0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp eax, 0x10
jb 0x4212e4
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.004023a0
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
mov byte [ebp - 4], 0
call fcn.00421990
lea eax, [ebp - 0x128]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00496c76
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x42133e
inc edi
cmp edi, 0x10
jl 0x420f50
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret