Function at 0x4041b6
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ee94
mov eax, dword fs:[0]
push eax
mov eax, 0x1274
call fcn.0040e8e0
mov eax, dword [0x41a028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 0x1268], 0xffffffff
or dword [ebp - 0x1264], 0xffffffff
xor edi, edi
push edi
push edi
mov esi, ecx
push 0x147
push dword [esi + 0x970]
mov dword [ebp - 0x125c], esi
mov dword [ebp - 0x1278], edi
call ebx
cmp eax, edi
mov dword [ebp - 0x1260], eax
jl 0x404274
lea ecx, [ebp - 0x1254]
call dword [0x411784]
lea eax, [ebp - 0x1254]
push eax
push dword [ebp - 0x1260]
lea ecx, [esi + 0x950]
mov dword [ebp - 4], edi
call sub.mfc90u.dll_CComboBox::GetLBText
push edi
lea ecx, [ebp - 0x1254]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
or dword [ebp - 4], 0xffffffff
movzx eax, ax
lea ecx, [ebp - 0x1254]
mov dword [ebp - 0x1278], 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 0x40427a
mov dword [ebp - 0x1260], edi
push edi
push edi
push 0x146
push dword [esi + 0x970]
call ebx
dec eax
mov dword [ebp - 0x1254], eax
js 0x4042b1
jmp 0x40429a
mov eax, dword [ebp - 0x1254]
push edi
push eax
push 0x144
push dword [esi + 0x970]
call ebx
dec dword [ebp - 0x1254]
jns 0x404294
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x1280], eax
mov dword [ebp - 0x126c], edi
mov byte [ebp - 0x124d], 0
mov dword [ebp - 0x1258], 0x41
mov ecx, dword [ebp - 0x1258]
xor eax, eax
add ecx, 0xffffffbf
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x1280]
test ecx, eax
je 0x404611
mov eax, dword [0x4122c8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4122cc]
movzx ecx, word [ebp - 0x1258]
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x4122d0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
push eax
mov word [ebp - 0x20], cx
mov word [ebp - 0x30], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x404609
mov eax, 0x100
push eax
lea ecx, [ebp - 0xa48]
push ecx
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x404609
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x246]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x127c]
call dword [0x4116f8]
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x1248]
push eax
xor edi, edi
lea eax, [ebp - 0x3c]
inc edi
push eax
mov dword [ebp - 4], edi
push dword [ebp - 0x127c]
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
lea ecx, [ebp - 0x124c]
call dword [0x411784]
lea ecx, [ebp - 0x1254]
call dword [0x411784]
lea ecx, [ebp - 0x1270]
call dword [0x411784]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1254]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1270]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push dword [ebp - 0x1270]
inc dword [ebp - 0x1268]
lea ecx, [ebp - 0x1254]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
lea ecx, [ebp - 0x124c]
test eax, eax
jne 0x4044d7
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x4122d8
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
lea eax, [ebp - 0x1254]
push eax
lea ecx, [ebp - 0x124c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 0x4122dc
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
push 0x4125ac
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
push str.System_Drive
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
push 0x4125b4
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
mov eax, dword [ebp - 0x1268]
mov dword [ebp - 0x1264], eax
jmp 0x404522
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x4122d8
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
push 0x4125b4
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4116a4]
mov ax, word [ebp - 0x1278]
cmp ax, word [ebp - 0x20]
jne 0x40454a
mov eax, dword [ebp - 0x125c]
push esi
push esi
push 0x146
push dword [eax + 0x970]
call ebx
mov dword [ebp - 0x1260], eax
lea ecx, [ebp - 0x1274]
call dword [0x411784]
push edi
lea ecx, [ebp - 0x124c]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
push edi
lea ecx, [ebp - 0x124c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
movzx eax, ax
push eax
lea ecx, [ebp - 0x1274]
call dword [0x4113cc]
push dword [ebp - 0x1274]
mov ecx, 0x41aa30
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x4045a0
mov byte [ebp - 0x124d], 1
cmp byte [ebp - 0x124d], 0
jne 0x4045af
inc dword [ebp - 0x126c]
push dword [ebp - 0x124c]
mov eax, dword [ebp - 0x125c]
push esi
push 0x143
push dword [eax + 0x970]
call ebx
lea ecx, [ebp - 0x1274]
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 - 0x1270]
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 - 0x1254]
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 - 0x124c]
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 [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x127c]
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 esi, dword [ebp - 0x125c]
xor edi, edi
inc dword [ebp - 0x1258]
cmp dword [ebp - 0x1258], 0x5a
jbe 0x4042d4
cmp byte [ebp - 0x124d], 0
push edi
jne 0x404646
cmp dword [ebp - 0x1264], edi
jl 0x40463e
push dword [ebp - 0x1264]
jmp 0x40464c
push dword [ebp - 0x1260]
jmp 0x40464c
push dword [ebp - 0x126c]
push 0x14e
push dword [esi + 0x970]
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e012
leave
ret