Function at 0x4ea200
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x264]
test eax, eax
jne 0x4ea223
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [0x546560]
mov ecx, 0x400
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x4ea241
cmp dword [eax - 4], ecx
jge 0x4ea286
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x4ea24a
mov ecx, ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4ea286
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.00405590
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x264]
push 0x400
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ea4c3
push edi
call fcn.004d8f10
mov esi, eax
add esp, 4
test esi, esi
je 0x4ea3be
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], 1
jle 0x4ea3be
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004bd620
test eax, eax
je 0x4ea3be
push 0
call fcn.00532f81
add esp, 4
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00405440
mov ecx, dword [esi + 0x24]
call fcn.00529710
mov ecx, esi
call fcn.004bd790
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ea349
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
test eax, eax
je 0x4ea349
call fcn.00419560
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x14]
mov ebx, dword [edi + 0x264]
test eax, eax
jne 0x4ea3be
mov eax, dword [esi + 8]
lea edi, [esi + 8]
test eax, eax
jne 0x4ea3ba
push 0x17
push 0
push 0x5422a4
mov ecx, edi
call fcn.004bdd70
test eax, eax
jl 0x4ea3ba
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x20]
call fcn.004bdd90
mov eax, dword [esp + 0x1c]
push 0x21
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00419560
lea ecx, [esp + 0x1c]
call fcn.004bddc0
mov edi, dword [edi]
push str.www._s.com
push 0
push esi
mov eax, dword [edi]
push ebx
push edi
call dword [eax + 0xc]
test eax, eax
jl 0x4ea3ba
mov dword [esi + 0x14], 1
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x208]
test eax, eax
je 0x4ea4a7
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
mov edx, dword [eax - 0xc]
mov ecx, esp
test edx, edx
jl 0x4ea3ee
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
push ecx
call ebx
jmp 0x4ea400
mov edx, dword [0x546560]
mov dword [ecx], edx
mov eax, dword [esp + 0x14]
push eax
call fcn.00405920
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.004ea520
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x4ea45a
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4ea42c
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4ea433
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4ea443
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4ea45a
lea ecx, [esp + 0x10]
call fcn.00412670
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call ebx
lea eax, [esp + 0x10]
lea ecx, [edi + 0x21c]
push eax
call fcn.004129b0
mov ecx, edi
call fcn.004e4520
mov ecx, dword [edi + 0xf0]
test ecx, ecx
je 0x4ea480
call fcn.0049ee00
test esi, esi
je 0x4ea49c
mov ecx, dword [edi + 0x270]
mov esi, dword [sym.imp.USER32.dll_SetFocus]
push ecx
call esi
mov edx, dword [edi + 0x264]
push edx
call esi
lea ecx, [esp + 0x1c]
call fcn.00405700
jmp 0x4ea4d7
test esi, esi
je 0x4ea4c3
mov eax, dword [edi + 0x270]
mov esi, dword [sym.imp.USER32.dll_SetFocus]
push eax
call esi
mov ecx, dword [edi + 0x264]
push ecx
call esi
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
push edx
call fcn.00405440
mov ecx, edi
call fcn.004ea6c0
lea ecx, [esp + 0x10]
call fcn.00405700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4