Function at 0x462410
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3f4
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x3f0], eax
mov eax, dword [esp + 0x3fc]
push ebx
mov ebx, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x3fc]
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x46245f
push 0x64
lea ecx, [esp + 0x134]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x462469
xor eax, eax
mov word [esp + 0x130], ax
mov esi, dword [ebx + 0x68c]
xor eax, eax
mov word [esp + 0x30], ax
test esi, esi
je 0x4624ec
nop word [eax + eax]
cmp byte [esi + 0x11], 0
je 0x4624a2
mov ecx, esi
call fcn.004d1df0
push eax
push 0x502568
lea eax, [esp + 0x38]
push 0x7d
push eax
call fcn.004e6490
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x462480
cmp word [esp + 0x30], si
je 0x4624ec
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4624b7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x4625b5
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esp + 0x34]
lea eax, [eax + ecx*2]
push 0x4feb58
push eax
call fcn.004e6a80
add esp, 0xc
lea eax, [esp + 0x1f8]
push eax
push 1
call fcn.0043d7d0
add esp, 4
movzx eax, al
push eax
call fcn.0043e580
mov ecx, dword [0x62271c]
add esp, 8
mov edx, dword fs:[0x2c]
mov dword [esp + 0xc], eax
lea esi, [ecx*4]
mov ecx, dword [esi + edx]
cmp byte [ecx + 0x2198], 0
jne 0x46253a
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
cmp byte [eax + 0x2198], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x10], ecx
jne 0x46255c
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
cmp byte [eax + 0x2198], 0
mov ecx, dword [eax + 0x1d0]
mov dword [esp + 0x14], ecx
jne 0x46257e
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
cmp byte [eax + 0x2198], 0
jne 0x462596
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov ecx, dword [esi + edx]
mov eax, dword [ecx + 0x16c]
cmp byte [eax + 0x54], 0
je 0x4625e0
cmp byte [ebx + 0x6d5], 0
jne 0x4625e0
mov eax, 1
jmp 0x4625e2
cmp word [esp + ecx*2 + 0x2e], 0x20
jne 0x4624ec
lea ecx, [ecx*2 - 2]
cmp ecx, 0x100
jae 0x4627a1
xor eax, eax
mov word [esp + ecx + 0x30], ax
jmp 0x4624ec
xor eax, eax
push ebp
mov ebp, dword [ecx + 0x1cc]
sub ebp, eax
cmp byte [ecx + 0x2198], 0
push edi
jne 0x462601
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
mov ecx, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov edi, 0x4f5b70
cmp dword [eax + 0x1d0], 1
cmovle ecx, edi
cmp byte [eax + 0x2198], 0
mov dword [esp + 0x20], ecx
jne 0x462631
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
cmp dword [eax + 0x1d0], 1
jle 0x46265e
cmp byte [eax + 0x2198], 0
jne 0x462652
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
mov edi, dword [eax + 0x1d0]
dec edi
jmp 0x462660
xor edi, edi
cmp byte [eax + 0x2198], 0
mov ecx, dword [ebx + 0x694]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x698]
mov dword [esp + 0x28], ecx
jne 0x462689
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov eax, dword [esi + edx]
mov ecx, 0x4f8a58
mov ebx, ecx
mov dword [esp + 0x10], 0x4f8a50
cmp dword [eax + 0x1f0], 0
cmovne ebx, dword [esp + 0x10]
cmp byte [eax + 0x2198], 0
jne 0x4626c1
call fcn.004ebad3
mov edx, dword fs:[0x2c]
mov ecx, 0x4f8a58
push dword [esp + 0x14]
mov eax, dword [esi + edx]
push dword [esp + 0x1c]
push dword [esp + 0x24]
cmp dword [eax + 0x1f4], 0
lea eax, [esp + 0x44]
push ebp
push dword [esp + 0x30]
cmovne ecx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x48]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x158]
push dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x54]
push ecx
push eax
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
push ebx
push edi
call fcn.004e6440
add eax, eax
mov ecx, ebx
add edi, eax
sar eax, 1
sub ecx, eax
push ecx
push edi
call fcn.004329f0
mov ecx, edi
add esp, 0x44
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462726
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462757
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
mov edx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0_.
mov ecx, str._r_nPress__F5__to_refresh.
cmp dword [eax + 0x274], 0
mov eax, edi
cmove ecx, edx
sub eax, dword [esp + 0x34]
sar eax, 1
push ecx
sub ebx, eax
push ebx
push edi
call fcn.004e6440
mov ecx, dword [esp + 0x40c]
add esp, 0xc
lea eax, [edi + eax*2]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x3f4
ret 8
call fcn.004ebef9
int3