Function at 0x140002640
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 - 0x70]
sub rsp, 0x170
mov rax, qword [0x140115740]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r12d, dword [rdx + 0x10]
mov r15, rdx
movups xmm0, xmmword [rdx + 0x28]
mov r13d, dword [rdx + 0xc]
mov ebx, r12d
and ebx, 1
mov eax, r12d
and eax, 4
movaps xmmword [rbp - 0x80], xmm0
mov edi, ebx
mov dword [rsp + 0x58], eax
shl edi, 9
mov r14, rcx
neg eax
mov dword [rsp + 0x50], ebx
sbb esi, esi
and esi, 0x20
cmp dword [rcx + 0x60], 0
mov dword [rsp + 0x54], esi
je 0x1400026bf
or r8d, 0xffffffff
lea rcx, [rbp - 0x80]
or edx, r8d
call qword [sym.imp.USER32.dll_InflateRect]
movaps xmm0, xmmword [rbp - 0x80]
cmp r13d, 4
je 0x14000296d
cmp dword [r14 + 0x60], 0
je 0x14000271a
mov ecx, 7
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, qword [r15 + 0x20]
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [r15 + 0x34]
mov rbx, rax
mov r9d, dword [r15 + 0x30]
mov r8d, dword [r15 + 0x2c]
mov edx, dword [r15 + 0x28]
mov dword [rsp + 0x20], ecx
mov rcx, qword [r15 + 0x20]
call qword [sym.imp.GDI32.dll_Rectangle]
mov rcx, qword [r15 + 0x20]
mov rdx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [rsp + 0x50]
mov rcx, qword [r14 + 8]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, qword [r15 + 0x20]
lea rdx, [rbp - 0x80]
mov r9d, edi
mov r8d, 4
bts r9d, 0xe
and eax, 0x8000
cmove r9d, edi
or r9d, 0x10
call qword [sym.imp.USER32.dll_DrawFrameControl]
mov rcx, qword [r14 + 8]
lea rdx, [rbp - 0x70]
mov r8d, 0x64
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp qword [r14 + 0x50], 0
je 0x140002812
cmp dword [r14 + 0x2c], 0
je 0x1400027a6
cmp word [rbp - 0x70], 0
jne 0x140002791
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 0xffffffff
jmp 0x1400027af
mov ecx, dword [r14 + 0x40]
add ecx, dword [rbp - 0x80]
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], 0xffffffff
jmp 0x1400027af
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x60], rax
mov r9d, dword [r14 + 0x5c]
lea rdx, [rsp + 0x60]
mov r8d, dword [r14 + 0x58]
mov rcx, r14
call fcn.1400021d0
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x64]
add ecx, ebx
mov r9, qword [r14 + 0x50]
add edx, ebx
test r9, r9
je 0x140002812
mov eax, esi
xor r8d, r8d
or eax, 3
mov dword [rsp + 0x48], eax
mov eax, dword [r14 + 0x5c]
mov dword [rsp + 0x40], eax
mov eax, dword [r14 + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, qword [r15 + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_DrawStateW]
cmp word [rbp - 0x70], 0
je 0x140002969
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140002825
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x70]
lea rdx, [rbp - 0x70]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [r14 + 0x2c], 0
je 0x1400028d5
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
cmp qword [r14 + 0x50], 0
mov rcx, qword [rsp + 0x70]
je 0x1400028be
mov eax, dword [rsp + 0x68]
mov r9d, dword [r14 + 0x44]
sub eax, r9d
mov edx, dword [r14 + 0x58]
sub eax, edx
mov r8d, dword [r14 + 0x40]
sub eax, r8d
sub eax, ecx
sub eax, dword [rsp + 0x60]
test eax, eax
jle 0x1400028a5
lea eax, [r9 + rdx]
mov dword [rsp + 0x64], 0xffffffff
add eax, r8d
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x60]
jmp 0x1400028e3
lea eax, [r8 + 2]
mov dword [rsp + 0x64], 0xffffffff
add eax, edx
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x60]
jmp 0x1400028e3
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 0xffffffff
mov rax, qword [rsp + 0x60]
jmp 0x1400028e3
mov rax, qword [r14 + 0x38]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov r9d, dword [rsp + 0x74]
lea rdx, [rsp + 0x60]
xor ebx, ebx
shr rax, 0x20
cmp eax, 0xffffffff
mov r8d, ecx
mov rcx, r14
setne bl
dec ebx
call fcn.1400021d0
mov eax, dword [rsp + 0x50]
mov esi, dword [rsp + 0x60]
mov edx, dword [r14 + 0x48]
add esi, eax
mov rcx, qword [r15 + 0x20]
add eax, ebx
mov ebx, dword [rsp + 0x64]
add ebx, eax
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [r15 + 0x20]
lea r9, [rbp - 0x70]
mov edi, eax
xor r8d, r8d
mov eax, dword [rsp + 0x54]
xor edx, edx
or eax, 2
mov dword [rsp + 0x48], eax
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DrawStateW]
mov rcx, qword [r15 + 0x20]
mov edx, edi
call qword [sym.imp.GDI32.dll_SetTextColor]
movaps xmm0, xmmword [rbp - 0x80]
cmp dword [rsp + 0x58], 0
jne 0x1400029e3
test r12b, 0x10
je 0x1400029e3
movq rcx, xmm0
movdqa xmmword [rsp + 0x70], xmm0
psrldq xmm0, 8
mov rax, rcx
shr rax, 0x20
movq r8, xmm0
mov rdx, r8
sub r8d, ecx
shr rdx, 0x20
sub edx, eax
cmp r8d, edx
mov eax, edx
cmovl eax, r8d
and eax, 0xfffffffc
cmp eax, 0xc
jle 0x1400029ba
mov edx, 3
jmp 0x1400029c4
cmp r8d, edx
cmovl edx, r8d
sar edx, 2
neg edx
lea rcx, [rsp + 0x70]
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
mov rcx, qword [r15 + 0x20]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [r14 + 0x64], r13d
mov dword [r14 + 0x68], r12d
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400265c0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret