Function at 0x491568
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4917d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 0x54]
cmp dword [ebx + 0x38], 0
je 0x4915af
mov eax, dword [ebx + 0x40]
call fcn.0042979c
mov eax, dword [eax + 0xc]
mov edx, dword [esi + 0x54]
mov edx, dword [edx + 0x38]
mov edx, dword [edx + 0x68]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x1014]
push eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_GetWindowRect
push 0xffffffffffffffec
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x2000
cmp eax, 0x2000
jne 0x491604
push 3
lea eax, [ebp - 0x1024]
push eax
lea edx, [ebp - 0x1034]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x102c]
mov ecx, dword [esi + 0x1c]
sub ecx, 3
mov edx, 3
call fcn.00406bc0
jmp 0x49163e
lea eax, [ebp - 0x1014]
xor edx, edx
call fcn.004e80c0
sub eax, 3
push eax
lea eax, [ebp - 0x1024]
push eax
lea edx, [ebp - 0x1034]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x1034]
mov edx, 3
mov eax, 3
call fcn.00406bc0
push 0
push 0
push 0x147
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00404780
cmp ebx, 0xffffffff
jle 0x491690
lea eax, [ebp - 0x1004]
push eax
push ebx
push 0x148
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49167e
xor ebx, ebx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.00404870
jmp 0x4916c2
push 0
push 0
push 0xe
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
lea eax, [ebp - 4]
mov ecx, ebx
xor edx, edx
call fcn.00404870
test ebx, ebx
je 0x4916c2
mov eax, dword [ebp - 4]
push eax
inc ebx
push ebx
push 0xd
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageA
push 0xfffffffffffffff0
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 3
cmp eax, 3
sete bl
call sub.user32.dll_GetFocus
cmp eax, dword [esi + 0x4c]
sete al
test al, bl
je 0x491734
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004243b8
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
call fcn.00424bc4
lea edx, [ebp - 0x1024]
mov ecx, 0xff00000d
call fcn.004be228
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
mov eax, dword [eax + 0xc]
mov edx, 0xff00000e
call fcn.00423ad0
jmp 0x491749
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004243b8
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004243b8
cmp dword [ebp - 4], 0
je 0x491794
mov edi, ebx
and edi, 0x7f
mov eax, edi
add eax, dword [ebp - 0x1020]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
mov ecx, edi
add ecx, dword [ebp - 0x1024]
lea edx, [ebp - 0x1024]
call fcn.0042491c
call sub.user32.dll_GetFocus
cmp eax, dword [esi + 0x4c]
sete al
test al, bl
je 0x4917c0
lea eax, [ebp - 0x1024]
push eax
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042979c
call fcn.00424bc4
push eax
call sub.user32.dll_DrawFocusRect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4917dd
lea eax, [ebp - 4]
call fcn.00404780
ret