Function at 0x4394a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b53e1
mov eax, dword fs:[0]
push eax
mov eax, 0x3824
call fcn.004915a0
mov eax, dword [0x4ff1a0]
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
push 1
push 2
lea ecx, [ebp - 0xa8]
call fcn.00413cc0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xa8]
push str.ReadPhysicalDriveInNTWithZeroRights_START.
push eax
call fcn.00416b90
add esp, 8
push 0x23
mov esi, 0xf
push 0x4e2e78
lea ecx, [ebp - 0x37dc]
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37cc], ebx
mov byte [ebp - 0x37dc], bl
call fcn.0040ebe0
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.0040ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3820]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00413de0
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x37dc]
push edx
push 0x209
lea eax, [ebp - 0x37f8]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [ebp - 4], 2
cmp dword [ebp - 0x380c], 8
jb 0x4395a3
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.00490458
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 0x4395dc
mov eax, dword [ebp - 0x37f8]
push eax
call fcn.00490458
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 0x439608
mov ecx, dword [ebp - 0x37dc]
push ecx
call fcn.00490458
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.00413e40
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.0048fc10
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.0043a9c0
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 0x43985c
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.004911e0
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 0x43984f
mov eax, dword [ebp - 0x2fe4]
push ebx
lea edi, [ebp - 0x37c0]
lea ecx, [ebp - 0x2ff0]
call fcn.00439330
mov eax, dword [ebp - 0x2fe0]
add esp, 4
push ebx
lea edi, [ebp - 0x8e0]
lea ecx, [ebp - 0x2ff0]
call fcn.00439330
mov eax, dword [ebp - 0x2fdc]
add esp, 4
push ebx
lea edi, [ebp - 0x33d8]
lea ecx, [ebp - 0x2ff0]
call fcn.00439330
mov eax, dword [ebp - 0x2fd8]
add esp, 4
push 1
lea edi, [ebp - 0x4f8]
lea ecx, [ebp - 0x2ff0]
call fcn.00439330
add esp, 4
cmp byte [0x502e28], bl
jne 0x439810
movsx edx, byte [ebp - 0x4f8]
push edx
call fcn.00492bed
add esp, 4
test eax, eax
jne 0x4397d4
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.00492bed
add esp, 4
test eax, eax
je 0x439810
lea ecx, [ebp - 0x4f8]
push ecx
push 0x400
push 0x502e28
call fcn.00493c3c
add esp, 0xc
lea edx, [ebp - 0x8e0]
push edx
push 0x400
push 0x503228
call fcn.00493c3c
add esp, 0xc
mov dword [ebp - 0x3824], 1
push 0x2710
lea eax, [ebp - 0x2ff0]
push ebx
push eax
call fcn.004911e0
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 0x439855
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 0x439699
push 1
push 2
lea ecx, [ebp - 0xa8]
call fcn.00413cc0
mov dword [ebp - 4], 7
mov edi, dword [ebp - 0x3824]
push edi
push ecx
lea eax, [ebp - 0xa8]
push str.ReadPhysicalDriveInNTWithZeroRights
push eax
call fcn.00416b90
add esp, 0xc
mov ecx, eax
call fcn.0042bde0
push 0x23
mov esi, 0xf
push 0x4e2e78
lea ecx, [ebp - 0x37f8]
mov dword [ebp - 0x37e4], esi
mov dword [ebp - 0x37e8], ebx
mov byte [ebp - 0x37f8], bl
call fcn.0040ebe0
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.0040ebe0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3820]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00413de0
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x37f8]
push edx
push 0x26b
lea eax, [ebp - 0x37dc]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [ebp - 4], 9
cmp dword [ebp - 0x380c], 8
jb 0x43994e
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.00490458
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 0x439983
mov eax, dword [ebp - 0x37dc]
push eax
call fcn.00490458
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 0x4399b1
mov ecx, dword [ebp - 0x37f8]
push ecx
call fcn.00490458
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 0x439a1e
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
push eax
call fcn.00490458
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.00413890
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.0048fc10
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.004911d1
mov esp, ebp
pop ebp
ret