Function at 0x49b1a4
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 0x49b1f9
push 0x63
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [edi]
push dword [ebp + 8]
call fcn.004e5890
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x49b1f1
cmp dword [ebx + 8], 1
je 0x49b1f1
cmp dword [ebx + 8], 2
je 0x49b1f1
push 6
push dword [ebp + 0x1c]
push ebx
call fcn.00479a18
jmp 0x49b3e0
mov eax, dword [ebp - 0xc]
jmp 0x49b3e0
cmp dword [ebx + 0x40], 0
jne 0x49b209
mov eax, 2
jmp 0x49b3e0
cmp dword [ebx + 8], 2
jne 0x49b222
mov edx, dword [ebx + 0x40]
cmp dword [edx + 0x40], 0
jne 0x49b222
mov eax, 2
jmp 0x49b3e0
mov edx, dword [ebx + 0x40]
cmp dword [edx + 0x1c], 1
je 0x49b235
mov eax, 1
jmp 0x49b3e0
cmp dword [ebx + 8], 2
jne 0x49b251
mov edx, dword [ebx + 0x40]
mov ecx, dword [edx + 0x40]
cmp dword [ecx + 0x1c], 1
je 0x49b251
mov eax, 1
jmp 0x49b3e0
mov edx, dword [ebx + 0x40]
cmp dword [edx + 0xc], 0
jne 0x49b3d0
mov eax, dword [ebx + 8]
cmp eax, 2
jne 0x49b276
mov edx, dword [ebx + 0x40]
mov ecx, dword [edx + 0x40]
cmp dword [ecx + 0xc], 0
jne 0x49b3d0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp eax, 2
jne 0x49b2a9
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x40]
push dword [ecx]
call fcn.005570e0
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x49b29c
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jle 0x49b2a9
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 0x49b367
inc eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp byte [edx], 0
je 0x49b377
xor esi, esi
cmp dword [ebp + 0x20], 0
je 0x49b320
mov eax, dword [ebp + 0x20]
push dword [eax + 0xc78]
call fcn.00438b74
test eax, eax
je 0x49b320
mov edx, dword [ebp + 0x20]
mov ecx, dword [edx + 0xc78]
cmp dword [ecx + 0x520], 0
je 0x49b320
push dword [ebp - 8]
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0xc78]
add edx, 0x3f0
push edx
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x49b320
mov ecx, dword [ebp + 0x20]
mov esi, dword [ecx + 0xc78]
test esi, esi
jne 0x49b357
mov esi, dword [0x561210]
test esi, esi
je 0x49b357
cmp dword [esi + 0x520], 3
jne 0x49b34d
push dword [ebp - 8]
lea eax, [esi + 0x3f0]
push eax
call fcn.0054e450
add esp, 8
test eax, eax
je 0x49b357
mov esi, dword [esi + 0x88c]
test esi, esi
jne 0x49b32e
test esi, esi
je 0x49b377
push dword [esi]
call fcn.0051fafa
mov dword [ebp - 4], eax
jmp 0x49b377
push dword [ebp + 0x24]
mov edx, dword [ebx + 0x40]
push dword [edx]
call fcn.00412c63
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49b3d0
cmp dword [ebp - 0xc], 0
jne 0x49b3a2
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x818]
test eax, eax
je 0x49b3d0
push dword [ebp + 0x14]
push 0x1f4
push 0xd
push eax
call sub.USER32.dll_SendMessageA
jmp 0x49b3d0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x81c]
test eax, eax
je 0x49b3d0
push dword [ebp + 0x14]
push 0x1f4
push 0xd
push eax
call sub.USER32.dll_SendMessageA
jmp 0x49b3d0
push dword [ebx + 0x40]
push dword [edi]
call fcn.004c6c7e
mov dword [edi], eax
dec dword [ebx + 8]
cmp dword [ebx + 8], 0
jg 0x49b3c1
xor edx, edx
mov dword [ebx + 8], edx
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20