Function at 0x40785b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov dword [ebp - 0x154], ecx
mov ecx, dword [ebp - 0x154]
call dword [sym.imp.pblcdlg.dll_protected:_void___thiscall_CSingleEleDoc::constructor_void_]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x154]
mov dword [eax], 0x479408
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x914], 0
mov dword [ecx + 0x918], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
push 0x67
push 0x65
push 0x72
push 0x2e
push 0x64
push 0x79
push 0x63
push 0x74
push 0x77
push 0x487448
lea edx, [ebp - 0x44]
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x2c
push 0x100
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ebp + ecx - 0x145]
cmp edx, 0x5c
jne 0x407974
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x148]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::CString
jmp 0x407a11
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push 0x5c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x14c]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x150]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
call fcn.00471b8e
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x14]
call fcn.00407160
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x407a5a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x407a7e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret