Function at 0x4fe3e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58931f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], ebp
call sub.MFC42.DLL_CString::CString_5
mov edi, dword [esp + 0x98]
mov dword [esp + 0x84], 1
cmp edi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0xffffffff
jne 0x4fe43d
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA
jmp 0x4fe47d
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::GetSelText
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 2
call fcn.00572d3c
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::GetSel
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::GetIRichEditOle
mov esi, eax
push esi
mov dword [esp + 0x40], esi
mov ecx, dword [esi]
call dword [ecx + 0x10]
mov ebx, dword [esp + 0x94]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 0x38
call fcn.004374d0
mov ecx, dword [esp + 0x90]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
jle 0x4fe7b4
mov edx, dword [esi]
lea eax, [esp + 0x44]
push 0
push eax
push ebp
push esi
call dword [edx + 0x18]
test edi, edi
je 0x4fe4fb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x4fe79f
cmp eax, dword [esp + 0x20]
jge 0x4fe79f
mov edx, dword [esp + 0x10]
xor ecx, ecx
xor ebp, ebp
mov eax, dword [edx - 8]
mov dword [esp + 0x94], ebp
test eax, eax
jle 0x4fe552
mov eax, dword [esp + 0x48]
test edi, edi
je 0x4fe523
sub eax, dword [esp + 0x18]
cmp ecx, eax
je 0x4fe54b
jmp 0x4fe527
cmp ecx, eax
je 0x4fe54b
mov al, byte [edx + ebp]
cmp al, 0xa1
jae 0x4fe535
cmp al, 0xd
je 0x4fe535
inc ecx
jmp 0x4fe543
inc ecx
inc ebp
test edi, edi
je 0x4fe543
cmp byte [edx + ebp - 1], 0xd
jne 0x4fe543
dec ebp
mov eax, dword [edx - 8]
inc ebp
cmp ebp, eax
jl 0x4fe511
mov dword [esp + 0x94], ebp
mov eax, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, eax
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [esp + 0x90]
push eax
mov byte [esp + 0x88], 3
call fcn.00572d2a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x78]
cmp eax, 0x63
jae 0x4fe5b2
mov eax, dword [eax*4 + 0x5eb3c0]
mov ecx, dword [esp + 0x90]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x4fe796
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
mov ecx, 4
lea edi, [esp + 0x4c]
mov esi, 0x5b64f0
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov byte [esp + 0x84], 4
jne 0x4fe5e8
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push str.___08x_G
push ecx
jmp 0x4fe5f7
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x14]
push edx
push str.___08x_B
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x94]
call fcn.00572d2a
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x78]
xor ecx, ecx
test eax, eax
jle 0x4fe62c
mov edx, dword [ebx + 4]
cmp dword [edx], esi
je 0x4fe62c
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4fe620
cmp ecx, eax
jl 0x4fe77a
mov dword [esp + 0x38], esi
mov esi, eax
xor edi, edi
mov dword [esp + 0x34], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x4fe669
mov ecx, dword [ebx + 4]
cmp ecx, edi
je 0x4fe65e
push ecx
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x4fe769
mov edx, dword [ebx + 4]
cmp edx, edi
jne 0x4fe6a4
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x4fe769
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x4fe6d2
cmp eax, ebp
jge 0x4fe6c2
mov ecx, ebp
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 8], ebp
jmp 0x4fe769
jle 0x4fe6ca
sub eax, ebp
mov dword [esp + 0x34], eax
mov dword [ebx + 8], ebp
jmp 0x4fe769
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x4fe6fd
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x4fe6f0
mov ecx, 4
jmp 0x4fe6fd
cmp ecx, 0x400
jle 0x4fe6fd
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x4fe70c
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x34], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ecx
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x94]
mov dword [edx + esi*4], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x98]
inc ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
mov dword [esp + 0x24], ebp
jl 0x4fe4cf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jge 0x4fe7f8
lea edx, [esp + 0x98]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [esp + 0x90]
push eax
mov byte [esp + 0x88], 5
call fcn.00572d2a
lea ecx, [esp + 0x98]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x40], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x10