Function at 0x14004f6d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test rax, rax
je 0x14004f70e
lea r8d, [rsi + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14004f716
mov word [rsp + 0x180], si
mov rdi, qword [0x14012d088]
mov word [rsp + 0x80], si
test rdi, rdi
je 0x14004f7d4
nop
cmp byte [rdi + 0x16], sil
je 0x14004f76f
mov rcx, qword [rdi]
call fcn.1400b2de0
test eax, eax
je 0x14004f74f
dec eax
je 0x14004f74f
lea r9, [0x1400fbdc8]
jmp 0x14004f756
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x1400fcd38]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400b88d0
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x14004f730
cmp word [rsp + 0x80], si
je 0x14004f7d4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x14004f7c7
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x1400f7580]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.1400d9e34
mov word [rbx + rdi*2], si
jmp 0x14004f7d4
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x14004f7d4
mov word [rsp + rcx*2 + 0x7e], si
mov rax, qword [0x140129360]
cmp byte [rax + 0x138], sil
je 0x14004f7f2
cmp byte [0x14012d0f5], sil
mov edi, 1
je 0x14004f7f4
mov edi, esi
mov eax, dword [0x14012abd0]
cmp eax, 1
jle 0x14004f802
lea esi, [rax - 1]
mov cl, 1
call fcn.140022360
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.140022730
mov edx, dword [0x14012abd0]
mov r9d, dword [0x14012abd4]
mov qword [rsp + 0x70], rax
mov eax, dword [0x14012abcc]
sub r9d, edi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], r9d
cmp edx, 1
lea rax, [rsp + 0x80]
lea r10, [0x1400f4eb0]
lea rdi, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
lea r8, [0x1400f4ea8]
lea rcx, [0x1400f1604]
cmovg rcx, rdi
cmp qword [0x14012ab88], 0
mov rdi, r8
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rax
mov eax, dword [0x14012d098]
cmove rdi, r10
cmp qword [0x14012ab80], 0
mov dword [rsp + 0x38], eax
mov eax, dword [0x14012d09c]
cmove r8, r10
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r8
mov esi, 0xfffe
lea r8, 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
lea r9, [rsp + 0x180]
mov edx, esi
mov rcx, rbp
call fcn.1400b8860
movsxd rdx, eax
lea rbx, [rbp + rdx*2]
mov edx, esi
mov rax, rbx
mov rcx, rbx
sub rax, rbp
sar rax, 1
sub edx, eax
call fcn.140014a20
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r8, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
repne scasw ax, word [rdi]
cmp qword [0x14012b5c0], 0
lea rax, str._r_nPress__F5__to_refresh.
cmovne r8, rax
not rcx
lea rdi, [rbx + rcx*2 - 2]
mov rax, rdi
mov rcx, rdi
sub rax, rbp
sar rax, 1
sub esi, eax
mov edx, esi
call fcn.1400b8860
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movsxd rcx, eax
lea rax, [rdi + rcx*2]
mov rsp, r11
pop rdi
ret