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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410226
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.0040fc40
mov eax, dword [0x41b028]
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 + 0x9b8]
mov dword [ebp - 0x1278], edi
call esi
cmp eax, edi
mov dword [ebp - 0x125c], eax
jl 0x40442c
lea ecx, [ebp - 0x1254]
call dword [0x4127a8]
lea eax, [ebp - 0x1254]
push eax
push dword [ebp - 0x125c]
lea ecx, [ebx + 0x998]
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 0x404432
mov dword [ebp - 0x125c], edi
push edi
push edi
push 0x146
push dword [ebx + 0x9b8]
call esi
dec eax
mov dword [ebp - 0x1254], eax
js 0x404469
jmp 0x404452
mov eax, dword [ebp - 0x1254]
push edi
push eax
push 0x144
push dword [ebx + 0x9b8]
call esi
dec dword [ebp - 0x1254]
jns 0x40444c
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 0x4047ea
mov eax, dword [0x4132c8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4132cc]
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, 0x4132d0
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 0x4047e2
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 0x4047e2
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 [0x41271c]
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 [0x4127a8]
lea ecx, [ebp - 0x1254]
call dword [0x4127a8]
lea ecx, [ebp - 0x126c]
call dword [0x4127a8]
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 0x4046bb
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x4132d8
lea ecx, [ebp - 0x124c]
call dword [0x412578]
lea eax, [ebp - 0x1254]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x4123bc]
push 0x4132dc
lea ecx, [ebp - 0x124c]
call dword [0x412578]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x412578]
push 0x4135ac
lea ecx, [ebp - 0x124c]
call dword [0x412578]
push 0x4135a8
push str.IDS_SYS_DRIVE
lea eax, [ebp - 0x1280]
push eax
mov ecx, 0x41b8e8
call dword [sym.imp.UPCChelper.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 [0x4123bc]
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 0x4135b4
lea ecx, [ebp - 0x124c]
call dword [0x412578]
mov eax, dword [ebp - 0x1268]
mov dword [ebp - 0x1264], eax
jmp 0x404706
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x4132d8
lea ecx, [ebp - 0x124c]
call dword [0x412578]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x412578]
push 0x4135b4
lea ecx, [ebp - 0x124c]
call dword [0x412578]
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x124c]
call dword [0x412578]
mov ax, word [ebp - 0x1278]
cmp ax, word [ebp - 0x20]
jne 0x40472c
push edi
push edi
push 0x146
push dword [ebx + 0x9b8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x125c], eax
lea ecx, [ebp - 0x1270]
call dword [0x4127a8]
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, 0x41ba34
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 0x404782
mov byte [ebp - 0x124d], 1
cmp byte [ebp - 0x124d], 0
jne 0x404791
inc dword [ebp - 0x1260]
push dword [ebp - 0x124c]
lea eax, [ebx + 0x998]
call fcn.00404933
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 0x40448c
cmp byte [ebp - 0x124d], 0
push edi
jne 0x40481f
cmp dword [ebp - 0x1264], edi
jl 0x404817
push dword [ebp - 0x1264]
jmp 0x404825
push dword [ebp - 0x125c]
jmp 0x404825
push dword [ebp - 0x1260]
push 0x14e
push dword [ebx + 0x9b8]
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.0040f372
leave
ret