Function at 0x10010b7d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100484e3
call fcn.100464e0
sub esp, 0x94
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 - 0x2c], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebp - 0xd], bl
jne 0x10010d91
mov edx, dword [ebp - 0x2c]
push 1
pop eax
shl eax, cl
test edx, eax
je 0x10010d81
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 0x10010c06
cmp eax, 6
jne 0x10010d81
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 7
lea eax, [ebp - 0xa0]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10010d81
push 0x18
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x30], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push eax
lea eax, [ebp - 0x78]
push 0x18
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x10010d78
push 0x221
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10010d78
lea eax, [ebp - 0x28]
push ebx
push eax
push 0x221
push edi
push 0x21
push edi
push 0x7c088
push dword [ebp - 0x14]
mov byte [edi + 0xa], 0xec
mov dword [ebp - 0x28], ebx
call esi
test eax, eax
je 0x10010d70
mov eax, dword [edi]
lea esi, [edi + 0x10]
cmp esi, ebx
je 0x10010d70
cmp eax, 0x2e
jbe 0x10010d70
push 0x13
push 0xa
lea eax, [ebp - 0x60]
push esi
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_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x60]
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
push 0x1b
lea eax, [ebp - 0x40]
push esi
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], 1
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_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x40]
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
push 0x17
lea eax, [ebp - 0x50]
push esi
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_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x50]
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 edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x1c], ecx
jl 0x10010bce
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret