Function at 0x50f0c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608fcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3010
call fcn.005c76d0
mov eax, dword [0x6cc564]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7f0]
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x7c]
push 0x7cf
test eax, eax
je 0x50f15b
mov edx, dword [ebx + 0x78]
lea ecx, [ebp - 0x1790]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x50f184
lea eax, [ebp - 0x7f0]
push 0x7d0
lea ecx, [ebp - 0x1790]
push eax
push ecx
call fcn.00404cf0
add esp, 0xc
lea edx, [ebp - 0x7f0]
lea eax, [ebp - 0x14]
push edx
push 0x6a1fe8
push eax
jmp 0x50f17c
mov edx, dword [ebx + 0x78]
lea ecx, [ebp - 0x7f0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7f0]
lea ecx, [ebp - 0x14]
push eax
push 0x6a1fe8
push ecx
call fcn.005dc6eb
add esp, 0xc
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x50f1c2
mov eax, dword [0x6cc564]
mov dword [ebp - 0x18], eax
lea esi, [ebx + 0x64]
lea ecx, [ebp - 0x18]
push esi
push ecx
push edx
mov byte [ebp - 4], 2
call fcn.0050eb20
add esp, 0xc
test al, al
jne 0x50f1df
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005e38b9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005e38b9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3020]
call fcn.005260d0
mov esi, dword [esi]
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7f0]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 3
cmp ecx, 0x7d0
jb 0x50f218
mov ecx, 0x7cf
jmp 0x50f224
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
lea edi, [ebp - 0x7f0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
lea eax, [ebp - 0x7f0]
rep movsb byte es:[edi], byte [esi]
push 0x7d0
push eax
lea ecx, [ebp - 0x3020]
call fcn.005274a0
test eax, eax
je 0x50f3a0
mov eax, dword [0x6cc564]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x3018]
push 0x6a240c
push esi
mov byte [ebp - 4], 4
call fcn.005c8740
add esp, 8
test eax, eax
jne 0x50f287
mov eax, 1
jmp 0x50f2e0
push str.rtmp
push esi
call fcn.005c8740
add esp, 8
test eax, eax
jne 0x50f2a0
mov eax, 4
jmp 0x50f2e0
push str.rtmpt
push esi
call fcn.005c8740
add esp, 8
test eax, eax
jne 0x50f2b9
mov eax, 5
jmp 0x50f2e0
push 0x6a21c0
push esi
call fcn.005c8740
add esp, 8
test eax, eax
je 0x50f2e0
push 0x6a21b4
push esi
call fcn.005c8740
add esp, 8
neg eax
sbb eax, eax
add eax, 3
mov edx, dword [ebp - 0x2ff0]
lea ecx, [ebp - 0x20]
push 1
push ecx
mov ecx, dword [ebp - 0x300c]
push edx
push ecx
mov ecx, dword [0x6d1190]
push eax
call fcn.004f29e0
push 0
push 0
test eax, eax
push 0xf0
je 0x50f35a
mov edx, dword [ebx + 0x3ec]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edx
call esi
test eax, eax
jne 0x50f33a
push eax
mov eax, dword [ebx + 0x3ec]
push 1
push 0xf1
push eax
call esi
push 1
mov ecx, ebx
call fcn.0050e690
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebx + 0x31c]
call fcn.005e2e9e
mov edx, dword [ebp - 0x1c]
lea ecx, [ebx + 0x2a4]
push edx
call fcn.005e2e9e
jmp 0x50f388
mov eax, dword [ebx + 0x3ec]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call esi
test eax, eax
je 0x50f388
mov ecx, dword [ebx + 0x3ec]
push 0
push 0
push 0xf1
push ecx
call esi
push 0
mov ecx, ebx
call fcn.0050e690
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.005e38b9
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.005e38b9
lea ecx, [ebp - 0x3020]
mov byte [ebp - 4], 2
call fcn.00526120
jmp 0x50f1b6