Function at 0x48a570
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2311
mov eax, dword fs:[0]
push eax
mov eax, 0x3824
call fcn.004b6d00
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00414a60
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa8]
push 0x4daef0
push ecx
call fcn.0041d7d0
add esp, 8
push 0x23
mov esi, 0xf
push str.ReadPhysicalDriveInNTWithZeroRights
lea ecx, [ebp - 0x37dc]
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37cc], ebx
mov byte [ebp - 0x37dc], bl
call fcn.004190e0
mov byte [ebp - 4], 1
push 0xa
push str.DiskID.cpp
lea ecx, [ebp - 0x37f8]
mov dword [ebp - 0x37e4], esi
mov dword [ebp - 0x37e8], ebx
mov byte [ebp - 0x37f8], bl
call fcn.004190e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x3820]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.00414b60
mov byte [ebp - 4], 3
push eax
push 0x209
push 3
call fcn.00413e40
push eax
lea edx, [ebp - 0x37dc]
lea ecx, [ebp - 0x37f8]
call fcn.00471900
mov byte [ebp - 4], 2
cmp dword [ebp - 0x380c], 8
jb 0x48a66e
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x380c], 7
mov dword [ebp - 0x3810], ebx
mov word [ebp - 0x3820], dx
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x37e4], edi
jb 0x48a6a7
mov eax, dword [ebp - 0x37f8]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x37e4], esi
mov dword [ebp - 0x37e8], ebx
mov byte [ebp - 0x37f8], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x37c8], edi
jb 0x48a6d3
mov ecx, dword [ebp - 0x37dc]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x37c8], esi
or esi, 0xffffffff
mov dword [ebp - 0x37cc], ebx
mov byte [ebp - 0x37dc], bl
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x3824], edx
mov dword [ebp + ecx - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.00414bc0
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x58]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x3824], ecx
mov dword [ebp - 0x58], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov edx, ecx
push edx
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0049c602
add esp, 4
xor edi, edi
mov dword [ebp - 0x3824], ebx
mov dword [ebp - 0x3828], edi
push edi
push str..PhysicalDrive_d
lea edx, [ebp - 0x110]
call fcn.0048bab0
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48a927
push 0x2710
lea ecx, [ebp - 0x2ff0]
push ebx
mov dword [ebp - 0x3804], ebx
mov dword [ebp - 0x3800], ebx
push ecx
mov dword [ebp - 0x382c], ebx
mov dword [ebp - 0x37fc], ebx
mov dword [ebp - 0x3804], ebx
mov dword [ebp - 0x3800], ebx
call fcn.004a4260
add esp, 0xc
push ebx
lea edx, [ebp - 0x382c]
push edx
push 0x2710
lea eax, [ebp - 0x2ff0]
push eax
push 0xc
lea ecx, [ebp - 0x3804]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x48a91a
mov eax, dword [ebp - 0x2fe4]
push ebx
lea edi, [ebp - 0x37c0]
lea ecx, [ebp - 0x2ff0]
call fcn.0048a400
mov eax, dword [ebp - 0x2fe0]
add esp, 4
push ebx
lea edi, [ebp - 0x8e0]
lea ecx, [ebp - 0x2ff0]
call fcn.0048a400
mov eax, dword [ebp - 0x2fdc]
add esp, 4
push ebx
lea edi, [ebp - 0x33d8]
lea ecx, [ebp - 0x2ff0]
call fcn.0048a400
mov eax, dword [ebp - 0x2fd8]
add esp, 4
push 1
lea edi, [ebp - 0x4f8]
lea ecx, [ebp - 0x2ff0]
call fcn.0048a400
add esp, 4
cmp byte [0x4f04c0], bl
jne 0x48a8db
movsx edx, byte [ebp - 0x4f8]
push edx
call fcn.0049e6a5
add esp, 4
test eax, eax
jne 0x48a89f
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.0049e6a5
add esp, 4
test eax, eax
je 0x48a8db
lea ecx, [ebp - 0x4f8]
push ecx
push 0x400
push 0x4f04c0
call fcn.0049fc07
add esp, 0xc
lea edx, [ebp - 0x8e0]
push edx
push 0x400
push 0x4f08c0
call fcn.0049fc07
add esp, 0xc
mov dword [ebp - 0x3824], 1
push 0x2710
lea eax, [ebp - 0x2ff0]
push ebx
push eax
call fcn.004a4260
add esp, 0xc
push ebx
lea ecx, [ebp - 0x382c]
push ecx
push 0x2710
lea edx, [ebp - 0x2ff0]
push edx
push ebx
push ebx
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x3828]
jmp 0x48a920
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov dword [ebp - 0x3828], edi
cmp edi, 0x10
jl 0x48a764
lea eax, [ebp - 0xa8]
push eax
call fcn.00414a60
mov dword [ebp - 4], 7
mov edi, dword [ebp - 0x3824]
push edi
push ecx
lea ecx, [ebp - 0xa8]
push 0x4cdcac
push ecx
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.004122f0
push 0x23
mov esi, 0xf
push str.ReadPhysicalDriveInNTWithZeroRights
lea ecx, [ebp - 0x37f8]
mov dword [ebp - 0x37e4], esi
mov dword [ebp - 0x37e8], ebx
mov byte [ebp - 0x37f8], bl
call fcn.004190e0
mov byte [ebp - 4], 8
push 0xa
push str.DiskID.cpp
lea ecx, [ebp - 0x37dc]
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37cc], ebx
mov byte [ebp - 0x37dc], bl
call fcn.004190e0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x3820]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.00414b60
mov byte [ebp - 4], 0xa
push eax
push 0x26b
push 3
call fcn.00413e40
push eax
lea edx, [ebp - 0x37f8]
lea ecx, [ebp - 0x37dc]
call fcn.00471900
mov byte [ebp - 4], 9
cmp dword [ebp - 0x380c], 8
jb 0x48aa13
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x380c], 7
mov dword [ebp - 0x3810], ebx
mov word [ebp - 0x3820], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x37c8], 0x10
jb 0x48aa48
mov eax, dword [ebp - 0x37dc]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37cc], ebx
mov byte [ebp - 0x37dc], bl
mov byte [ebp - 4], 7
cmp dword [ebp - 0x37e4], 0x10
jb 0x48aa76
mov ecx, dword [ebp - 0x37f8]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x37e4], esi
or esi, 0xffffffff
mov dword [ebp - 0x37e8], ebx
mov byte [ebp - 0x37f8], bl
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x3824], edx
mov dword [ebp + ecx - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0xa4]
mov dword [ebp - 0x3828], edx
mov dword [ebp - 0xa4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [ebp - 4], 0xd
test byte [ebp - 0x64], 1
je 0x48aae3
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
push eax
call fcn.0049ca60
add esp, 4
mov ecx, dword [ebp - 0x94]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x84]
mov dword [edx], ebx
mov eax, dword [ebp - 0x74]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x90]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x80]
mov dword [edx], ebx
mov eax, dword [ebp - 0x70]
mov dword [eax], ebx
and dword [ebp - 0x64], 0xfffffffe
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00412950
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x58]
mov dword [ebp + edx - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x3824], eax
mov dword [ebp - 0x58], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov ecx, eax
push ecx
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0049c602
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret