Function at 0x140018b20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.1400a5130
sub rsp, rax
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov rsi, r9
mov dword [rsp + 0x44], r8d
mov r15, rcx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0xfffffff0
mov rcx, r15
mov r13, rax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
lea rdx, [rbp]
test rax, 0xc00000
mov eax, 0
mov r8d, 0x824
sete al
mov rcx, r13
mov dword [rsp + 0x40], eax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp]
lea r9, [rsp + 0x48]
lea rdx, [rbp]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r14d, dword [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp]
lea r9, [rsp + 0x48]
lea rdx, [rbp]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClientRect]
sub r14d, dword [rbp - 0x20]
mov edi, dword [rsp + 0x58]
mov r12d, dword [rsp + 0x5c]
js 0x140018db1
cmp dword [rsp + 0x44], 0
je 0x140018c74
cmp edi, r14d
jle 0x140018db1
mov esi, edi
lea rdx, [rsp + 0x60]
mov rcx, r15
sub esi, r14d
mov r14d, r12d
sub r14d, dword [rsp + 0x4c]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetClientRect]
cmp dword [rsp + 0x40], 0
je 0x140018ca8
xor eax, eax
jmp 0x140018cb3
mov ecx, 8
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [rsp + 0x6c]
lea rdx, [rsp + 0x50]
mov rcx, r13
sub ebx, eax
sub ebx, dword [rsp + 0x7c]
sub ebx, dword [rsp + 0x64]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x80]
mov rcx, r13
mov dword [rbp - 0x80], 0x3c
call qword [sym.imp.USER32.dll_GetWindowInfo]
mov r11d, dword [rbp - 0x5c]
test r11b, 1
je 0x140018cf9
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov r15d, eax
jmp 0x140018d02
test r11b, 2
je 0x140018d57
mov r15d, esi
test r15d, r15d
jle 0x140018d57
cmp dword [rsp + 0x40], 0
je 0x140018d12
xor eax, eax
jmp 0x140018d1d
mov ecx, 7
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x54]
sub edi, esi
sub r8d, dword [rsp + 0x64]
sub edx, eax
sub r12d, r14d
sub edx, dword [rsp + 0x60]
mov r9d, edi
mov rcx, r13
sub r8d, ebx
add edx, r15d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_MoveWindow]
jmp 0x140018d7e
sub r12d, r14d
sub edi, esi
mov dword [rsp + 0x30], 6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
mov dword [rsp + 0x30], 3
xor r9d, r9d
mov dword [rsp + 0x28], eax
lea edx, [rax + 1]
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.1400a4e70
mov rbx, qword [rsp + 0x11b0]
add rsp, 0x1160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret