Function at 0x14008b750
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2040
call fcn.1400ff8d0
sub rsp, rax
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rdx
mov rsi, rcx
mov rbp, qword [0x14017abf0]
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea r15, [0x14017dc60]
mov eax, dword [rcx + rax]
cmp dword [0x14017dc50], eax
jg 0x14008b9ab
mov qword [rsp + 0x28], r15
mov rcx, r15
call fcn.1400d8994
test eax, eax
jne 0x14008b9ee
mov eax, dword [0x14017dcac]
cmp eax, 0x7fffffff
je 0x14008b9f9
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x30]
call fcn.14012ce40
cmp qword [rsi + 8], 0
je 0x14008b956
test rbx, rbx
je 0x14008b956
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x14008b956
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14003f460
nop
mov rdi, qword [rsp + 0x20]
mov ebx, r14d
movzx eax, word [rdi]
test ax, ax
je 0x14008b8c5
movzx ecx, ax
call fcn.14010b094
test eax, eax
je 0x14008b85e
mov rax, rdi
test rbx, rbx
cmovne rax, rbx
mov rbx, rax
jmp 0x14008b861
mov rbx, r14
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x14008b843
test rbx, rbx
je 0x14008b8c0
mov rax, qword [rsp + 0x20]
sub rbx, rax
sar rbx, 1
test ebx, ebx
js 0x14008b9a0
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x14008b8a7
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140005a20
mov rax, qword [rsp + 0x20]
cmp ebx, dword [rax - 0xc]
jg 0x14008b9a0
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r14w
mov rdi, qword [rsp + 0x20]
cmp dword [rdi - 0x10], 0
je 0x14008b918
mov rdx, qword [rsi + 0x68]
test rdx, rdx
je 0x14008ba0c
mov rcx, rdi
call fcn.1401103e4
test eax, eax
je 0x14008b907
lea rcx, [rsp + 0x20]
call fcn.14003ec10
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x68]
call fcn.14003f3d0
mov rdx, rbp
mov rcx, rsi
call fcn.14008b2c0
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi + 8]
jmp 0x14008b927
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008b971
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14008b971
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 5
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov rcx, r15
call fcn.1400d899c
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1400ff350
mov rbx, qword [rsp + 0x2080]
add rsp, 0x2040
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002b00
nop
lea rcx, [0x14017dc50]
call fcn.1400feccc
cmp dword [0x14017dc50], 0xffffffff
jne 0x14008b7af
mov edx, 2
mov rcx, r15
call fcn.1400d8980
lea rcx, [0x1401383b0]
call fcn.1400ff03c
lea rcx, [0x14017dc50]
call fcn.1400fec60
jmp 0x14008b7af
mov ecx, 5
call fcn.1400d7b54
int3
dec eax
mov dword [0x14017dcac], eax
mov ecx, 6
call fcn.1400d7b54
nop
mov ecx, 0x80004005
call fcn.140002b00
int3