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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x418117
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x147c
call fcn.004152d0
mov eax, dword [0x42b028]
xor eax, esp
mov dword [esp + 0x1478], eax
push ebx
push esi
push edi
mov eax, dword [0x42b028]
xor eax, esp
push eax
lea eax, [esp + 0x1490]
mov dword fs:[0], eax
mov esi, dword [0x42bde0]
mov edi, ecx
add esi, 0x1504
xor eax, eax
mov dword [esp + 0x20], edi
call fcn.00405d1e
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
or dword [esp + 0x2c], 0xffffffff
or dword [esp + 0x28], 0xffffffff
xor esi, esi
push esi
push esi
push 0x147
push dword [edi + 0x1bc]
mov dword [esp + 0x40], esi
call ebx
cmp eax, esi
mov dword [esp + 0x1c], eax
jl 0x406c07
lea ecx, [esp + 0x14]
call dword [0x419844]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
lea ecx, [edi + 0x19c]
mov dword [esp + 0x14a0], esi
call sub.mfc90u.dll_CComboBox::GetLBText
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
or dword [esp + 0x1498], 0xffffffff
movzx eax, ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x406c0b
mov dword [esp + 0x1c], esi
push esi
push esi
push 0x146
push dword [edi + 0x1bc]
call ebx
dec eax
mov dword [esp + 0x14], eax
js 0x406c3c
jmp 0x406c27
mov eax, dword [esp + 0x14]
push esi
push eax
push 0x144
push dword [edi + 0x1bc]
call ebx
dec dword [esp + 0x14]
jns 0x406c23
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0x41
mov ecx, dword [esp + 0x18]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [esp + 0x3c]
test ecx, eax
je 0x406fbd
mov eax, dword [0x41fa74]
mov dword [esp + 0x50], eax
mov eax, dword [0x41fa78]
movzx ecx, word [esp + 0x18]
mov dword [esp + 0x54], eax
xor eax, eax
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x41fa7c
lea edi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [esp + 0x66]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x50]
push eax
mov word [esp + 0x54], cx
mov word [esp + 0x64], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x406fb7
mov eax, 0x100
push eax
lea ecx, [esp + 0x888]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x406fb7
push esi
lea eax, [esp + 0x48]
push eax
push esi
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [0x42bdec]
mov dword [esp + 0x38], eax
test eax, eax
jl 0x406fe3
lea edi, [eax + 1]
mov esi, 0x42bde4
call fcn.00405b7b
mov ax, word [esp + 0x50]
mov ecx, dword [0x42bde8]
mov edx, dword [esp + 0x38]
mov word [ecx + edx*2], ax
push 0x100
lea eax, [esp + 0x688]
push eax
push 0x400
push dword [esp + 0x54]
push dword [esp + 0x54]
call dword [sym.imp.K9PCUhelper.dll_int___cdecl_BytesToString_unsigned_long_long_unsigned___int64___unsigned_int__wchar_t___unsigned_int_]
add esp, 0x14
xor eax, eax
push 0x206
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call dword [0x419724]
lea eax, [esp + 0xa84]
push eax
lea eax, [esp + 0x488]
push eax
lea eax, [esp + 0xc8c]
push eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x14a8], 1
push dword [esp + 0x44]
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
lea ecx, [esp + 0x10]
call dword [0x419844]
lea ecx, [esp + 0x14]
call dword [0x419844]
lea ecx, [esp + 0x24]
call dword [0x419844]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x149c], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
push dword [esp + 0x24]
inc dword [esp + 0x30]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
lea ecx, [esp + 0x10]
test eax, eax
jne 0x406ed3
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x41fa84
lea ecx, [esp + 0x14]
call dword [0x4196f4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [0x419708]
push 0x41fa88
lea ecx, [esp + 0x14]
call dword [0x4196f4]
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x14]
call dword [0x4196f4]
push 0x42022c
lea ecx, [esp + 0x14]
call dword [0x4196f4]
push 0x41f998
push str.IDS_SYS_DRIVE
lea eax, [esp + 0x48]
push eax
mov ecx, 0x42bc88
call dword [sym.imp.K9PCUhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CMainApp::LoadStringW_wchar_t_const___wchar_t_const__]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x149c], 5
call dword [0x419708]
lea ecx, [esp + 0x40]
mov byte [esp + 0x1498], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x420234
lea ecx, [esp + 0x14]
call dword [0x4196f4]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jmp 0x406f18
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x41fa84
lea ecx, [esp + 0x14]
call dword [0x4196f4]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x14]
call dword [0x4196f4]
push 0x420234
lea ecx, [esp + 0x14]
call dword [0x4196f4]
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x14]
call dword [0x4196f4]
mov esi, dword [0x42bde0]
mov edi, dword [esi + 0x150c]
add esi, 0x1504
test edi, edi
jl 0x406fe3
lea eax, [edi + 1]
call fcn.00405d1e
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi*4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ax, word [esp + 0x30]
cmp ax, word [esp + 0x50]
jne 0x406f70
mov eax, dword [esp + 0x20]
push 0
push 0
push 0x146
push dword [eax + 0x1bc]
call ebx
mov dword [esp + 0x1c], eax
push dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push 0
push 0x143
push dword [eax + 0x1bc]
call ebx
lea ecx, [esp + 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]
lea ecx, [esp + 0x14]
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, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
or dword [esp + 0x1498], 0xffffffff
lea ecx, [esp + 0x34]
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 edi, dword [esp + 0x20]
xor esi, esi
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x5a
jbe 0x406c4e
push 0x42bdf8
call fcn.00410c89
cmp dword [esp + 0x28], esi
push esi
jl 0x406fe8
push dword [esp + 0x2c]
jmp 0x406fec
call sub.mfc90u.dll_AfxThrowInvalidArgException
push dword [esp + 0x20]
push 0x14e
push dword [edi + 0x1bc]
call ebx
mov ecx, edi
call fcn.004074b4
mov ecx, dword [esp + 0x1490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1478]
xor ecx, esp
call fcn.00414918
mov esp, ebp
pop ebp
ret