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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4187a0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x147c
call fcn.00415920
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x1478], eax
push ebx
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x1490]
mov dword fs:[0], eax
mov esi, dword [0x42de4c]
mov edi, ecx
add esi, 0x1524
xor eax, eax
mov dword [esp + 0x20], edi
call fcn.00405d00
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 + 0x1e8]
mov dword [esp + 0x40], esi
call ebx
cmp eax, esi
mov dword [esp + 0x1c], eax
jl 0x406be7
lea ecx, [esp + 0x14]
call dword [0x41a85c]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
lea ecx, [edi + 0x1c8]
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 0x406beb
mov dword [esp + 0x1c], esi
push esi
push esi
push 0x146
push dword [edi + 0x1e8]
call ebx
dec eax
mov dword [esp + 0x14], eax
js 0x406c1c
jmp 0x406c07
mov eax, dword [esp + 0x14]
push esi
push eax
push 0x144
push dword [edi + 0x1e8]
call ebx
dec dword [esp + 0x14]
jns 0x406c03
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 0x406f9d
mov eax, dword [0x420a7c]
mov dword [esp + 0x50], eax
mov eax, dword [0x420a80]
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, 0x420a84
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 0x406f97
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 0x406f97
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 [0x42de58]
mov dword [esp + 0x38], eax
test eax, eax
jl 0x406fc3
lea edi, [eax + 1]
mov esi, 0x42de50
call fcn.00405b5d
mov ax, word [esp + 0x50]
mov ecx, dword [0x42de54]
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.ASOHelper.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 [0x41a924]
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 [0x41a85c]
lea ecx, [esp + 0x14]
call dword [0x41a85c]
lea ecx, [esp + 0x24]
call dword [0x41a85c]
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 0x406eb3
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x420a8c
lea ecx, [esp + 0x14]
call dword [0x41a70c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [0x41a720]
push 0x420a90
lea ecx, [esp + 0x14]
call dword [0x41a70c]
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x14]
call dword [0x41a70c]
push 0x421234
lea ecx, [esp + 0x14]
call dword [0x41a70c]
push 0x4209a0
push str.IDS_SYS_DRIVE
lea eax, [esp + 0x48]
push eax
mov ecx, 0x42dce0
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x149c], 5
call dword [0x41a720]
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 0x42123c
lea ecx, [esp + 0x14]
call dword [0x41a70c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jmp 0x406ef8
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x420a8c
lea ecx, [esp + 0x14]
call dword [0x41a70c]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x14]
call dword [0x41a70c]
push 0x42123c
lea ecx, [esp + 0x14]
call dword [0x41a70c]
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x14]
call dword [0x41a70c]
mov esi, dword [0x42de4c]
mov edi, dword [esi + 0x152c]
add esi, 0x1524
test edi, edi
jl 0x406fc3
lea eax, [edi + 1]
call fcn.00405d00
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 0x406f50
mov eax, dword [esp + 0x20]
push 0
push 0
push 0x146
push dword [eax + 0x1e8]
call ebx
mov dword [esp + 0x1c], eax
push dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push 0
push 0x143
push dword [eax + 0x1e8]
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 0x406c2e
push 0x42de64
call fcn.00410d13
cmp dword [esp + 0x28], esi
push esi
jl 0x406fc8
push dword [esp + 0x2c]
jmp 0x406fcc
call sub.mfc90u.dll_AfxThrowInvalidArgException
push dword [esp + 0x20]
push 0x14e
push dword [edi + 0x1e8]
call ebx
mov ecx, edi
call fcn.00407499
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.00414f74
mov esp, ebp
pop ebp
ret