Function at 0x10018be0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x100343b4
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x1003d090]
xor eax, esp
mov dword [esp + 0xc5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003d090]
xor eax, esp
push eax
lea eax, [esp + 0xc74]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc84]
mov dword [esp + 0x1c], eax
xor al, al
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x17], al
mov dword [esp + 0x18], edi
or ebp, 0xffffffff
nop
cmp al, bl
jne 0x10018e8c
push 0x100
lea eax, [esp + 0x374]
push ebx
push eax
call sub.MSVCR90.dll_memset
push edi
push str..PhysicalDrive_d
push ebp
lea ecx, [esp + 0x388]
push 0xff
push ecx
call dword [sym.imp.MSVCR90.dll__snprintf_s]
add esp, 0x20
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x388]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
je 0x10018e7a
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
push 0x800
mov dword [esp + 0x70], eax
lea eax, [esp + 0x474]
push ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x800
lea edx, [esp + 0x47c]
push edx
push 0xc
lea eax, [esp + 0x78]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10018e69
push 0xff
lea ecx, [esp + 0x75]
push ebx
push ecx
mov byte [esp + 0x7c], bl
call sub.MSVCR90.dll_memset
push 0xff
lea edx, [esp + 0x281]
push ebx
push edx
mov byte [esp + 0x288], bl
call sub.MSVCR90.dll_memset
push 0xff
lea eax, [esp + 0x18d]
push ebx
push eax
mov byte [esp + 0x194], bl
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x4a4]
push ebx
lea edi, [esp + 0x298]
lea ecx, [esp + 0x498]
call fcn.10018550
mov eax, dword [esp + 0x4ac]
push ebx
lea edi, [esp + 0x19c]
lea ecx, [esp + 0x49c]
call fcn.10018550
mov eax, dword [esp + 0x4b4]
push 1
lea edi, [esp + 0xa0]
lea ecx, [esp + 0x4a0]
call fcn.10018550
movsx ecx, byte [esp + 0xa0]
mov edi, dword [sym.imp.MSVCR90.dll_isalnum]
push ecx
call edi
add esp, 0x34
test eax, eax
jne 0x10018dbe
movsx edx, byte [esp + 0x83]
push edx
call edi
add esp, 4
test eax, eax
je 0x10018e6f
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x1c]
push eax
mov dword [esp + 0xc80], ebx
call dword [0x1003519c]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc7c], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0xc80], 1
call dword [0x1003519c]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc7c], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x170]
push edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0xc80], 2
call dword [0x1003519c]
lea ecx, [esp + 0x48]
mov dword [esp + 0xc7c], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x17], 1
jmp 0x10018e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x17]
inc edi
cmp edi, 0x10
mov dword [esp + 0x18], edi
jl 0x10018c40
mov ecx, dword [esp + 0xc74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc5c]
xor ecx, esp
call fcn.10031c98
add esp, 0xc6c
ret