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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410c4a
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.004106b0
mov eax, dword [0x41c028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 0x1268], 0xffffffff
or dword [ebp - 0x1264], 0xffffffff
xor edi, edi
push edi
push edi
push 0x147
push dword [ebx + 0x9c0]
mov dword [ebp - 0x1278], edi
call esi
cmp eax, edi
mov dword [ebp - 0x125c], eax
jl 0x40436f
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_class]
lea eax, [ebp - 0x1254]
push eax
push dword [ebp - 0x125c]
lea ecx, [ebx + 0x9a0]
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 0x404375
mov dword [ebp - 0x125c], edi
push edi
push edi
push 0x146
push dword [ebx + 0x9c0]
call esi
dec eax
mov dword [ebp - 0x1254], eax
js 0x4043ac
jmp 0x404395
mov eax, dword [ebp - 0x1254]
push edi
push eax
push 0x144
push dword [ebx + 0x9c0]
call esi
dec dword [ebp - 0x1254]
jns 0x40438f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x127c], eax
mov dword [ebp - 0x1260], 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 - 0x127c]
test ecx, eax
je 0x40472d
mov eax, dword [0x4142d4]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4142d8]
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, 0x4142dc
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 0x404725
mov eax, pe_nt_image_headers32
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 0x404725
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
xor edi, edi
lea eax, [ebp - 0x246]
push edi
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 - 0x1274]
call dword [0x41372c]
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x1248]
push eax
lea eax, [ebp - 0x3c]
inc esi
push eax
mov dword [ebp - 4], esi
push dword [ebp - 0x1274]
call dword [sym.imp.MSVCR90.dll__wsplitpath]
add esp, 0x14
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_class]
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_class]
lea ecx, [ebp - 0x126c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
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 - 0x126c]
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 - 0x126c]
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 0x4045fe
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x4142e4
lea ecx, [ebp - 0x124c]
call dword [0x413588]
lea eax, [ebp - 0x1254]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4133cc]
push 0x4142e8
lea ecx, [ebp - 0x124c]
call dword [0x413588]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x413588]
push 0x4145bc
lea ecx, [ebp - 0x124c]
call dword [0x413588]
push 0x4145b8
push str.IDS_SYS_DRIVE
lea eax, [ebp - 0x1280]
push eax
mov ecx, 0x41c8e8
call dword [sym.imp.GBOhelper.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, [ebp - 0x124c]
mov byte [ebp - 4], 5
call dword [0x4133cc]
lea ecx, [ebp - 0x1280]
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_____::CStringT_wchar_t_clas]
push 0x4145c4
lea ecx, [ebp - 0x124c]
call dword [0x413588]
mov eax, dword [ebp - 0x1268]
mov dword [ebp - 0x1264], eax
jmp 0x404649
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x4142e4
lea ecx, [ebp - 0x124c]
call dword [0x413588]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x413588]
push 0x4145c4
lea ecx, [ebp - 0x124c]
call dword [0x413588]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x413588]
mov ax, word [ebp - 0x1278]
cmp ax, word [ebp - 0x20]
jne 0x40466f
push edi
push edi
push 0x146
push dword [ebx + 0x9c0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x125c], 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_____::CStringT_wchar_t_class]
push esi
lea ecx, [ebp - 0x124c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
push esi
lea ecx, [ebp - 0x124c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
movzx eax, ax
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]
push dword [ebp - 0x1270]
mov ecx, 0x41ca34
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 0x4046c5
mov byte [ebp - 0x124d], 1
cmp byte [ebp - 0x124d], 0
jne 0x4046d4
inc dword [ebp - 0x1260]
push dword [ebp - 0x124c]
lea eax, [ebx + 0x9a0]
call fcn.00404876
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 - 0x126c]
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 - 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]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
inc dword [ebp - 0x1258]
cmp dword [ebp - 0x1258], 0x5a
jbe 0x4043cf
cmp byte [ebp - 0x124d], 0
push edi
jne 0x404762
cmp dword [ebp - 0x1264], edi
jl 0x40475a
push dword [ebp - 0x1264]
jmp 0x404768
push dword [ebp - 0x125c]
jmp 0x404768
push dword [ebp - 0x1260]
push 0x14e
push dword [ebx + 0x9c0]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fde4
leave
ret