Function at 0x14003e7e0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x450
mov r14, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r12d, r12d
test rax, rax
je 0x14003e82a
lea r8d, [r12 + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14003e833
mov word [rsp + 0x180], r12w
mov rdi, qword [0x140171e28]
mov word [rsp + 0x80], r12w
test rdi, rdi
je 0x14003e8f7
nop dword [rax]
cmp byte [rdi + 0x15], r12b
je 0x14003e88f
mov rcx, qword [rdi]
call fcn.1400d9970
test eax, eax
je 0x14003e86f
dec eax
je 0x14003e86f
lea r9, str.Object
jmp 0x14003e876
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x140135008]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400e6170
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x14003e850
cmp word [rsp + 0x80], r12w
je 0x14003e8f7
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x14003e8e9
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x14012fb30]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.14010a074
mov word [rbx + rdi*2], r12w
jmp 0x14003e8f7
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x14003e8f7
mov word [rsp + rcx*2 + 0x7e], r12w
mov rax, qword [0x14016e180]
cmp byte [rax + 0x138], r12b
je 0x14003e915
cmp byte [0x140171e91], r12b
mov esi, 1
je 0x14003e918
mov esi, r12d
mov eax, dword [0x14016f9fc]
cmp eax, 1
jle 0x14003e93a
lea rcx, str.zr___7.___z.2_z_366z____7_z_2_4z.2_z9____4.z.2____z_343_2__s
call fcn.1400dd2e0
mov r13, rax
mov eax, dword [0x14016f9fc]
jmp 0x14003e941
lea r13, [0x1401295d4]
cmp eax, 1
jle 0x14003e94a
lea r12d, [rax - 1]
mov cl, 1
call fcn.140019140
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.140019510
mov ebx, dword [0x14016fa00]
lea rbp, [0x14012df78]
sub ebx, esi
cmp qword [0x14016f9b8], 0
mov rdi, rax
lea rax, [0x14012df80]
mov rsi, rbp
lea rcx, str._r34_5__z
cmove rsi, rax
cmp qword [0x14016f9b0], 0
cmove rbp, rax
call fcn.1400dd2e0
mov qword [rsp + 0x70], rdi
mov r8, rax
mov eax, dword [0x14016f9f8]
lea r9, [rsp + 0x180]
mov dword [rsp + 0x68], eax
mov eax, dword [0x14016f9fc]
mov rcx, r14
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x48], r12d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov eax, dword [0x140171e38]
mov dword [rsp + 0x38], eax
mov eax, dword [0x140171e3c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov esi, 0xfffe
mov edx, esi
mov qword [rsp + 0x20], rbp
call fcn.1400e6100
movsxd rdx, eax
lea rbx, [r14 + rdx*2]
mov edx, esi
mov rax, rbx
mov rcx, rbx
sub rax, r14
sar rax, 1
sub edx, eax
call fcn.14000b5d0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
cmp qword [0x1401703e8], rax
not rcx
lea rdi, [rbx + rcx*2 - 2]
lea rcx, str.WP_n____z
jne 0x14003ea54
lea rcx, [0x140135220]
call fcn.1400dd2e0
mov rcx, rdi
mov r8, rax
mov rax, rdi
sub rax, r14
sar rax, 1
sub esi, eax
mov edx, esi
call fcn.1400e6100
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movsxd rcx, eax
lea rax, [rdi + rcx*2]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret