Function at 0x411510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
call fcn.00443248
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00443248
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00443248
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00443248
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x45dbbc]
push 1
mov byte [ebp - 4], 4
call fcn.004339a0
mov ecx, dword [0x45dbbc]
mov ebx, eax
push 1
mov dword [ebp - 0x34], ebx
call fcn.00433950
mov esi, eax
mov ecx, esi
call fcn.00430580
mov ecx, esi
call fcn.004305e0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00437850
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push 0xf198
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::LoadStringA
push 0x45c9d4
lea ecx, [ebp - 0x20]
call fcn.0044327e
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
mov ecx, ebx
call fcn.00438260
cmp eax, 2
je 0x41161e
mov ecx, ebx
call fcn.00438260
cmp eax, 4
je 0x41161e
mov eax, dword [edi + 0x8ac]
mov ecx, ebx
push eax
call fcn.004378d0
jmp 0x4117a2
push 0
push 0x44b97c
lea edx, [ebp - 0x14]
push 0x44b944
push edx
mov ecx, 0x45dbc0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
lea esi, [edi + 0x80c]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4116ad
push 4
push 0x1000
push 0x100
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ebp - 0x14]
mov edi, eax
push ecx
push 5
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x411697
mov edx, dword [ebp - 0x14]
push edi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x5c
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
cmp eax, 0xffffffff
je 0x4116eb
lea edx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x150]
sub edi, ecx
mov eax, ecx
mov dword [ebp - 0x14], esi
mov esi, edi
mov edi, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [edx - 8]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + edx - 0x151], 0x5c
jne 0x411750
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
push ecx
lea eax, [edx + 0x80c]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
jmp 0x41179a
mov ecx, dword [ebp - 0x30]
push 0x45c9ec
lea edx, [ebp - 0x2c]
lea eax, [ecx + 0x80c]
push eax
push edx
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push eax
push edx
mov byte [ebp - 4], 9
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [ebp - 0x20]
mov ecx, ebx
push eax
mov byte [ebp - 4], 0xc
call fcn.00430260
push 1
mov ecx, ebx
call fcn.0043c620
push 0x45c9e4
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, ebx
call fcn.00437910
push 0x804
mov ecx, ebx
call fcn.00437830
mov eax, dword [edi + 0x80c]
mov ecx, ebx
push eax
call fcn.00437930
push 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
push 0xf199
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [ebp - 0x20]
mov ecx, ebx
push edx
call fcn.00437a70
push 0x45c9e0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
or esi, 0xffffffff
cmp eax, esi
je 0x41187d
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
push 0x45c9d8
lea edx, [ebp - 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
jmp 0x411889
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x24]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, ebx
call fcn.00437ff0
mov eax, dword [edi + 0xd4]
mov word [ebp - 0x44], 3
test eax, eax
je 0x4118af
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x3c], eax
jmp 0x4118c3
mov eax, dword [0x45dbe0]
test eax, eax
jne 0x4118bd
mov dword [ebp - 0x3c], eax
jmp 0x4118c3
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
push 1
call fcn.004381e0
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x4118f0
mov edi, dword [edi + 0x570]
push 0
push 0
push 7
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 4
call sub.MFC42.DLL_AfxTryCleanup
mov ecx, ebx
call fcn.004378f0
cmp eax, 0x800a7ff3
jne 0x41194d
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push edx
call fcn.004378d0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], esi
jmp 0x411a25
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret