Function at 0x4eff20
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 0x4f01f6
push eax
call fcn.004efea0
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x4f01f6
mov eax, dword [ebx + 0xf0]
push esi
test eax, eax
je 0x4f00ad
cmp eax, edi
je 0x4f00ad
mov eax, dword [0x547570]
push ebp
mov dword [esp + 0x28], eax
mov ecx, 0x800
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x4eff87
cmp dword [eax - 4], ecx
jge 0x4effeb
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x10], esi
jle 0x4eff94
mov ecx, esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4effeb
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 [0x547574]
cmp ebp, eax
je 0x4effe3
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4effe3
push ebp
call fcn.00532222
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 0x4f0082
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4f004e
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4f0055
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4f0063
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00405870
jmp 0x4f007e
mov ecx, esi
call fcn.004124c0
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 [0x547574]
lea eax, [ecx - 0xc]
cmp eax, edx
je 0x4f00ad
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4f00ad
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff4
push ecx
call fcn.00532222
add esp, 4
push 0
mov ecx, edi
mov dword [ebx + 0xf0], edi
call fcn.0049bd60
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.00412800
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.004a8a50
mov ecx, ebx
call fcn.004ec270
mov eax, dword [ebx + 0xf0]
lea ecx, [eax + 0x1d0]
test ecx, ecx
je 0x4f0151
add eax, 0x1d4
jmp 0x4f0153
xor eax, eax
mov edx, dword [eax]
push 0
push edx
mov ecx, ebx
call fcn.004ee310
mov ecx, ebx
call fcn.004e5490
push eax
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.004db5c0
test eax, eax
je 0x4f0182
lea esi, [eax + 4]
jmp 0x4f0184
xor esi, esi
lea ecx, [esp + 0x24]
call fcn.004236f0
mov eax, dword [0x554e40]
mov ecx, dword [0x55f1cc]
mov dword [0x55f1cc], 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
lea ecx, [esp + 0x24]
call fcn.00424b40
push esi
mov ecx, 0x55f1cc
call fcn.00406370
lea ecx, [esp + 0xc]
call fcn.00510740
mov ecx, ebx
call fcn.004f0200
mov eax, 0x55f1c8
push 0
neg eax
sbb eax, eax
and eax, 0x55f1cc
mov eax, dword [eax]
push eax
call fcn.00474c00
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