Function at 0x45cfa0
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 0x5847c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2988
push ebx
call fcn.004f5240
mov eax, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 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 - 0x288]
mov dword [ebp - 0x1c], 0
push 0x5c3bd4
push eax
call fcn.0045780e
add esp, 0xc
lea eax, [ebp - 0x288]
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 0x45d3f5
push 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0xc0]
movq qword [ebp - 0xa0], xmm0
push eax
push 0
push 0
push 0x700a0
push esi
movups xmmword [ebp - 0xc0], xmm0
movups xmmword [ebp - 0xb0], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45d3e8
cmp dword [ebp - 0xb8], 0xc
jne 0x45d3e8
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa4]
push 0x2710
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2998]
push 0
push eax
call fcn.005065b0
add esp, 0xc
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2998]
mov dword [ebp - 0x30], 0
push eax
push 0xc
lea eax, [ebp - 0x34]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45d3e8
sub esp, 8
lea ecx, [ebp - 0x188]
call fcn.0043c5b3
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2998]
mov eax, dword [ebp - 0x298c]
add eax, ecx
lea ecx, [ebp - 0x94]
push eax
call fcn.0040bb40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2998]
mov eax, dword [ebp - 0x2988]
add eax, ecx
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040bb40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2998]
mov eax, dword [ebp - 0x2984]
add eax, ecx
lea ecx, [ebp - 0x64]
push eax
call fcn.0040bb40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2998]
mov eax, dword [ebp - 0x2980]
add eax, ecx
lea ecx, [ebp - 0x4c]
push eax
call fcn.0040bb40
push dword [ebp - 0x24]
mov edx, str.DiskSize:
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
lea ecx, [ebp - 0x178]
call fcn.00433f50
mov ecx, eax
call fcn.0045674c
mov edx, str._VendorIdOffset:
lea ecx, [ebp - 0x178]
call fcn.00433f50
lea edx, [ebp - 0x94]
mov ecx, eax
call fcn.004339e0
mov edx, str._ProductIdOffset:
lea ecx, [ebp - 0x178]
call fcn.00433f50
lea edx, [ebp - 0x7c]
mov ecx, eax
call fcn.004339e0
mov edx, str._ProductRevisionOffset:
lea ecx, [ebp - 0x178]
call fcn.00433f50
lea edx, [ebp - 0x64]
mov ecx, eax
call fcn.004339e0
mov edx, str._SerialNumberOffset:
lea ecx, [ebp - 0x178]
call fcn.00433f50
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.004339e0
push dword [ebp - 0x297c]
mov edx, str._BusType:
push ecx
lea ecx, [ebp - 0x178]
call fcn.00433f50
add esp, 4
mov ecx, eax
call fcn.0045df50
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x188]
call fcn.0043c568
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00422690
mov eax, dword [ebp - 0xc4]
cmp eax, 0x10
jb 0x45d278
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.0040c0a0
mov eax, dword [ebp - 0x38]
mov byte [ebp - 0x11], 1
cmp eax, 0x10
jb 0x45d291
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0040c0a0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
cmp eax, 0x10
jb 0x45d2b8
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.0040c0a0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp eax, 0x10
jb 0x45d2df
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.0040c0a0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
cmp eax, 0x10
jb 0x45d30c
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.0040c0a0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
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 - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x18c], eax
lea ecx, [ebp - 0x170]
call fcn.0043cb6e
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x18c], eax
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x17c], eax
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x18c], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004bda6d
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x45d3ff
inc edi
cmp edi, 0x10
jl 0x45d010
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