Function at 0x4c7900
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8e10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
cmp byte [esi + 0x18], 0
je 0x4c7b27
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4c7b27
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x4c7b27
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea esi, [eax + 1]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
cmp esi, 7
ja 0x4c799f
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4c7993
mov ecx, esi
lea edi, [ebp - 0x2c]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x2c], ax
mov edx, dword [ebp - 0x2c]
jmp 0x4c79f9
cmp esi, 0x7ffffffe
ja 0x4c7b46
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4c79bf
mov edi, SysReAllocString
jmp 0x4c79c9
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406085
mov dword [ebp - 0x1c], esi
mov edx, eax
mov dword [ebp - 0x18], edi
test esi, esi
je 0x4c79f0
xor eax, eax
mov ecx, esi
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push esi
mov esi, dword [ebp - 0x48]
cmovae eax, edx
push eax
mov dword [ebp - 4], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov edi, dword [esi + 0x10]
cmovae edx, dword [ebp - 0x2c]
add edi, 0x13c
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x48], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7a34
sub ecx, dword [ebp - 0x48]
xor eax, eax
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.0040612d
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x4c7a83
mov ecx, edi
call fcn.00406228
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x10], xmm0
jmp 0x4c7abd
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4c7abd
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c7ab3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c7b4b
push edx
push ecx
call fcn.0053a186
add esp, 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowCaret]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [esi + 0x10]
push 1
push 0
push 0
sub esp, 8
mov ecx, esp
push edx
mov dword [ecx], str.textchanged
mov dword [ecx + 4], 0xb
mov ecx, eax
call fcn.0047c9e0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4c7b14
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.00474e50
test al, al
je 0x4c7b14
mov ecx, dword [esi + 0x10]
call fcn.00484110
push 1
push 0
mov ecx, esi
call fcn.004c65e0
lea ecx, [ebp - 0x2c]
call fcn.00405f7b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret 0x10
call fcn.00405ff9
call fcn.0059164f
int3