Function at 0x47c770
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c782
push ebx
sub eax, edx
lea ebx, [esi - 0x40]
mov ecx, ebx
mov dword [ebp - 0xc], eax
call fcn.0047b650
mov byte [ebp - 1], al
test al, al
jne 0x47c7af
cmp byte [esi + 0x40], al
je 0x47c7af
mov ecx, ebx
call fcn.0047b620
mov byte [ebp - 2], al
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi - 0x20]
sete al
mov byte [ebp - 3], al
test al, al
je 0x47c7ca
push 0
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x434
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi - 0x20]
push 0
push 1
push 0x43f
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebx
call sub.MFC42.dll_CRichEditCtrl::SetSel
cmp byte [esi + 0x70], 0
mov bl, 0xd
je 0x47c825
mov ecx, dword [esi - 0x20]
lea eax, [ebp + 8]
push eax
push 0
push 0xc2
push ecx
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esi + 0x70], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47c83b
cmp byte [eax + edi - 1], bl
jne 0x47c83b
mov byte [esi + 0x70], 1
mov byte [eax + edi - 1], 0
cmp byte [esi + 0x3c], 0
je 0x47c8ed
mov ecx, esi
mov dword [ebp - 0x10], 0
mov byte [ebp + 0xb], 1
call fcn.00479bd0
cmp byte [edi], 0
mov dword [ebp - 0xc], eax
je 0x47c905
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push edi
call fcn.0045a6e0
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
mov bl, al
mov byte [ebp - 0x14], bl
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
mov ecx, esi
call edx
cmp byte [esi + 0x3d], 0
je 0x47c89b
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
test bl, bl
je 0x47c8e3
push 7
mov ecx, esi
call edx
test bl, bl
jne 0x47c8a5
cmp byte [ebp + 0xb], 0
jne 0x47c8ac
mov ecx, esi
call fcn.0047a8a0
mov eax, dword [ebp - 8]
push eax
push edi
lea ecx, [esi - 0x40]
call fcn.0047b340
add edi, dword [ebp - 8]
mov byte [ebp + 0xb], 0
cmp byte [edi], 0
jne 0x47c863
test bl, bl
je 0x47c905
mov edx, dword [esi]
mov eax, dword [ebp - 0xc]
mov edx, dword [edx + 0xc]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
push 0
mov ecx, esi
call edx
jmp 0x47c905
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, esi
call edx
jmp 0x47c89f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c8f2
sub eax, edx
push eax
push edi
lea ecx, [esi - 0x40]
call fcn.0047b340
lea ecx, [esi - 0x40]
call fcn.0047c720
cmp dword [ebp - 0x1c], 0
pop ebx
jne 0x47c91a
cmp dword [ebp - 0x18], 0
je 0x47c92f
mov ecx, dword [esi - 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x437
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi - 0x20]
push 0
push 0
push 0x43f
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [ebp - 1], 0
jne 0x47c965
cmp byte [esi + 0x40], 0
je 0x47c96e
cmp byte [ebp - 2], 0
je 0x47c96e
lea ecx, [esi - 0x40]
call fcn.0047b620
test al, al
sete al
test al, al
je 0x47c96e
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
mov eax, dword [esi - 0x20]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
cmp byte [ebp - 3], 0
je 0x47c988
mov ecx, dword [esi - 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4