Function at 0x4710d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x56bf08
push eax
mov eax, 0x2984
mov dword fs:[0], esp
call fcn.004f6b50
mov eax, ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 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 - 0x1c], 1
nop dword [eax]
push edi
lea eax, [ebp - 0x280]
mov dword [ebp - 0x18], 0
push 0x5a6160
push eax
call fcn.004018b0
add esp, 0xc
lea eax, [ebp - 0x280]
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 0x4714b2
push 0
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0xd0]
movq qword [ebp - 0xb0], xmm0
push eax
push 0
push 0
push 0x700a0
push esi
movups xmmword [ebp - 0xd0], xmm0
movups xmmword [ebp - 0xc0], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4714a5
cmp dword [ebp - 0xc8], 0xc
jne 0x4714a5
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xb4]
push 0x2710
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2990]
push 0
push eax
call fcn.004fc9d0
add esp, 0xc
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2990]
mov dword [ebp - 0x2c], 0
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4714a5
sub esp, 8
lea ecx, [ebp - 0x180]
call fcn.0046ef50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2990]
mov eax, dword [ebp - 0x2984]
add eax, ecx
lea ecx, [ebp - 0x90]
push eax
call fcn.00407900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2990]
mov eax, dword [ebp - 0x2980]
add eax, ecx
lea ecx, [ebp - 0x78]
push eax
call fcn.00407900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2990]
mov eax, dword [ebp - 0x297c]
add eax, ecx
lea ecx, [ebp - 0x60]
push eax
call fcn.00407900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2990]
mov eax, dword [ebp - 0x2978]
add eax, ecx
lea ecx, [ebp - 0x48]
push eax
call fcn.00407900
push dword [ebp - 0x20]
mov edx, str.DiskSize:
mov byte [ebp - 4], 5
push dword [ebp - 0x24]
lea ecx, [ebp - 0x170]
call fcn.00412640
mov ecx, eax
call fcn.0041fe10
mov edx, str._VendorIdOffset:
lea ecx, [ebp - 0x170]
call fcn.00412640
lea edx, [ebp - 0x90]
mov ecx, eax
call fcn.00408ff0
mov edx, str._ProductIdOffset:
lea ecx, [ebp - 0x170]
call fcn.00412640
lea edx, [ebp - 0x78]
mov ecx, eax
call fcn.00408ff0
mov edx, str._ProductRevisionOffset:
lea ecx, [ebp - 0x170]
call fcn.00412640
lea edx, [ebp - 0x60]
mov ecx, eax
call fcn.00408ff0
mov edx, str._SerialNumberOffset:
lea ecx, [ebp - 0x170]
call fcn.00412640
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.00408ff0
push dword [ebp - 0x2974]
mov edx, str._BusType:
lea ecx, [ebp - 0x170]
call fcn.00412640
mov ecx, eax
call fcn.004150e0
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x180]
call fcn.00471b20
mov byte [ebp - 4], 6
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00407870
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x94]
cmp eax, 0x10
jb 0x471398
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00408640
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
mov byte [ebp - 0xd], 1
cmp eax, 0x10
jb 0x4713d0
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00408640
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x4713fb
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00408640
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x471426
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00408640
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x471457
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.00408640
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 7
call fcn.0046ee60
lea eax, [ebp - 0x118]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f88bf
add esp, 4
mov byte [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], 0
jne 0x4714bc
inc edi
cmp edi, 0x10
jl 0x471130
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret