Function at 0x42ece0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42ed07
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42ed11
xor edx, edx
mov word [esp + 0x120], dx
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00496a70
mov esi, dword [0x4cb0dc]
add esp, 0xc
test esi, esi
je 0x42ed7f
cmp byte [esi + 0x11], 0
je 0x42ed78
mov edx, dword [esi]
push edx
call fcn.0046fb30
add esp, 4
sub eax, 0
je 0x42ed5c
dec eax
je 0x42ed55
mov eax, str.Object
jmp 0x42ed61
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42ed61
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4a94b0
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474760
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42ed35
cmp word [esp + 0x20], 0
je 0x42edd8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ed90
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42edc6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5778
push edi
call fcn.00490894
add esp, 0xc
xor edx, edx
mov word [edi + esi*2], dx
jmp 0x42edd8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42edd8
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x4c6fe0]
cmp byte [edx + 0xf8], 0
je 0x42edf8
cmp byte [0x4cb11d], 0
mov dword [esp + 0x14], 1
je 0x42ee00
mov dword [esp + 0x14], 0
mov eax, dword [0x4c8634]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42ef1e
mov dword [esp + 0x18], 0x4ac0f0
xor ebp, ebp
cmp dword [0x4c85fc], 0
mov edi, 0x4a39a0
je 0x42ee33
mov edi, 0x4a3998
cmp dword [0x4c85f8], 0
mov esi, 0x4a39a0
je 0x42ee46
mov esi, 0x4a3998
push 1
call fcn.004119f0
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00411db0
mov ecx, dword [0x4c8634]
mov edx, dword [0x4c8638]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4c8630]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
mov edx, dword [0x4cb0e4]
push eax
mov eax, dword [0x4cb0e8]
push ebp
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
push edi
mov edi, dword [esp + 0x414]
push esi
lea ecx, [esp + 0x14c]
push ecx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov esi, 0xfffe
call fcn.00474720
lea esi, [edi + eax*2]
mov edx, esi
mov ebx, edi
sub edx, ebx
sar edx, 1
mov eax, 0xfffe
add esp, 0x34
sub eax, edx
push eax
push esi
call fcn.004093b0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42eed3
sub eax, edx
sar eax, 1
cmp dword [0x4c8ed8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42eef8
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
mov ecx, edi
sub ecx, ebx
sar ecx, 1
mov esi, 0xfffe
push eax
sub esi, ecx
call fcn.00474720
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x42ee20