Function at 0x10096390
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x100a7c54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4c
push ebx
push ebp
xor ebx, ebx
xor al, al
xor ebp, ebp
push esi
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebp
cmp al, bl
jne 0x1009675a
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35c]
push ebp
rep stosd dword es:[edi], eax
push 0x10136834
lea eax, [esp + 0x364]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x35c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
je 0x10096748
xor edx, edx
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x45c]
mov dword [esp + 0x40], edx
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], edx
push eax
lea ecx, [esp + 0x464]
mov dword [esp + 0x50], edx
push 0x800
push ecx
lea edx, [esp + 0x50]
push 0xc
push edx
push 0x2d1400
push esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1009673b
lea eax, [esp + 0x45c]
test eax, eax
je 0x10096741
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x46c]
lea ecx, [esp + 0x25c]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
push ebx
lea eax, [esp + 0x464]
push edx
push eax
call fcn.100959e0
mov edx, dword [esp + 0x480]
lea ecx, [esp + 0x16c]
push ecx
push ebx
lea eax, [esp + 0x474]
push edx
push eax
call fcn.100959e0
mov edx, dword [esp + 0x494]
lea ecx, [esp + 0x7c]
push ecx
push 1
lea eax, [esp + 0x484]
push edx
push eax
call fcn.100959e0
movsx ecx, byte [esp + 0x8c]
mov edi, dword [sym.imp.MSVCRT.dll_isalnum]
push ecx
call edi
add esp, 0x34
test eax, eax
jne 0x10096548
movsx edx, byte [esp + 0x6f]
push edx
call edi
add esp, 4
test eax, eax
je 0x10096741
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x50]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1009659f
mov edi, dword [esp + 0x50]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x4c]
mov dword [esp + 0xc64], ebx
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0xc70]
push ebx
push edx
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0xc68], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x25c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10096635
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x18]
mov dword [esp + 0xc64], 1
mov edx, dword [ecx]
mov ecx, dword [esp + 0xc70]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x1c]
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0xc64], esi
je 0x1009668b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10096682
cmp al, 0xff
je 0x10096682
dec al
mov byte [ecx], al
jmp 0x1009668b
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov cl, byte [esp + 0x13]
lea edi, [esp + 0x15c]
mov byte [esp + 0x28], cl
mov ecx, esi
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x28]
mov dword [esp + 0xc64], 2
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0xc78]
push ebx
push edx
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc64], esi
cmp eax, ebx
je 0x10096720
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10096717
cmp al, 0xff
je 0x10096717
dec al
mov byte [ecx], al
jmp 0x10096720
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x13], 1
jmp 0x10096741
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
inc ebp
cmp ebp, 0x10
mov dword [esp + 0x14], ebp
jl 0x100963bd
mov ecx, dword [esp + 0xc5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc58
ret