Function at 0x4fe774
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4fe77c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4fea10
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
test dl, dl
jne 0x4fe7ae
mov eax, dword [ebp + 8]
cmp dword [eax - 0x160], 0
je 0x4fe9e8
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x160]
push eax
push 0x50f168
call sub.kernel32.dll_InterlockedExchange
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x160]
jne 0x4fe85b
push 0xc8
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x160]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp + 8]
cmp byte [eax - 0x15b], 0
jne 0x4fe819
push 0xc8
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x160]
push eax
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
call fcn.0040bc08
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x53b5d8]
call fcn.00406904
je 0x4fe9e8
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
call fcn.0040bc08
mov edx, dword [ebp - 0x20]
mov eax, 0x53b5d8
call fcn.00406520
mov bl, 1
mov eax, esi
mov edx, 0x4fea2c
call fcn.004067a8
call fcn.0040d0d8
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x4fea38
call fcn.0040dcd8
push dword [esi]
push 0x4fea4c
push dword [ebp - 8]
push 0x4fea58
mov eax, esi
mov edx, 4
call fcn.00406870
mov eax, esi
mov edx, dword [0x53b5d4]
call fcn.004067a8
mov eax, esi
mov edx, 0x4fea64
call fcn.004067a8
test bl, bl
jne 0x4fe91e
push 0xc8
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x160]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp + 8]
cmp byte [eax - 0x15b], 0
jne 0x4fe901
push 0xc8
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x160]
push eax
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, 0xfffffea5
call fcn.0040bc08
mov edx, dword [ebp - 0x24]
mov eax, 0x53b5d8
call fcn.00406520
push 0x4fea74
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x188]
push dword [eax + 0x40]
push 0x4fea80
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x188]
push dword [eax + 0x44]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406870
mov eax, dword [ebp - 4]
mov edx, dword [0x53b5dc]
call fcn.00406904
je 0x4fe98e
mov eax, 0x53b5dc
mov edx, dword [ebp - 4]
call fcn.00406520
push dword [ebp - 4]
push 0x4fea8c
push dword [0x53b5d8]
push 0x4fea98
mov eax, 0x53b5d4
mov edx, 4
call fcn.00406870
jmp 0x4fe9ad
push 0x4fea98
push dword [0x53b5d8]
push 0x4fea98
mov eax, 0x53b5d4
mov edx, 3
call fcn.00406870
mov eax, esi
mov edx, dword [0x53b5d4]
call fcn.004067a8
push dword [esi]
push 0x4fea2c
push 0x4feaa4
mov eax, esi
mov edx, 3
call fcn.00406870
mov eax, dword [ebp - 0x18]
mov dword [0x50f16c], eax
mov eax, dword [ebp - 0x14]
mov dword [0x50f170], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fea17
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004064f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004064f0
ret