Function at 0x42ecc0
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 0x42ece7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42ecf1
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.004968d0
mov esi, dword [0x4cb0dc]
add esp, 0xc
test esi, esi
je 0x42ed5f
cmp byte [esi + 0x11], 0
je 0x42ed58
mov edx, dword [esi]
push edx
call fcn.0046f9b0
add esp, 4
sub eax, 0
je 0x42ed3c
dec eax
je 0x42ed35
mov eax, str.Object
jmp 0x42ed41
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42ed41
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4a94a8
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.004745c0
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42ed15
cmp word [esp + 0x20], 0
je 0x42edb8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ed70
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42eda6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a5770
push edi
call fcn.004906f4
add esp, 0xc
xor edx, edx
mov word [edi + esi*2], dx
jmp 0x42edb8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42edb8
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x4c6fe0]
cmp byte [edx + 0xf8], 0
je 0x42edd8
cmp byte [0x4cb11d], 0
mov dword [esp + 0x14], 1
je 0x42ede0
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 0x42eefe
mov dword [esp + 0x18], 0x4a1838
xor ebp, ebp
cmp dword [0x4c85fc], 0
mov edi, 0x4a3998
je 0x42ee13
mov edi, 0x4a3990
cmp dword [0x4c85f8], 0
mov esi, 0x4a3998
je 0x42ee26
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.00474580
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 0x42eeb3
sub eax, edx
sar eax, 1
cmp dword [0x4c8ed8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42eed8
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.00474580
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 0x42ee00