Function at 0x445010
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d96d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_COleStreamFile::COleStreamFile
or ebx, 0xffffffff
push 0
push ebx
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4bc], 0
call fcn.00445500
mov eax, dword [0x654f84]
mov byte [esp + 0x4b0], 1
test eax, eax
jne 0x4451a0
mov ebp, dword [esp + 0x4b8]
mov edi, dword [esp + 0x4bc]
lea ecx, [esp + 0x40]
mov eax, dword [ebp + 0xdc]
push ecx
mov dword [edi + 0xa1c], eax
mov edx, dword [str.InPage100]
push 0x10
push edx
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_COleStreamFile::OpenStream
test eax, eax
jne 0x4450e4
mov eax, dword [ebp + 0xd0]
push eax
push 0x520f
push 0x40
push 0
call fcn.004c8a30
add esp, 0x10
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 0
call fcn.004455c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b0], ebx
call fcn.004d7e9c
mov eax, 0x520f0000
jmp 0x4454e0
mov ecx, dword [ebp]
push 0
and ecx, 0xfffffff
sub ecx, 0x10005
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 0xd4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleStreamFile::Seek
mov eax, dword [edi + 0xa44]
test eax, eax
jne 0x44512d
mov ecx, dword [edi + 0xa3c]
test ecx, ecx
je 0x44512d
push edi
call fcn.00419690
mov ecx, eax
call fcn.004511f0
mov eax, dword [0x654f84]
test eax, eax
jne 0x4453a5
push 1
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_COleStreamFile::Seek
push 2
push 0
lea ecx, [esp + 0x1c]
mov esi, eax
call sub.MFC42.DLL_COleStreamFile::Seek
push 0
push esi
lea ecx, [esp + 0x1c]
mov ebx, eax
call sub.MFC42.DLL_COleStreamFile::Seek
xor esi, esi
lea edx, [esp + 0x14]
push esi
push 0x1000
push 1
push edx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CArchive::CArchive
mov ecx, dword [edi + 0xa3c]
mov byte [esp + 0x4b0], 2
cmp ecx, esi
je 0x44527c
call fcn.00419690
mov dword [esp + 0x54], eax
jmp 0x445280
lea edx, [esp + 0x98]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x19c]
lea ecx, [esp + 0x98]
push eax
push 0
push 0x503da0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x2a0]
lea eax, [esp + 0x19c]
push edx
push eax
call fcn.00425060
mov edi, dword [esp + 0x4c4]
add esp, 8
lea ecx, [esp + 0x2a0]
lea esi, [edi + 0xa1c]
push esi
push 0
push 0x4011012
push ecx
call dword [sym.imp.ole32.dll_StgCreateDocfile]
mov ebp, dword [esp + 0x4b8]
mov edx, dword [esi]
mov byte [edi + 0x138], 0
test eax, eax
mov dword [ebp + 0xdc], edx
jge 0x44510c
lea esi, [eax + 0x7148]
mov eax, dword [ebp + 0xd0]
and esi, 0xffff
push eax
shl esi, 0x10
mov ecx, esi
or ecx, 0x1906
push ecx
push 0x40
push 0
call fcn.004c8a30
add esp, 0x10
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 0
call fcn.004455c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b0], ebx
call fcn.004d7e9c
mov eax, esi
jmp 0x4454e0
mov dword [esp + 0x54], esi
cmp ebx, 0x7530
mov dword [esp + 0x58], esi
jle 0x4452b8
mov ecx, dword [0x655ff8]
lea eax, [esp + 0x98]
push 0x100
push eax
push 0x18d8
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x98]
push 1
push edx
push ebx
jmp 0x4452bc
push esi
push esi
push 0xffffffffffffffff
call fcn.004ce9e0
mov eax, dword [0x655ab0]
add esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
mov ecx, dword [0x655ab4]
push 0
push ecx
call esi
lea edx, [esp + 0x54]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0xd0]
push ecx
push 0x440ed0
lea eax, [esp + 0x1c]
push edx
push ebp
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.00432750
mov esi, eax
call fcn.004ceb00
test si, si
je 0x445379
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebp + 0xd0]
shr ecx, 0x10
and esi, 0xffff
push eax
shl ecx, 0x10
or ecx, esi
push ecx
push 0x40
push 0
call fcn.004c8a30
add esp, 0x10
lea ecx, [esp + 0x54]
shl esi, 0x10
mov byte [esp + 0x4b0], 1
call fcn.004d7e8a
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 0
call fcn.004455c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.004d7e9c
mov eax, esi
jmp 0x4454e0
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CArchive::Close
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_COleStreamFile::Flush
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_COleStreamFile::Close
lea ecx, [esp + 0x54]
mov byte [esp + 0x4b0], 1
call fcn.004d7e8a
cmp dword [0x654300], 1
jne 0x4454b6
mov eax, dword [edi + 0xa44]
test eax, eax
jne 0x4454b6
mov eax, dword [edi + 0xa3c]
test eax, eax
je 0x4454b6
mov edx, dword [0x655afc]
mov edi, dword [0x655aa8]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
push 0
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, dword [sym.imp.USER32.dll_InsertMenuA]
mov dword [esp + 0x10], eax
xor ebp, ebp
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x9c]
lea esi, [ebp + 0x4e95]
push 0x107
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0
push esi
test eax, eax
push edi
je 0x445474
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x445443
lea edx, [esp + 0x98]
push edx
push esi
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_ModifyMenuA]
jmp 0x44547a
test ebp, ebp
jne 0x44545b
mov eax, dword [esp + 0x10]
push ebp
push 0x4ea5
push 0xc00
push 0xffffffffffffffff
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x98]
push ecx
push esi
push 0x400
push 0xffffffffffffffff
push edx
call ebx
jmp 0x44547a
call dword [sym.imp.USER32.dll_DeleteMenu]
inc ebp
cmp ebp, 8
jl 0x4453fa
mov eax, dword [0x655afc]
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov ecx, 0x6561a0
call sub.MFC42.DLL_CWinApp::GetFirstDocTemplatePosition
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, 0x6561a0
call sub.MFC42.DLL_CWinApp::GetNextDocTemplate
mov edx, dword [eax + 0x68]
mov dword [0x655aa8], edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 0
call fcn.004455c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.004d7e9c
mov eax, 1
mov ecx, dword [esp + 0x4a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4a4
ret