Function at 0x42ea90
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 0x42eab7
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42eac1
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.00495c20
mov esi, dword [0x4c90cc]
add esp, 0xc
test esi, esi
je 0x42eb2f
cmp byte [esi + 0x11], 0
je 0x42eb28
mov edx, dword [esi]
push edx
call fcn.0046ecd0
add esp, 4
sub eax, 0
je 0x42eb0c
dec eax
je 0x42eb05
mov eax, str.Object
jmp 0x42eb11
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x42eb11
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4a83d0
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00473910
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42eae5
cmp word [esp + 0x20], 0
je 0x42eb88
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42eb40
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42eb76
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a4700
push edi
call fcn.0048fa44
add esp, 0xc
xor edx, edx
mov word [edi + esi*2], dx
jmp 0x42eb88
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42eb88
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x4c4fe0]
cmp byte [edx + 0xf4], 0
je 0x42eba8
cmp byte [0x4c910d], 0
mov dword [esp + 0x14], 1
je 0x42ebb0
mov dword [esp + 0x14], 0
mov eax, dword [0x4c6624]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42ecce
mov dword [esp + 0x18], 0x4ab02c
xor ebp, ebp
cmp dword [0x4c65ec], 0
mov edi, 0x4a2990
je 0x42ebe3
mov edi, 0x4a2988
cmp dword [0x4c65e8], 0
mov esi, 0x4a2990
je 0x42ebf6
mov esi, 0x4a2988
push 1
call fcn.00411940
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00411d00
mov ecx, dword [0x4c6624]
mov edx, dword [0x4c6628]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4c6620]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
mov edx, dword [0x4c90d4]
push eax
mov eax, dword [0x4c90d8]
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.004738d0
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.00409320
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ec83
sub eax, edx
sar eax, 1
cmp dword [0x4c6ec8], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42eca8
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.004738d0
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 0x42ebd0