Function at 0x489a02
Capabilities:
Get graphical window text

Disassembly:
push 8
mov eax, 0x51512c
call fcn.00502a53
mov esi, ecx
lea eax, [ebp - 0x14]
push 0x164df
push eax
call fcn.004fefea
and dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov edi, dword [0x5257d4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add eax, 4
push eax
push 0
push 0x143
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004054f7
test al, al
je 0x489a75
push dword [ebp - 0x10]
call fcn.00500f18
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004fed5c
lea eax, [ebp - 0x14]
push 0x164e2
push eax
call fcn.004fefea
mov dword [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x143
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004054f7
test al, al
je 0x489add
push dword [ebp - 0x10]
call fcn.00500f18
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004fed5c
lea eax, [ebp - 0x14]
push 0x164e0
push eax
call fcn.004fefea
mov dword [ebp - 4], 4
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x143
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.004054f7
test al, al
je 0x489b45
push dword [ebp - 0x10]
call fcn.00500f18
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004fed5c
lea eax, [ebp - 0x14]
push 0x164e1
push eax
call fcn.004fefea
mov dword [ebp - 4], 6
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x143
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.004054f7
test al, al
je 0x489bad
push dword [ebp - 0x10]
call fcn.00500f18
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004fed5c
mov eax, dword [esi + 0x66c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf4]
pop ecx
sub eax, 1
je 0x489cbe
sub eax, 1
je 0x489c75
sub eax, 1
lea eax, [ebp - 0x14]
je 0x489c2c
push 0x164df
push eax
call fcn.004fefea
mov dword [ebp - 4], 0xe
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x14d
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 0xe
jmp 0x489d05
push 0x164e2
push eax
call fcn.004fefea
mov dword [ebp - 4], 0xc
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x14d
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 0xc
jmp 0x489d05
lea eax, [ebp - 0x14]
push 0x164e1
push eax
call fcn.004fefea
mov dword [ebp - 4], 0xa
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x14d
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 0xa
jmp 0x489d05
lea eax, [ebp - 0x14]
push 0x164e0
push eax
call fcn.004fefea
mov dword [ebp - 4], 8
mov ecx, dword [eax]
mov eax, dword [0x525800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ecx
push eax
call edi
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0x14d
push dword [esi + 0x440]
call ebx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call fcn.004054f7
test al, al
je 0x489d1a
push dword [ebp - 0x10]
call fcn.00500f18
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004fed5c
mov ecx, esi
call fcn.00489dc4
call fcn.00502a1c
ret