Function at 0x4063ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fb5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov dword [ebp - 0x27c], ecx
mov ecx, dword [ebp - 0x27c]
call dword [sym.imp.pblcdlg.dll_protected:_void___thiscall_CSingleEleDoc::constructor_void_]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x27c]
mov dword [eax], 0x4643a8
mov ecx, dword [ebp - 0x27c]
mov dword [ecx + 0x910], 0
mov dword [ecx + 0x914], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x16c]
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 0x47125c
lea edx, [ebp - 0x16c]
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x2c
push 3
lea ecx, [ebp - 0x16c]
call fcn.00405d30
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x27c]
mov dword [ecx + 0x270], 3
push 0x100
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx ecx, byte [ebp + eax - 0x26d]
cmp ecx, 0x5c
jne 0x4064f5
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x270]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call sub.MFC42.DLL_CString::CString
jmp 0x406592
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push 0x5c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x274]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x278]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x294], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x294]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x50]
call fcn.0045ecce
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x14]
call fcn.00405d30
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4065e1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x16c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x406689
lea ecx, [ebp - 0x24]
call fcn.0045ec0e
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x168]
call fcn.00405db0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00405d30
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Open
push 0x100
mov eax, dword [ebp - 0x27c]
add eax, 0x91c
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
push 0x100
mov ecx, dword [ebp - 0x27c]
add ecx, 0x91c
push ecx
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx + 0x284]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x16c]
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 - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret