Function at 0x10076310
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de051
mov eax, dword fs:[0]
push eax
mov eax, 0x3824
call fcn.100b3af0
mov eax, dword [0x1010e07c]
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.100042d0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xa8]
push 0x100f6d90
push eax
call fcn.10007530
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.100065d0
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.100065d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3820]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.100043f0
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.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [ebp - 4], 2
cmp dword [ebp - 0x380c], 8
jb 0x10076413
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.100b2678
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 0x1007644c
mov eax, dword [ebp - 0x37f8]
push eax
call fcn.100b2678
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 0x10076478
mov ecx, dword [ebp - 0x37dc]
push ecx
call fcn.100b2678
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.10004450
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.100b1bb9
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.10077830
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 0x100766cc
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.100b2ed0
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 0x100766bf
mov eax, dword [ebp - 0x2fe4]
push ebx
lea edi, [ebp - 0x37c0]
lea ecx, [ebp - 0x2ff0]
call fcn.100761a0
mov eax, dword [ebp - 0x2fe0]
add esp, 4
push ebx
lea edi, [ebp - 0x8e0]
lea ecx, [ebp - 0x2ff0]
call fcn.100761a0
mov eax, dword [ebp - 0x2fdc]
add esp, 4
push ebx
lea edi, [ebp - 0x33d8]
lea ecx, [ebp - 0x2ff0]
call fcn.100761a0
mov eax, dword [ebp - 0x2fd8]
add esp, 4
push 1
lea edi, [ebp - 0x4f8]
lea ecx, [ebp - 0x2ff0]
call fcn.100761a0
add esp, 4
cmp byte [0x10112da0], bl
jne 0x10076680
movsx edx, byte [ebp - 0x4f8]
push edx
call fcn.100b40b5
add esp, 4
test eax, eax
jne 0x10076644
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.100b40b5
add esp, 4
test eax, eax
je 0x10076680
lea ecx, [ebp - 0x4f8]
push ecx
push 0x400
push 0x10112da0
call fcn.100b6850
add esp, 0xc
lea edx, [ebp - 0x8e0]
push edx
push 0x400
push 0x101131a0
call fcn.100b6850
add esp, 0xc
mov dword [ebp - 0x3824], 1
push 0x2710
lea eax, [ebp - 0x2ff0]
push ebx
push eax
call fcn.100b2ed0
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 0x100766c5
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 0x10076509
push 1
push 2
lea ecx, [ebp - 0xa8]
call fcn.100042d0
mov dword [ebp - 4], 7
mov edi, dword [ebp - 0x3824]
push edi
push ecx
lea eax, [ebp - 0xa8]
push str.bRet:
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10014310
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.100065d0
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.100065d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3820]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.100043f0
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.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [ebp - 4], 9
cmp dword [ebp - 0x380c], 8
jb 0x100767be
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.100b2678
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 0x100767f3
mov eax, dword [ebp - 0x37dc]
push eax
call fcn.100b2678
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 0x10076821
mov ecx, dword [ebp - 0x37f8]
push ecx
call fcn.100b2678
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 0x1007688e
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
push eax
call fcn.100b2678
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.10003e80
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.100b1bb9
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.100b2b2c
mov esp, ebp
pop ebp
ret