Function at 0x401a50
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
call esi
lea edx, [esp + 0x20]
push edx
push 0x11
push 0
call esi
mov ecx, dword [esp + 0x18]
push 0x4209
lea eax, [esp + 0x58]
push 0x160
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x104
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
push ebx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edi, 0x4e01dc
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x70]
call sub.MFC42.DLL_CPtrList::AddTail
lea eax, [esp + 0x60]
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
xor esi, esi
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0x37
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_CComboBoxEx::InsertItem
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x28], esi
mov edx, dword [eax]
push 0x20
push esi
push eax
call dword [edx + 0x10]
cmp eax, esi
jne 0x401ccb
jmp 0x401b4f
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push 0
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
cmp eax, 1
je 0x401cc1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401cc1
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x40]
push eax
push edx
mov ecx, esi
call fcn.00499160
lea edx, [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push 0x4c8734
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x14]
cmp eax, 1
mov dword [esp + 0x2c], eax
je 0x401cc1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401cc1
push 0x4209
lea eax, [esp + 0x58]
push 0x160
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x104
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebp
push edx
push eax
mov ecx, esi
call fcn.00499250
test eax, eax
jne 0x401c27
push 0x4e6998
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401c27
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x401cb5
mov edi, 0x4e01dc
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 0x70]
call sub.MFC42.DLL_CPtrList::AddTail
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x60]
lea edx, [esp + 0x30]
mov dword [esp + 0x38], ecx
push edx
mov ecx, esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_CComboBoxEx::InsertItem
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x20]
push ebp
push eax
push ecx
lea ecx, [esi + 0x40]
call fcn.00499250
test eax, eax
je 0x401cb5
mov edx, dword [esp + 0x24]
push edi
push ebp
push edx
mov ecx, esi
call fcn.00401ce0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401b4b
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret