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

Disassembly:
push ebp
sub esp, 0xe34
lea ebp, [esp - 4]
mov eax, dword [0x100ce038]
xor eax, ebp
mov dword [ebp + 0xe34], eax
push 0x2c
mov eax, 0x1006cccb
call fcn.1006c23a
mov eax, dword [ebp + 0xe40]
mov ebx, dword [ebp + 0xe44]
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
fldz
lea ecx, [ebp - 0x24]
fstp qword [ebx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [0x10085f84]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
cmp byte [ebp + 0xe48], 0
jne 0x100048e1
xor eax, eax
push 0x206
mov word [ebp + 0xc00], ax
lea eax, [ebp + 0xc02]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp + 0xc00]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp + 0x800]
push eax
lea eax, [ebp + 0xa00]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0xe28]
push eax
lea eax, [ebp + 0xc00]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
lea eax, [ebp + 0xe28]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_4]
mov dword [ebp - 0x20], 0x41
mov ecx, dword [ebp - 0x20]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x2c]
test ecx, eax
je 0x100049ef
mov eax, dword [0x10088390]
mov dword [ebp + 0xe18], eax
mov eax, dword [0x10088394]
movzx ecx, word [ebp - 0x20]
mov dword [ebp + 0xe1c], eax
xor eax, eax
lea edi, [ebp + 0xe20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x10088398
lea edi, [ebp + 0xe08]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
cmp byte [ebp + 0xe48], 0
lea edi, [ebp + 0xe0e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp + 0xe18], cx
mov word [ebp + 0xe08], cx
jne 0x1000496b
lea eax, [ebp + 0xe08]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x100049ed
lea eax, [ebp + 0xe18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10004982
cmp eax, 2
jne 0x100049ed
mov eax, 0x100
push eax
lea ecx, [ebp + 0xa00]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x800]
push eax
lea eax, [ebp + 0xe18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x100049ed
lea eax, [ebp + 0xe28]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp + 0xe18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
adc dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xe28]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xe2c]
adc dword [ebp - 0x18], eax
cmp byte [ebp + 0xe48], 0
je 0x100049fe
xor esi, esi
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x5a
jbe 0x100048e8
jmp 0x10004a00
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0xe28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, SysReAllocString
and eax, ecx
mov dword [ebp + 0xe2c], eax
fild qword [ebp + 0xe28]
mov eax, SysReAllocStringLen
and dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
fild qword [ebp - 0x1c]
mov dword [ebp + 0xe28], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
and dword [ebp - 0x10], eax
fchs
faddp st(1)
and edx, ecx
mov dword [ebp + 0xe2c], edx
mov dword [ebp - 0x14], esi
fmul qword [0x1009dfd8]
mov esi, dword [ebp - 0x30]
fild qword [ebp + 0xe28]
mov ecx, esi
fild qword [ebp - 0x14]
fchs
faddp st(1)
fdivp st(1)
fstp qword [ebx]
call dword [0x10085f84]
mov ecx, esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
fld qword [ebx]
push ecx
push ecx
fstp qword [esp]
push str._0.2f__
push esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe34]
xor ecx, ebp
call fcn.1006b19e
add ebp, 0xe38
leave
ret