Function at 0x1001092c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100484bb
call fcn.100464e0
sub esp, 0x2c8
push ebx
push esi
push edi
push 9
pop ecx
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0xa0]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0xd], bl
mov word [ebp - 0x24], 0x20
mov word [ebp - 0x22], 0x3a
mov word [ebp - 0x20], 0x5c
mov word [ebp - 0x1e], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
or edi, 0xffffffff
cmp byte [ebp - 0xd], bl
jne 0x10010b6b
push 1
mov edx, dword [ebp - 0x30]
pop esi
mov eax, esi
shl eax, cl
test edx, eax
je 0x10010b5b
lea eax, [ebp - 0x24]
add ecx, 0x41
push eax
mov word [ebp - 0x24], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100109ba
cmp eax, 6
jne 0x10010b5b
mov eax, dword [ebp - 0x18]
push ebx
add eax, 0x30
inc dword [ebp - 0x18]
push ebx
push 3
mov word [ebp - 0x7e], ax
push ebx
push 3
lea eax, [ebp - 0xa0]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x10010b5b
push 0x18
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x28], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x58]
push 0x18
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov al, byte [ebp - 0x55]
cmp al, bl
jbe 0x10010b52
mov cl, byte [ebp - 0x14]
push 0x21
shr al, cl
push ebx
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0xc4]
push eax
call sub.MSVCRT.dll_memset
push 0x210
lea eax, [ebp - 0x2d4]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2d4]
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x1c]
call fcn.10010570
add esp, 0x30
test al, al
je 0x10010b52
lea eax, [ebp - 0x2c4]
test eax, eax
je 0x10010b52
cmp dword [ebp - 0x2d4], 0x2e
jbe 0x10010b52
push 0x13
lea eax, [ebp - 0x2c4]
push 0xa
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100105e4
add esp, 0x10
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [ebp - 4], ebx
push dword [ecx]
mov ecx, dword [ebp + 8]
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_]
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0x2e
lea eax, [ebp - 0x2c4]
push 0x1b
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100105e4
add esp, 0x10
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [ebp - 4], esi
push dword [ecx]
mov ecx, dword [ebp + 0xc]
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_]
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0x1a
lea eax, [ebp - 0x2c4]
push 0x17
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.100105e4
add esp, 0x10
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [ebp - 4], 2
push dword [ecx]
mov ecx, dword [ebp + 0x10]
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_]
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], edi
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
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x14], ecx
jl 0x10010980
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret