Function at 0x651422f0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x651520af
mov eax, dword fs:[0]
push eax
sub esp, 0xc5c
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0xc58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, esp
push eax
lea eax, [esp + 0xc70]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc80]
mov ecx, dword [esp + 0xc84]
mov edx, dword [esp + 0xc88]
mov dword [esp + 0x18], eax
xor al, al
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x17], al
or edi, 0xffffffff
lea esp, [esp]
cmp al, bl
jne 0x651425a9
push 0x100
lea eax, [esp + 0x370]
push ebx
push eax
call sub.MSVCR80.dll_memset
push ebp
push str..PhysicalDrive_d
lea ecx, [esp + 0x380]
push 0xff
push ecx
call fcn.65142d00
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x384]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x65142599
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
push 0x800
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x470]
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x800
lea edx, [esp + 0x478]
push edx
push 0xc
lea eax, [esp + 0x74]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x6514258c
push 0xff
lea ecx, [esp + 0x71]
push ebx
push ecx
mov byte [esp + 0x78], bl
call sub.MSVCR80.dll_memset
push 0xff
lea edx, [esp + 0x17d]
push ebx
push edx
mov byte [esp + 0x184], bl
call sub.MSVCR80.dll_memset
push 0xff
lea eax, [esp + 0x289]
push ebx
push eax
mov byte [esp + 0x290], bl
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x4a0]
lea ecx, [esp + 0x190]
push ecx
push ebx
push edx
lea eax, [esp + 0x49c]
push eax
call fcn.651419c0
mov edx, dword [esp + 0x4b4]
lea ecx, [esp + 0x2a0]
push ecx
push ebx
push edx
lea eax, [esp + 0x4ac]
push eax
call fcn.651419c0
mov edx, dword [esp + 0x4c8]
add esp, 0x44
lea ecx, [esp + 0x6c]
push ecx
push 1
push edx
lea eax, [esp + 0x478]
push eax
call fcn.651419c0
movsx ecx, byte [esp + 0x7c]
push ecx
call dword [sym.imp.MSVCR80.dll_isalnum]
add esp, 0x14
test eax, eax
jne 0x651424e1
movsx edx, byte [esp + 0x7f]
push edx
call dword [sym.imp.MSVCR80.dll_isalnum]
add esp, 4
test eax, eax
je 0x65142592
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0xc7c], ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x28]
mov dword [esp + 0xc78], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.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 + 0xc7c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x28]
mov dword [esp + 0xc78], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x26c]
push edx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.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 + 0xc7c], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x44]
mov dword [esp + 0xc78], edi
call dword [sym.imp.MSVCP80.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 0x65142592
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
add ebp, 1
cmp ebp, 0x10
jl 0x65142360
mov ecx, dword [esp + 0xc70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc58]
xor ecx, esp
call fcn.6514af96
add esp, 0xc68
ret