Function at 0x41220f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x597f54]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x54
mov eax, 0x51d3b9
call fcn.004e2876
mov eax, dword [ebp + 0x114]
xor edi, edi
push edi
push dword [0x58ab08]
mov esi, ecx
mov ecx, dword [ebp + 0x118]
push 0x80806
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x11c]
push eax
push 0x52ffc8
mov dword [ebp - 0x18], ecx
push edi
mov ecx, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x14], eax
call fcn.00459540
lea ebx, [esi + 0x930]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00438fb0
mov eax, dword [ebp + 0x110]
lea edi, [esi + 0xa6c]
mov ecx, edi
mov dword [esi], vtable.CVwrRtfSaveDlg.1.0
mov dword [ebx], vtable.CVwrRtfSaveDlg.0
mov dword [esi + 0xa68], eax
call fcn.004023e9
push dword [ebp - 0x14]
lea ecx, [esi + 0xc9c]
mov byte [ebp - 4], 1
call fcn.00401534
push dword [ebp - 0x20]
lea ecx, [esi + 0xca0]
mov byte [ebp - 4], 2
call fcn.00401534
push dword [ebp - 0x18]
lea ecx, [esi + 0xca4]
mov byte [ebp - 4], 3
call fcn.00401534
push 1
lea ecx, [ebp - 0x48]
mov byte [esi + 0xc98], 0
call fcn.00410c82
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push dword [ebp - 0x14]
lea ecx, [ebp + ecx - 0x48]
mov byte [ebp - 4], 5
call fcn.00484730
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00401534
push str..Rtf
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004031f8
push 0x2d
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.00402b3d
push 0x2d
push 0x3a
lea ecx, [ebp - 0x10]
call fcn.00402b3d
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x48]
call fcn.00485600
push dword [eax]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x48]
call fcn.00484730
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401161
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push 0x52fcb8
lea ecx, [ebp + ecx - 0x48]
call fcn.00485b00
push 0xff
lea ecx, [ebp - 0x48]
call fcn.0041007e
push eax
lea eax, [ebp]
push eax
push str.RtfSavePath
mov ecx, ebx
call fcn.00439180
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004014fd
lea ecx, [ebp - 0x60]
call fcn.00487970
mov eax, dword [edi]
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.00487df0
test eax, eax
jne 0x4123f8
mov eax, dword [edi]
push 3
push eax
lea ecx, [ebp - 0x60]
call fcn.00487df0
test eax, eax
jne 0x4123f8
push ebx
push 5
push 0x104
mov ecx, edi
call fcn.004013cf
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040567d
push dword [ebp - 0x10]
lea ebx, [esi + 0xa70]
push ebx
call fcn.004e3d30
mov eax, dword [ebp + 0x120]
mov eax, dword [eax + 0x20]
pop ecx
pop ecx
mov dword [esi + 0xc], eax
call fcn.004b9ccd
mov eax, dword [eax + 8]
mov edi, dword [edi]
lea ecx, [ebp - 0x60]
mov dword [esi + 0x10], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], ebx
mov dword [esi + 0x38], str.Save_As_Rtf
mov byte [ebp - 4], 6
call fcn.004879b0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401161
lea ecx, [ebp - 0x3c]
call fcn.0040290f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.004e2867
add ebp, 0x108
leave
ret 0x14