Function at 0x4c5030
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542340
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4c506d
xor eax, eax
jmp 0x4c5226
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x14], 0
jne 0x4c507d
xor eax, eax
jmp 0x4c5226
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
shl eax, 1
call fcn.004d7d70
mov dword [ebp - 0x6c], esp
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
jne 0x4c50b0
xor eax, eax
jmp 0x4c5226
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 0x14]
call fcn.004c4eb0
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x28]
call fcn.00419d10
mov dword [ebp - 4], 0
push 0
push 0xa
lea ecx, [ebp - 0x28]
call fcn.00467ab0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
je 0x4c517a
mov eax, dword [ebp - 0x68]
push eax
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00457dc0
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
call fcn.00457ae0
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x14]
mov edx, dword [eax + 0x19c]
call edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00428550
mov eax, dword [ebp - 0x68]
push eax
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00457dc0
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
call fcn.00457ae0
push eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x58]
call fcn.00428550
jmp 0x4c51e4
lea ecx, [ebp - 0x28]
call fcn.00457ae0
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x5c]
mov edx, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x19c]
call eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x5c]
cmp eax, dword [ecx + 4]
jne 0x4c51e4
push 0
push 0
push 0xb0
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and eax, 0xf
mov ecx, dword [ebp - 0x60]
sub ecx, 1
cmp eax, ecx
je 0x4c51e4
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
push eax
push 0xb1
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
push str.textchanged
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x5c]
mov edx, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x20]
call eax
mov ecx, eax
call fcn.0043cce0
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00428550
mov eax, dword [ebp - 0x80]
lea esp, [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret 0x10