Function at 0x4a7060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf5bd
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push str._rtf1_ansi_ansicpg936deff0deflang1033deflangfe2052
lea edi, [ebp + 0x50]
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, eax
lea eax, [esp + 0x5c]
mov ecx, dword [esi + 4]
push eax
push 0x3c
push ecx
call ebx
test esi, esi
jne 0x4a70bb
xor eax, eax
jmp 0x4a70be
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x20]
push 1
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
push eax
push 0x3c
push ecx
call ebx
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
test eax, eax
je 0x4a70f1
mov eax, dword [eax + 4]
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, ecx
neg eax
shl eax, 3
sub eax, ecx
lea ecx, [esp + 0x14]
shl eax, 3
cdq
idiv esi
mov ebp, eax
lea eax, [esp + 0x3c]
push eax
shl ebp, 1
call fcn.004ac728
push 0x6a
mov dword [esp + 0xa4], 0
call fcn.00474fd0
add esp, 4
test eax, eax
je 0x4a7194
lea ecx, [esp + 0x10]
push 0x6b
push ecx
call fcn.00474c60
push 0x6c
mov byte [esp + 0xac], 1
call fcn.00474fd0
mov edx, dword [esp + 0x1c]
push 0x4e59d8
push edx
mov esi, eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
je 0x4a717c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
test esi, esi
je 0x4a7183
lea ebp, [esi + esi]
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push str._fonttbl_f0_fnil
push edx
call sub.MFC42.DLL_operator
push 0x4e554c
push eax
lea eax, [esp + 0x18]
mov bl, 2
push eax
mov byte [esp + 0xac], bl
call sub.MFC42.DLL_operator_3
push eax
mov ecx, edi
mov byte [esp + 0xa4], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 0
call sub.MFC42.DLL_CString::CString
push str.colortbl__
mov ecx, edi
call fcn.004ac79a
mov esi, 0x4c7e10
mov ebx, 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi]
xor edx, edx
mov dl, byte [esi + 1]
xor eax, eax
mov al, byte [esi]
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov byte [esp + 0xa0], bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._red_dgreen_d_blue_d_
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x14
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call sub.MFC42.DLL_CString::CString
add esi, ebx
cmp esi, 0x4c7e50
jl 0x4a7208
push 0x4e5520
mov ecx, edi
call fcn.004ac79a
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
push ebp
lea eax, [esp + 0x20]
mov bl, 5
push 0x4df944
push eax
mov byte [esp + 0xac], bl
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push str.uc1pard_fi_1100li1100_tx1100_f0_fs
push edx
call sub.MFC42.DLL_operator
push eax
mov ecx, edi
mov byte [esp + 0xa4], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret