Function at 0x49b572
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp dword [ebx + 8], 0
jne 0x49b5c7
push 0x63
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [edi]
push dword [ebp + 8]
call fcn.004e47a0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x49b5bf
cmp dword [ebx + 8], 1
je 0x49b5bf
cmp dword [ebx + 8], 2
je 0x49b5bf
push 6
push dword [ebp + 0x1c]
push ebx
call fcn.0047a1dc
jmp 0x49b7ae
mov eax, dword [ebp - 0xc]
jmp 0x49b7ae
cmp dword [ebx + 0x40], 0
jne 0x49b5d7
mov eax, 2
jmp 0x49b7ae
cmp dword [ebx + 8], 2
jne 0x49b5f0
mov edx, dword [ebx + 0x40]
cmp dword [edx + 0x40], 0
jne 0x49b5f0
mov eax, 2
jmp 0x49b7ae
mov edx, dword [ebx + 0x40]
cmp dword [edx + 0x1c], 1
je 0x49b603
mov eax, 1
jmp 0x49b7ae
cmp dword [ebx + 8], 2
jne 0x49b61f
mov edx, dword [ebx + 0x40]
mov ecx, dword [edx + 0x40]
cmp dword [ecx + 0x1c], 1
je 0x49b61f
mov eax, 1
jmp 0x49b7ae
mov edx, dword [ebx + 0x40]
cmp dword [edx + 0xc], 0
jne 0x49b79e
mov eax, dword [ebx + 8]
cmp eax, 2
jne 0x49b644
mov edx, dword [ebx + 0x40]
mov ecx, dword [edx + 0x40]
cmp dword [ecx + 0xc], 0
jne 0x49b79e
xor edx, edx
mov dword [ebp - 0xc], edx
cmp eax, 2
jne 0x49b677
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x40]
push dword [ecx]
call fcn.00555124
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x49b66a
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jle 0x49b677
mov dword [ebp - 0xc], 1
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
cmp byte [eax], 0x3d
jne 0x49b735
inc eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp byte [edx], 0
je 0x49b745
xor esi, esi
cmp dword [ebp + 0x20], 0
je 0x49b6ee
mov eax, dword [ebp + 0x20]
push dword [eax + 0xc78]
call fcn.00438ac0
test eax, eax
je 0x49b6ee
mov edx, dword [ebp + 0x20]
mov ecx, dword [edx + 0xc78]
cmp dword [ecx + 0x520], 0
je 0x49b6ee
push dword [ebp - 8]
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0xc78]
add edx, 0x3f0
push edx
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x49b6ee
mov ecx, dword [ebp + 0x20]
mov esi, dword [ecx + 0xc78]
test esi, esi
jne 0x49b725
mov esi, dword [0x55f1e0]
test esi, esi
je 0x49b725
cmp dword [esi + 0x520], 3
jne 0x49b71b
push dword [ebp - 8]
lea eax, [esi + 0x3f0]
push eax
call fcn.0054c494
add esp, 8
test eax, eax
je 0x49b725
mov esi, dword [esi + 0x88c]
test esi, esi
jne 0x49b6fc
test esi, esi
je 0x49b745
push dword [esi]
call fcn.0051dd0a
mov dword [ebp - 4], eax
jmp 0x49b745
push dword [ebp + 0x24]
mov edx, dword [ebx + 0x40]
push dword [edx]
call fcn.00412db7
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49b79e
cmp dword [ebp - 0xc], 0
jne 0x49b770
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x818]
test eax, eax
je 0x49b79e
push dword [ebp + 0x14]
push 0x1f4
push 0xd
push eax
call sub.USER32.dll_SendMessageA
jmp 0x49b79e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x81c]
test eax, eax
je 0x49b79e
push dword [ebp + 0x14]
push 0x1f4
push 0xd
push eax
call sub.USER32.dll_SendMessageA
jmp 0x49b79e
push dword [ebx + 0x40]
push dword [edi]
call fcn.004c6cb6
mov dword [edi], eax
dec dword [ebx + 8]
cmp dword [ebx + 8], 0
jg 0x49b78f
xor edx, edx
mov dword [ebx + 8], edx
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20