Function at 0x10010da3
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x1004850b
call fcn.100464e0
sub esp, 0xb84
push ebx
push esi
push edi
push 9
pop ecx
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0x90]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0xd], bl
mov word [ebp - 0x20], 0x20
mov word [ebp - 0x1e], 0x3a
mov word [ebp - 0x1c], 0x5c
mov word [ebp - 0x1a], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0xd], bl
jne 0x1001109d
push 1
mov edx, dword [ebp - 0x28]
pop esi
mov eax, esi
shl eax, cl
test edx, eax
je 0x1001108d
lea eax, [ebp - 0x20]
add ecx, 0x41
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10010e2e
cmp eax, 6
jne 0x1001108d
mov eax, dword [ebp - 0x14]
push ebx
add eax, 0x30
inc dword [ebp - 0x14]
push ebx
push 3
mov word [ebp - 0x6e], ax
push ebx
push 3
lea eax, [ebp - 0x90]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x1001108d
push 0xc
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x2c], ebx
call sub.MSVCRT.dll_memset
mov edi, 0x800
lea eax, [ebp - 0xb90]
push edi
push ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 0xb90]
push edi
push eax
lea eax, [ebp - 0x38]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001107e
lea eax, [ebp - 0xb90]
test eax, eax
je 0x10011084
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x18f]
mov byte [ebp - 0x190], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x28f]
mov byte [ebp - 0x290], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x38f]
mov byte [ebp - 0x390], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x290]
push eax
push ebx
push dword [ebp - 0xb80]
lea eax, [ebp - 0xb90]
push eax
call fcn.100106e1
lea eax, [ebp - 0x390]
push eax
push ebx
push dword [ebp - 0xb7c]
lea eax, [ebp - 0xb90]
push eax
call fcn.100106e1
lea eax, [ebp - 0x190]
push eax
push esi
push dword [ebp - 0xb78]
lea eax, [ebp - 0xb90]
push eax
call fcn.100106e1
movsx eax, byte [ebp - 0x190]
mov edi, dword [sym.imp.MSVCRT.dll_isalnum]
push eax
call edi
add esp, 0x34
test eax, eax
jne 0x10010f78
movsx eax, byte [ebp - 0x17d]
push eax
call edi
test eax, eax
pop ecx
je 0x10011084
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x58], 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 eax, [ebp - 0x190]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x58]
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]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp - 0x58]
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_]
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x58]
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 [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], 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 eax, [ebp - 0x290]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x48]
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]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [eax]
lea eax, [ebp - 0x48]
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_]
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x48]
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 [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x68], 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 eax, [ebp - 0x390]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp - 0x68]
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]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x68]
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_]
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x68]
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 byte [ebp - 0xd], 1
jmp 0x10011084
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x18], ecx
jl 0x10010df4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret