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

Disassembly:
push 0xe7c
mov eax, 0x1005f869
call fcn.10059743
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 [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
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_3]
push 1
push dword [ebp - 0xe54]
push str.system_driver
push esi
call fcn.1004a7b3
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 0x10049805
mov eax, dword [0x1006eefc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1006ef00]
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, 0x1006ef04
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 0x10049650
cmp eax, 2
jne 0x10049805
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 0x10049805
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 [0x1006ce70]
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_class]
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_class]
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 [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
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 [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
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.1004a7b3
mov eax, esi
call fcn.10049c5d
push edi
push dword [ebp - 0xe64]
push str.drive_name
push esi
call fcn.1004a7b3
push edi
push dword [ebp - 0xe58]
push str.total_size_in_bytes
push esi
call fcn.1004a7b3
push edi
push dword [ebp - 0xe5c]
push str.free_space_in_bytes
push esi
call fcn.1004a7b3
push edi
push dword [ebp - 0xe60]
push str.used_space_in_bytes
push esi
call fcn.1004a7b3
call fcn.10049c87
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 0x100495e2
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.100597c6
ret