Function at 0x4904ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040533c
xor eax, eax
push ebp
push 0x490787
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
mov dword [0x716020], eax
cmp dword [ebp - 4], 0
je 0x490754
lea eax, [ebp - 0xc]
call fcn.00404e9c
jmp 0x490543
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.0040507c
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xc]
call fcn.0040515c
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004053ec
cmp dword [ebp - 4], 0
je 0x490551
mov eax, dword [ebp - 4]
cmp byte [eax], 0x20
jne 0x490513
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.00470310
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0xc]
call fcn.00404f34
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.00409350
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 4]
call fcn.00404f34
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00488fb4
test al, al
je 0x490754
push 0
mov eax, dword [0x49b178]
mov eax, dword [eax]
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x16], 0
cmp dword [ebp - 0x14], 0
je 0x4905d9
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x2a
jne 0x4905d9
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, 1
call fcn.004053ec
cmp dword [ebp - 0x14], 0
je 0x49060c
mov eax, dword [ebp - 0x14]
call fcn.00405154
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x2a
jne 0x49060c
mov byte [ebp - 0x16], 1
mov eax, dword [ebp - 0x14]
call fcn.00405154
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, 1
call fcn.004053ec
test edi, edi
je 0x4906ce
push edi
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4906bc
push edi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x17], al
push 0x90
lea eax, [ebp - 0xa8]
push eax
push edi
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0xb8]
lea eax, [ebp - 0xa8]
call fcn.00409c4c
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0x10]
call fcn.00470310
or bl, byte [ebp - 0x17]
je 0x4906bc
mov eax, dword [ebp - 0x10]
call fcn.00405154
test eax, eax
je 0x4906bc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00405490
mov esi, eax
test esi, esi
je 0x4906bc
cmp esi, 1
setne al
and al, byte [ebp - 0x15]
jne 0x4906bc
mov eax, dword [ebp - 0x10]
call fcn.00405154
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.00405154
sub ebx, eax
inc ebx
cmp esi, ebx
setne al
and al, byte [ebp - 0x16]
jne 0x4906bc
jmp 0x4906de
push 2
push edi
call sub.user32.dll_GetWindow
mov edi, eax
test edi, edi
jne 0x490614
mov byte [ebp - 5], 1
mov dword [0x716020], 1
jmp 0x490754
mov eax, dword [ebp - 0xc]
mov edx, 0x4907a0
call fcn.00405298
jne 0x4906fb
push 0
push 0
push 0x10
push edi
call sub.user32.dll_SendMessageA
jmp 0x490750
mov eax, dword [ebp - 0xc]
mov edx, 0x4907b0
call fcn.00405298
jne 0x49071a
push 1
push edi
call sub.user32.dll_ShowWindow
push edi
call sub.user32.dll_SetActiveWindow
jmp 0x490750
mov eax, dword [ebp - 0xc]
mov edx, 0x4907c0
call fcn.00405298
jne 0x490739
push 3
push edi
call sub.user32.dll_ShowWindow
push edi
call sub.user32.dll_SetActiveWindow
jmp 0x490750
mov eax, dword [ebp - 0xc]
mov edx, 0x4907d4
call fcn.00405298
jne 0x490754
push 6
push edi
call sub.user32.dll_ShowWindow
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49078e
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.00404ec0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404ec0
lea eax, [ebp - 4]
call fcn.00404e9c
ret