Function at 0x10051ec4
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push 0xe7c
mov eax, 0x10072d4f
call fcn.1006c2a3
mov esi, ecx
mov dword [ebp - 0xe7c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [ebp - 0xe54]
mov dword [ebp - 0xe78], eax
call dword [0x10085f84]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xe54]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0xe4c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xe54]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_4]
push 1
push dword [ebp - 0xe54]
push str.system_driver
push esi
call fcn.1005313c
mov ebx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov dword [ebp - 0xe50], 0x41
mov ecx, dword [ebp - 0xe50]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [ebp - 0xe78]
test ecx, eax
je 0x100521b2
mov eax, dword [0x10088390]
mov dword [ebp - 0x24], eax
mov eax, dword [0x10088394]
movzx ecx, word [ebp - 0xe50]
mov dword [ebp - 0x20], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x10088398
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x3e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], cx
mov word [ebp - 0x44], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10051ffd
cmp eax, 2
jne 0x100521b2
mov eax, 0x100
push eax
lea ecx, [ebp - 0x64c]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x100521b2
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0xe6c]
mov ecx, dword [ebp - 0x30]
mov esi, eax
sub eax, dword [ebp - 0xe6c]
mov dword [ebp - 0xe84], edx
mov edx, dword [ebp - 0xe68]
mov edi, ecx
sbb ecx, edx
mov dword [ebp - 0xe74], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0xe70], ecx
push eax
lea ecx, [ebp - 0xe64]
mov dword [ebp - 0xe80], edx
call dword [0x10085f70]
lea ecx, [ebp - 0xe88]
call dword [0x10085f84]
lea ecx, [ebp - 0xe58]
call dword [0x10085f84]
push edi
push esi
mov esi, str._llu
lea eax, [ebp - 0xe58]
push esi
push eax
mov byte [ebp - 4], 3
call ebx
add esp, 0x10
lea ecx, [ebp - 0xe5c]
call dword [0x10085f84]
push dword [ebp - 0xe80]
lea eax, [ebp - 0xe5c]
push dword [ebp - 0xe84]
mov byte [ebp - 4], 4
push esi
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0xe60]
call dword [0x10085f84]
push dword [ebp - 0xe70]
lea eax, [ebp - 0xe60]
push dword [ebp - 0xe74]
mov byte [ebp - 4], 5
push esi
push eax
call ebx
mov esi, dword [ebp - 0xe7c]
add esp, 0x10
xor edi, edi
inc edi
push edi
push 0
push str.drive_info
push esi
call fcn.1005313c
mov eax, esi
call fcn.100525e6
push edi
push dword [ebp - 0xe64]
push str.drive_name
push esi
call fcn.1005313c
push edi
push dword [ebp - 0xe58]
push str.total_size_in_bytes
push esi
call fcn.1005313c
push edi
push dword [ebp - 0xe5c]
push str.free_space_in_bytes
push esi
call fcn.1005313c
push edi
push dword [ebp - 0xe60]
push str.used_space_in_bytes
push esi
call fcn.1005313c
call fcn.10052610
lea ecx, [ebp - 0xe60]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0xe5c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0xe58]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0xe88]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0xe64]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc dword [ebp - 0xe50]
cmp dword [ebp - 0xe50], 0x5a
jbe 0x10051f8f
lea ecx, [ebp - 0xe54]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1006c326
ret