Function at 0x42ec90
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 0x42ecb7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42ecc1
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.00496810
mov esi, dword [0x4cb0dc]
add esp, 0xc
test esi, esi
je 0x42ed2f
cmp byte [esi + 0x11], 0
je 0x42ed28
mov edx, dword [esi]
push edx
call fcn.0046f8f0
add esp, 4
sub eax, 0
je 0x42ed0c
dec eax
je 0x42ed05
mov eax, str.Object
jmp 0x42ed11
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42ed11
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4a9450
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474500
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42ece5
cmp word [esp + 0x20], 0
je 0x42ed88
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ed40
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42ed76
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5770
push edi
call fcn.00490634
add esp, 0xc
xor edx, edx
mov word [edi + esi*2], dx
jmp 0x42ed88
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42ed88
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x4c6fe0]
cmp byte [edx + 0xf8], 0
je 0x42eda8
cmp byte [0x4cb11d], 0
mov dword [esp + 0x14], 1
je 0x42edb0
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 0x42eece
mov dword [esp + 0x18], 0x4a1838
xor ebp, ebp
cmp dword [0x4c85fc], 0
mov edi, 0x4a3998
je 0x42ede3
mov edi, 0x4a3990
cmp dword [0x4c85f8], 0
mov esi, 0x4a3998
je 0x42edf6
mov esi, 0x4a3990
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.004744c0
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.004093c0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ee83
sub eax, edx
sar eax, 1
cmp dword [0x4c8ed8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42eea8
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.004744c0
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 0x42edd0