Function at 0x10089be0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1a11
mov eax, dword fs:[0]
push eax
mov eax, 0x3824
call fcn.100b63f0
mov eax, dword [0x100eb6ac]
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.10013470
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa8]
push 0x100dad80
push ecx
call fcn.1001c530
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.100191b0
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.100191b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x3820]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.10013570
mov byte [ebp - 4], 3
push eax
push 0x209
push 3
call fcn.10013c70
push eax
lea edx, [ebp - 0x37dc]
lea ecx, [ebp - 0x37f8]
call fcn.10072520
mov byte [ebp - 4], 2
cmp dword [ebp - 0x380c], 8
jb 0x10089cde
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.1009c0c0
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 0x10089d17
mov eax, dword [ebp - 0x37f8]
push eax
call fcn.1009c0c0
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 0x10089d43
mov ecx, dword [ebp - 0x37dc]
push ecx
call fcn.1009c0c0
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.100135d0
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.1009b22d
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.1008b120
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 0x10089f97
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.100a39b0
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 0x10089f8a
mov eax, dword [ebp - 0x2fe4]
push ebx
lea edi, [ebp - 0x37c0]
lea ecx, [ebp - 0x2ff0]
call fcn.10089a70
mov eax, dword [ebp - 0x2fe0]
add esp, 4
push ebx
lea edi, [ebp - 0x8e0]
lea ecx, [ebp - 0x2ff0]
call fcn.10089a70
mov eax, dword [ebp - 0x2fdc]
add esp, 4
push ebx
lea edi, [ebp - 0x33d8]
lea ecx, [ebp - 0x2ff0]
call fcn.10089a70
mov eax, dword [ebp - 0x2fd8]
add esp, 4
push 1
lea edi, [ebp - 0x4f8]
lea ecx, [ebp - 0x2ff0]
call fcn.10089a70
add esp, 4
cmp byte [0x100f06b0], bl
jne 0x10089f4b
movsx edx, byte [ebp - 0x4f8]
push edx
call fcn.1009cbc0
add esp, 4
test eax, eax
jne 0x10089f0f
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.1009cbc0
add esp, 4
test eax, eax
je 0x10089f4b
lea ecx, [ebp - 0x4f8]
push ecx
push 0x400
push 0x100f06b0
call fcn.1009d912
add esp, 0xc
lea edx, [ebp - 0x8e0]
push edx
push 0x400
push 0x100f0ab0
call fcn.1009d912
add esp, 0xc
mov dword [ebp - 0x3824], 1
push 0x2710
lea eax, [ebp - 0x2ff0]
push ebx
push eax
call fcn.100a39b0
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 0x10089f90
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 0x10089dd4
lea eax, [ebp - 0xa8]
push eax
call fcn.10013470
mov dword [ebp - 4], 7
mov edi, dword [ebp - 0x3824]
push edi
push ecx
lea ecx, [ebp - 0xa8]
push 0x100cdbf4
push ecx
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1002a270
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.100191b0
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.100191b0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x3820]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.10013570
mov byte [ebp - 4], 0xa
push eax
push 0x26b
push 3
call fcn.10013c70
push eax
lea edx, [ebp - 0x37f8]
lea ecx, [ebp - 0x37dc]
call fcn.10072520
mov byte [ebp - 4], 9
cmp dword [ebp - 0x380c], 8
jb 0x1008a083
mov ecx, dword [ebp - 0x3820]
push ecx
call fcn.1009c0c0
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 0x1008a0b8
mov eax, dword [ebp - 0x37dc]
push eax
call fcn.1009c0c0
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 0x1008a0e6
mov ecx, dword [ebp - 0x37f8]
push ecx
call fcn.1009c0c0
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 0x1008a153
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
push eax
call fcn.1009c0c0
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.100127c0
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.1009b22d
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.1009c0cb
mov esp, ebp
pop ebp
ret