Function at 0x40d24d
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437724
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CDocument::CDocument
lea edi, [esi + 0x54]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x124], ebp
call sub.MFC42.DLL_CString::CString_1
lea ebx, [esi + 0x58]
mov byte [esp + 0x124], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x5c]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x68]
mov byte [esp + 0x124], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x74]
mov byte [esp + 0x124], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x88]
mov byte [esp + 0x124], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x8c]
mov byte [esp + 0x124], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x90]
mov byte [esp + 0x124], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x94]
mov byte [esp + 0x124], 8
call sub.MFC42.DLL_CString::CString_1
mov dword [esi + 0x620], 0x43c4a8
mov dword [esi + 0x624], ebp
mov dword [esi + 0x630], ebp
mov dword [esi + 0x62c], ebp
mov dword [esi + 0x628], ebp
mov dword [esi + 0x63c], 0x43c494
mov dword [esi + 0x640], ebp
mov dword [esi + 0x64c], ebp
mov dword [esi + 0x648], ebp
mov dword [esi + 0x644], ebp
mov dword [esi + 0x650], 0x43c158
mov dword [esi + 0x654], ebp
mov dword [esi + 0x660], ebp
mov dword [esi + 0x65c], ebp
mov dword [esi + 0x658], ebp
mov dword [esi + 0x668], 0x43c480
mov dword [esi + 0x66c], ebp
mov dword [esi + 0x678], ebp
mov dword [esi + 0x674], ebp
mov dword [esi + 0x670], ebp
lea eax, [esp + 0x18]
mov byte [esp + 0x124], 0xd
push eax
push 0x104
mov dword [esi], 0x43c3c8
mov dword [esi + 0x61c], 0xfffffc18
mov dword [esi + 0x634], ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push str.14INX17IN
mov ecx, ebx
mov dword [esi + 0x6c], ebp
call sub.MFC42.DLL_CString::operator
push str.PORTRAIT
lea ecx, [esi + 0x5c]
call sub.MFC42.DLL_CString::operator
push 2
push str.Rows
push str.Settings
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 2
push str.Columns
push str.Settings
mov ecx, 0x44add0
mov dword [esi + 0x60], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x64], eax
cmp ecx, ebp
je 0x40d416
cmp eax, ebp
jne 0x40d41c
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], ebp
push str.STANDARD2_2
push str.DispFmt
lea edx, [esp + 0x18]
push str.Settings
push edx
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x68]
mov byte [esp + 0x128], 0xe
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, 0x161
xor eax, eax
lea edi, [esi + 0x98]
mov dword [esi + 0x70], ebp
rep stosd dword es:[edi], eax
push 0x32
push str.BCWidth
push str.BCPrint
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0x14
push str.BCHeight
push str.BCPrint
mov ecx, 0x44add0
mov dword [esi + 0x78], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push ebp
push str.BCImgIndex
push str.BCPrint
mov ecx, 0x44add0
mov dword [esi + 0x7c], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push ebp
push str.BCPosition
push str.BCPrint
mov ecx, 0x44add0
mov dword [esi + 0x80], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov ecx, dword [esp + 0x11c]
mov dword [esi + 0x84], eax
mov dword [esi + 0x664], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret