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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eb6b
mov eax, dword fs:[0]
push eax
mov eax, 0x1274
call fcn.0040e740
mov eax, dword [0x41f028]
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 + 0x978]
mov dword [ebp - 0x125c], esi
mov dword [ebp - 0x1278], edi
call ebx
cmp eax, edi
mov dword [ebp - 0x1260], eax
jl 0x404340
lea ecx, [ebp - 0x1254]
call dword [0x41676c]
lea eax, [ebp - 0x1254]
push eax
push dword [ebp - 0x1260]
lea ecx, [esi + 0x958]
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 0x404346
mov dword [ebp - 0x1260], edi
push edi
push edi
push 0x146
push dword [esi + 0x978]
call ebx
dec eax
mov dword [ebp - 0x1254], eax
js 0x40437d
jmp 0x404366
mov eax, dword [ebp - 0x1254]
push edi
push eax
push 0x144
push dword [esi + 0x978]
call ebx
dec dword [ebp - 0x1254]
jns 0x404360
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 0x4046dd
mov eax, dword [0x417700]
mov dword [ebp - 0x20], eax
mov eax, dword [0x417704]
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, 0x417708
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 0x4046d5
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 0x4046d5
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 [0x416764]
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 [0x41676c]
lea ecx, [ebp - 0x1254]
call dword [0x41676c]
lea ecx, [ebp - 0x1270]
call dword [0x41676c]
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 0x4045a3
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x417710
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
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 0x417714
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
push 0x4179e4
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
push str.System_Drive
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
push 0x4179ec
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
mov eax, dword [ebp - 0x1268]
mov dword [ebp - 0x1264], eax
jmp 0x4045ee
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x417710
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
push 0x4179ec
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4166b8]
mov ax, word [ebp - 0x1278]
cmp ax, word [ebp - 0x20]
jne 0x404616
mov eax, dword [ebp - 0x125c]
push esi
push esi
push 0x146
push dword [eax + 0x978]
call ebx
mov dword [ebp - 0x1260], eax
lea ecx, [ebp - 0x1274]
call dword [0x41676c]
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 [0x4163e4]
push dword [ebp - 0x1274]
mov ecx, 0x41ff8c
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 0x40466c
mov byte [ebp - 0x124d], 1
cmp byte [ebp - 0x124d], 0
jne 0x40467b
inc dword [ebp - 0x126c]
push dword [ebp - 0x124c]
mov eax, dword [ebp - 0x125c]
push esi
push 0x143
push dword [eax + 0x978]
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 0x4043a0
cmp byte [ebp - 0x124d], 0
push edi
jne 0x404712
cmp dword [ebp - 0x1264], edi
jl 0x40470a
push dword [ebp - 0x1264]
jmp 0x404718
push dword [ebp - 0x1260]
jmp 0x404718
push dword [ebp - 0x126c]
push 0x14e
push dword [esi + 0x978]
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.0040de80
leave
ret