Function at 0x4ef360
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
mov dword [eax], 1
mov eax, dword [esp + 0x10]
push ebx
push edi
test eax, eax
mov ebx, ecx
je 0x4ef636
push eax
call fcn.004ef2e0
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x4ef636
mov eax, dword [ebx + 0xf0]
push esi
test eax, eax
je 0x4ef4ed
cmp eax, edi
je 0x4ef4ed
mov eax, dword [0x546560]
push ebp
mov dword [esp + 0x28], eax
mov ecx, 0x800
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x4ef3c7
cmp dword [eax - 4], ecx
jge 0x4ef42b
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x10], esi
jle 0x4ef3d4
mov ecx, esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4ef42b
mov edi, dword [esp + 0x28]
lea ecx, [esi + esi + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [eax - 8], ecx
mov eax, dword [0x546564]
cmp ebp, eax
je 0x4ef423
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ef423
push ebp
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov edx, dword [ebx + 0x264]
push 0x800
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x28]
call fcn.004055c0
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x28]
pop ebp
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x24]
mov word [edx + eax*2], 0
mov esi, dword [ebx + 0xf0]
mov ecx, dword [esp + 0x24]
add esi, 0x178
mov eax, dword [esi]
cmp eax, ecx
je 0x4ef4c2
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4ef48e
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4ef495
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4ef4a3
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00405870
jmp 0x4ef4be
mov ecx, esi
call fcn.00412670
mov ecx, dword [esp + 0x24]
mov dword [esi], ecx
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x24]
mov edx, dword [0x546564]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x4ef4ed
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ef4ed
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff4
push ecx
call fcn.00531732
add esp, 4
push 0
mov ecx, edi
mov dword [ebx + 0xf0], edi
call fcn.0049ae10
mov eax, dword [ebx + 0xf0]
add eax, 0x164
mov edx, dword [eax]
add eax, 0x14
mov dword [ebx + 0x208], edx
mov ecx, dword [eax - 0x10]
mov dword [ebx + 0x20c], ecx
mov edx, dword [eax - 0xc]
mov dword [ebx + 0x210], edx
mov ecx, dword [eax - 8]
mov dword [ebx + 0x214], ecx
mov edx, dword [eax - 4]
push eax
lea ecx, [ebx + 0x21c]
mov dword [ebx + 0x218], edx
call fcn.004129b0
mov eax, dword [ebx + 0x21c]
mov ecx, dword [ebx + 0x264]
push eax
push ecx
mov dword [ebx + 0x2c], 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebx + 0x214]
mov ecx, dword [ebx + 0xf0]
push 1
push 0
push edx
call fcn.004a7af0
mov ecx, ebx
call fcn.004eb6b0
mov eax, dword [ebx + 0xf0]
lea ecx, [eax + 0x1d0]
test ecx, ecx
je 0x4ef591
add eax, 0x1d4
jmp 0x4ef593
xor eax, eax
mov edx, dword [eax]
push 0
push edx
mov ecx, ebx
call fcn.004ed750
mov ecx, ebx
call fcn.004e48d0
push eax
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.004daa00
test eax, eax
je 0x4ef5c2
lea esi, [eax + 4]
jmp 0x4ef5c4
xor esi, esi
lea ecx, [esp + 0x24]
call fcn.00423820
mov eax, dword [0x553dd0]
mov ecx, dword [0x55e114]
mov dword [0x55e114], 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
lea ecx, [esp + 0x24]
call fcn.00424c60
push esi
mov ecx, 0x55e114
call fcn.00406280
lea ecx, [esp + 0xc]
call fcn.0050fe40
mov ecx, ebx
call fcn.004ef640
mov eax, 0x55e110
push 0
neg eax
sbb eax, eax
and eax, 0x55e114
mov eax, dword [eax]
push eax
call fcn.00474330
add esp, 8
mov eax, 1
pop esi
pop edi
pop ebx
add esp, 8
ret 0x10
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0x10