Function at 0x474620
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0411
mov eax, dword fs:[0]
push eax
mov eax, 0x3824
call fcn.00495f50
mov eax, dword [0x4bf6bc]
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.004059f0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa8]
push 0x4b3b38
push ecx
call fcn.004090a0
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.00407f60
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.00407f60
mov byte [ebp - 4], 2
lea edx, [ebp - 0x3820]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.00405af0
mov byte [ebp - 4], 3
push eax
push 0x209
push 3
call fcn.004061f0
push eax
lea edx, [ebp - 0x37dc]
lea ecx, [ebp - 0x37f8]
call fcn.00462280
mov byte [ebp - 4], 2
cmp dword [ebp - 0x380c], 8
jb 0x47471e
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.0047bd91
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 0x474757
mov eax, dword [ebp - 0x37f8]
push eax
call fcn.0047bd91
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 0x474783
mov ecx, dword [ebp - 0x37dc]
push ecx
call fcn.0047bd91
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.00405b50
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.0047af85
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.00475b60
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 0x4749d7
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.00483260
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 0x4749ca
mov eax, dword [ebp - 0x2fe4]
push ebx
lea edi, [ebp - 0x37c0]
lea ecx, [ebp - 0x2ff0]
call fcn.004744b0
mov eax, dword [ebp - 0x2fe0]
add esp, 4
push ebx
lea edi, [ebp - 0x8e0]
lea ecx, [ebp - 0x2ff0]
call fcn.004744b0
mov eax, dword [ebp - 0x2fdc]
add esp, 4
push ebx
lea edi, [ebp - 0x33d8]
lea ecx, [ebp - 0x2ff0]
call fcn.004744b0
mov eax, dword [ebp - 0x2fd8]
add esp, 4
push 1
lea edi, [ebp - 0x4f8]
lea ecx, [ebp - 0x2ff0]
call fcn.004744b0
add esp, 4
cmp byte [0x4c3d78], bl
jne 0x47498b
movsx edx, byte [ebp - 0x4f8]
push edx
call fcn.0047e4df
add esp, 4
test eax, eax
jne 0x47494f
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.0047e4df
add esp, 4
test eax, eax
je 0x47498b
lea ecx, [ebp - 0x4f8]
push ecx
push 0x400
push 0x4c3d78
call fcn.0047f590
add esp, 0xc
lea edx, [ebp - 0x8e0]
push edx
push 0x400
push 0x4c4178
call fcn.0047f590
add esp, 0xc
mov dword [ebp - 0x3824], 1
push 0x2710
lea eax, [ebp - 0x2ff0]
push ebx
push eax
call fcn.00483260
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 0x4749d0
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 0x474814
lea eax, [ebp - 0xa8]
push eax
call fcn.004059f0
mov dword [ebp - 4], 7
mov edi, dword [ebp - 0x3824]
push edi
push ecx
lea ecx, [ebp - 0xa8]
push str.bRet:
push ecx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00468250
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.00407f60
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.00407f60
mov byte [ebp - 4], 9
lea edx, [ebp - 0x3820]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.00405af0
mov byte [ebp - 4], 0xa
push eax
push 0x26b
push 3
call fcn.004061f0
push eax
lea edx, [ebp - 0x37f8]
lea ecx, [ebp - 0x37dc]
call fcn.00462280
mov byte [ebp - 4], 9
cmp dword [ebp - 0x380c], 8
jb 0x474ac3
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.0047bd91
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 0x474af8
mov eax, dword [ebp - 0x37dc]
push eax
call fcn.0047bd91
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 0x474b26
mov ecx, dword [ebp - 0x37f8]
push ecx
call fcn.0047bd91
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 0x474b93
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
push eax
call fcn.0047bd91
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.00405560
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.0047af85
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.0047bd9c
mov esp, ebp
pop ebp
ret