Function at 0x659e7c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x79], 0
jne 0x65a1af
test ebx, ebx
jl 0x659eae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004d1998
cmp ebx, eax
jl 0x659eb7
mov byte [ebp - 5], 0
jmp 0x65a1af
mov eax, dword [ebp - 4]
call fcn.004d17f0
mov esi, eax
test esi, esi
jl 0x65a1af
cmp ebx, esi
jne 0x659ed6
mov byte [ebp - 5], 1
jmp 0x65a1af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
cmp byte [eax + 0x2a4], 0
je 0x65a06f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [edx + 0x34]
mov edi, dword [eax + 8]
cmp ebx, edi
jge 0x659efd
cmp edi, esi
jg 0x659f06
mov byte [ebp - 5], 0
jmp 0x65a1af
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
cmp eax, dword [ebp - 4]
jne 0x659f1a
mov byte [ebp - 5], 0
jmp 0x65a1af
mov eax, edx
mov edx, ebx
call fcn.0065b100
mov edi, eax
mov edi, dword [edi + 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x34]
mov ecx, ebx
mov edx, esi
call fcn.0048e36c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], esi
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x50]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], ebx
mov dword [eax + 0x50], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0065b094
test al, al
jne 0x65a02f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x24]
call fcn.0065b410
test eax, eax
jne 0x65a02f
push 0xf
push esi
push 0x102c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x24c]
push eax
call sub.user32.dll_SendMessageW
mov edi, eax
push 0xf
push ebx
push 0x102c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x24c]
push eax
call sub.user32.dll_SendMessageW
push 0xf
mov ecx, eax
and ecx, 2
mov edx, eax
and edx, 1
or ecx, edx
mov edx, eax
and edx, 4
or ecx, edx
and eax, 8
or ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x24c]
mov edx, esi
call fcn.00434e34
push 0xf
mov ecx, edi
and ecx, 2
mov eax, edi
and eax, 1
or ecx, eax
mov eax, edi
and eax, 4
or ecx, eax
and edi, 8
or ecx, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x24c]
mov edx, ebx
call fcn.00434e34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0065b380
test eax, eax
jne 0x65a066
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
cmp dword [eax + 0x614], 0
jne 0x65a066
test byte [eax + 0x1c], 1
jne 0x65a066
cmp ebx, esi
jge 0x65a05d
mov edi, esi
mov esi, ebx
mov ebx, edi
mov ecx, ebx
mov edx, esi
call fcn.0064bb04
mov byte [ebp - 5], 1
jmp 0x65a1af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, ebx
call fcn.0065b100
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00657cfc
mov byte [ebp - 6], al
mov eax, edi
call fcn.00657cfc
mov byte [ebp - 7], al
mov edx, esi
mov eax, edi
call fcn.00659cb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
push esi
push edi
lea esi, [eax + 0x740]
lea edi, [edx + 0x774]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00659cb8
mov eax, dword [ebp - 4]
call fcn.004d1240
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
add eax, 0x740
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x104c
push ebx
call sub.user32.dll_SendMessageW
test eax, eax
je 0x65a1af
mov eax, dword [ebp - 4]
call fcn.004d1240
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
add eax, 0x774
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0x104c
push ebx
call sub.user32.dll_SendMessageW
test eax, eax
jne 0x65a157
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00659cb8
mov eax, dword [ebp - 4]
call fcn.004d1240
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
lea esi, [eax + 0x740]
mov eax, esi
push eax
push 0
push 0x104c
push ebx
call sub.user32.dll_SendMessageW
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov byte [eax + 0x660], 1
xor eax, eax
push ebp
push 0x65a1a4
push dword fs:[eax]
mov dword fs:[eax], esp
movzx edx, byte [ebp - 6]
mov eax, dword [ebp - 4]
call fcn.00657fac
movzx edx, byte [ebp - 7]
mov eax, edi
call fcn.00657fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65a1ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov byte [eax + 0x660], 0
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret