Function at 0x1021867
Capabilities:
Get disk information

Disassembly:
push 0x70
mov eax, 0x102fdab
call fcn.0102d2d6
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor eax, eax
lea edi, [ebp - 0xd]
stosb byte es:[edi], al
sub esp, 0x10
lea edi, [ebp - 0xe]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xd]
push eax
push 0x1008e1c
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x1e9
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0xe]
push eax
mov esi, 0x1002b10
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.01011355
xor eax, eax
lea edi, [ebp - 0xf]
stosb byte es:[edi], al
lea eax, [ebp - 0xf]
push eax
push ebx
push 0x104
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_int__unsigned_short_int__class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.010110b2
mov edi, dword [eax + 8]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::length_void_const]
push eax
push edi
lea ecx, [ebp + 8]
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push eax
call edi
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 3
call fcn.01011176
test bl, bl
je 0x1021a5b
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::resize_unsigned_int__unsigned_short_int_]
cmp dword [ebp - 0x18], 0
je 0x102198d
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x58]
call fcn.010110b2
mov ebx, dword [eax + 8]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], 1
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::length_void_const]
push eax
push ebx
lea ecx, [ebp + 8]
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call edi
test eax, eax
je 0x102198d
xor bl, bl
jmp 0x102198f
mov bl, 1
test byte [ebp - 0x1c], 1
mov dword [ebp - 4], 3
je 0x10219a4
lea ecx, [ebp - 0x58]
call fcn.01011176
test bl, bl
je 0x1021a5b
xor eax, eax
lea edi, [ebp + 0x1b]
stosb byte es:[edi], al
lea edi, [ebp - 0x10]
stosb byte es:[edi], al
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp + 0x1b]
push eax
push 0x1008db0
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x10]
push eax
push 0x1008e1c
mov byte [ebp - 4], 6
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x1f9
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x11]
push eax
push esi
mov byte [ebp - 4], 7
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 3
call fcn.010111d2
add esp, 0x40
xor bl, bl
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.01011422
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov al, bl
call fcn.0102d387
ret 0x14
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
mov edi, eax
jmp 0x1021abc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1021a7e
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x44]
mov esi, eax
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::length_void_const]
cmp eax, esi
jbe 0x1021aa5
push edi
lea ecx, [ebp - 0x44]
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1021aaa
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x1021a79
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.msvcp60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov bl, 1
jmp 0x1021a2b