Function at 0x49ef18
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2b
push 0
push 0
dec ecx
jne 0x49ef20
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov edi, 0x4a6ff8
xor eax, eax
push ebp
push 0x49f3b8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x19], 0
push 0
mov eax, esi
call fcn.00448a54
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x49f052
push 0xff
lea eax, [ebp - 0x123]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x49f040
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x123]
mov ecx, 0xff
call fcn.00404780
mov edx, dword [ebp - 0x128]
mov eax, 0x49f3d0
call fcn.00404b14
test eax, eax
jne 0x49f002
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x123]
mov ecx, 0xff
call fcn.00404780
mov edx, dword [ebp - 0x12c]
mov eax, 0x49f3e4
call fcn.00404b14
test eax, eax
jne 0x49f002
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x123]
mov ecx, 0xff
call fcn.00404780
mov edx, dword [ebp - 0x130]
mov eax, 0x49f3f8
call fcn.00404b14
test eax, eax
je 0x49f040
lea eax, [ebp - 0x123]
push eax
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0x40
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push 0xfffffffffffffffe
push ebx
call sub.user32.dll_SetWindowPos
push 0xc8
call sub.kernel32.dll_Sleep_1
mov byte [ebp - 0x19], 1
jmp 0x49f052
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x49ef6a
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
mov ebx, dword [edi + 0x18]
sub ebx, dword [edi + 0x10]
mov edx, dword [edi + 0x1c]
sub edx, eax
mov dword [ebp - 0x14], edx
cmp byte [ebp - 0x19], 1
jne 0x49f37a
mov eax, esi
call fcn.0049d31c
mov eax, esi
call fcn.004a128c
push 1
push 1
mov eax, dword [esi + 0x364]
call fcn.004301ec
call fcn.00424ed4
push eax
call sub.gdi32.dll_GetPixel
mov edi, eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 0
lea edx, [ebp - 0x138]
xor ecx, ecx
mov eax, 0x49f40c
call fcn.00409a44
mov eax, dword [ebp - 0x14]
dec eax
push eax
dec ebx
push ebx
mov eax, dword [esi + 0x364]
call fcn.004301ec
call fcn.00424ed4
push eax
call sub.gdi32.dll_GetPixel
mov edi, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 0
lea edx, [ebp - 0x138]
xor ecx, ecx
mov eax, 0x49f40c
call fcn.00409a44
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040491c
jne 0x49f360
mov eax, dword [ebp - 8]
mov edx, 0x49f41c
call fcn.0040491c
jne 0x49f360
mov ebx, 3
mov eax, dword [ebp - 0x14]
sub eax, ebx
push eax
push 3
mov eax, dword [esi + 0x364]
call fcn.004301ec
call fcn.00424ed4
push eax
call sub.gdi32.dll_GetPixel
mov edi, eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 0
lea edx, [ebp - 0x138]
xor ecx, ecx
mov eax, 0x49f40c
call fcn.00409a44
mov eax, dword [ebp - 8]
mov edx, 0x49f42c
call fcn.0040491c
jne 0x49f18f
mov eax, dword [ebp - 0x14]
sub eax, ebx
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
sub eax, ebx
mov dword [ebp - 0x20], eax
jmp 0x49f198
inc ebx
cmp ebx, 0x259
jne 0x49f128
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, 0xa
push 0x1c
push ebx
mov eax, dword [esi + 0x364]
call fcn.004301ec
call fcn.00424ed4
push eax
call sub.gdi32.dll_GetPixel
mov edi, eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x134], 0
lea edx, [ebp - 0x138]
xor ecx, ecx
mov eax, 0x49f40c
call fcn.00409a44
mov eax, dword [ebp - 8]
mov edx, 0x49f43c
call fcn.0040491c
jne 0x49f1f2
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jne 0x49f20a
mov dword [0x4a6d40], ebx
mov dword [0x4a6d44], 0x20
jmp 0x49f213
inc ebx
cmp ebx, 0x321
jne 0x49f1a2
mov dword [0x4a6d30], 0x3e8
mov eax, dword [ebp - 0x24]
sub eax, 0x2d
mov dword [0x4a6d34], eax
mov dword [0x4a6d38], 0xa
mov eax, dword [ebp - 0x20]
add eax, 0xa
mov dword [0x4a6d3c], eax
push 0x49f44c
lea edx, [ebp - 0x140]
mov eax, dword [0x4a6d30]
call fcn.00408bf8
push dword [ebp - 0x140]
push 0x49f460
lea edx, [ebp - 0x144]
mov eax, dword [0x4a6d34]
call fcn.00408bf8
push dword [ebp - 0x144]
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.00404890
mov edx, dword [ebp - 0x13c]
mov eax, dword [esi + 0x314]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x49f470
lea edx, [ebp - 0x14c]
mov eax, dword [0x4a6d40]
call fcn.00408bf8
push dword [ebp - 0x14c]
push 0x49f460
lea edx, [ebp - 0x150]
mov eax, dword [0x4a6d44]
call fcn.00408bf8
push dword [ebp - 0x150]
lea eax, [ebp - 0x148]
mov edx, 4
call fcn.00404890
mov edx, dword [ebp - 0x148]
mov eax, dword [esi + 0x314]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x49f484
lea edx, [ebp - 0x158]
mov eax, dword [0x4a6d38]
call fcn.00408bf8
push dword [ebp - 0x158]
push 0x49f460
lea edx, [ebp - 0x15c]
mov eax, dword [0x4a6d3c]
call fcn.00408bf8
push dword [ebp - 0x15c]
lea eax, [ebp - 0x154]
mov edx, 4
call fcn.00404890
mov edx, dword [ebp - 0x154]
mov eax, dword [esi + 0x314]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0049f748
jmp 0x49f37a
mov eax, dword [esi + 0x314]
mov eax, dword [eax + 0x220]
mov edx, 0x49f498
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0x19], 0
mov bl, byte [ebp - 0x19]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f3bf
lea eax, [ebp - 0x15c]
mov edx, 9
call fcn.00404534
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404534
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404534
ret