Function at 0x1400349e8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rdi, rdx
mov rsi, r8
mov edx, 0xfffffff0
mov r14, rcx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
shr rax, 0x1b
xorps xmm0, xmm0
and al, 1
lea rdx, [rbp - 0x80]
movzx eax, al
mov rcx, r14
mov dword [rbp + 0x2a8], eax
movups xmmword [rbp - 0x80], xmm0
lea r13d, [rax + 1]
call qword [sym.imp.USER32.dll_GetClientRect]
dec dword [rbp - 0x74]
lea rcx, [rbp - 0x10]
movaps xmm0, xmmword [rbp - 0x80]
xor r15d, r15d
xor edx, edx
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov ebx, r15d
lea r8d, [r15 + 0x5c]
call fcn.140049780
mov rcx, qword [rsi]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r8d, [r15 + 4]
mov r9d, r13d
mov dword [rsp + 0x20], 0xd2
mov rdx, rdi
call qword [sym.imp.UxTheme.dll_GetThemeFont]
test eax, eax
js 0x140034aa4
lea rcx, [rbp - 0x10]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rbx, rax
mov rsi, rbx
test rbx, rbx
jne 0x140034ac1
xor r9d, r9d
lea edx, [rbx + 0x31]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x200
mov r12, rax
call fcn.140049780
mov r8d, 0x100
lea rdx, [rbp + 0x50]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0xfffffff0
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor ebx, ebx
mov r15, rax
and r15d, 0x300
mov qword [rsp + 0x60], rbx
cmp word [rbp + 0x50], bx
je 0x140034ba5
lea rcx, [rbp + 0x50]
call fcn.14003fb48
mov r8, rax
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov rcx, qword [rsp + 0x60]
cmp r15, 0x300
jne 0x140034b5b
mov eax, dword [rbp - 0x78]
sub eax, ecx
sub eax, dword [rbp - 0x80]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jmp 0x140034b61
mov r8d, 7
mov r9d, dword [rsp + 0x64]
mov eax, r9d
cdq
sub eax, edx
mov edx, dword [rsp + 0x50]
add edx, r8d
sar eax, 1
mov r8d, dword [rsp + 0x54]
add dword [rsp + 0x74], eax
mov dword [rsp + 0x50], edx
lea eax, [r8 + r9]
lea r9d, [rcx + 4]
mov dword [rsp + 0x5c], eax
add r9d, edx
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov dword [rsp + 0x58], r9d
call qword [sym.imp.GDI32.dll_ExcludeClipRect]
jmp 0x140034bcd
lea r9, [rsp + 0x60]
mov r8d, 1
lea rdx, [0x1400503a8]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [rsp + 0x64]
cdq
sub eax, edx
sar eax, 1
add dword [rsp + 0x74], eax
movaps xmm0, xmmword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov rcx, qword [rbp + 0x2a0]
mov r9d, r13d
mov qword [rsp + 0x28], rax
mov r8d, 4
lea rax, [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call qword [sym.imp.UxTheme.dll_GetThemeBackgroundContentRect]
mov eax, dword [rbp - 0x64]
mov rcx, rdi
mov r9d, dword [rbp - 0x68]
mov r8d, dword [rbp - 0x6c]
mov edx, dword [rbp - 0x70]
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_ExcludeClipRect]
movaps xmm0, xmmword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov r8, qword [0x14006a628]
xor r9d, r9d
mov rcx, rdi
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x20], ebx
call fcn.140034d40
xor edx, edx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectClipRgn]
cmp word [rbp + 0x50], bx
je 0x140034d0a
sub dword [rsp + 0x58], 2
lea rcx, [rbp - 0x60]
add dword [rsp + 0x50], 2
mov ebx, 0x48
mov r8d, ebx
xor edx, edx
call fcn.140049780
cmp byte [rbp + 0x2a8], 0
mov edx, 0x129
mov eax, dword [0x14006a5c4]
mov rcx, r14
cmovne eax, dword [0x14006a5cc]
mov dword [rbp - 0x60], ebx
xor ebx, ebx
cmp r15, 0x300
mov dword [rbp - 0x5c], 1
mov dword [rbp - 0x58], eax
sete bl
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, ebx
mov r9d, r13d
bts edx, 0x14
mov r8d, 4
test rax, rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmove edx, ebx
or edx, 0x20
lea rax, [rbp + 0x50]
mov dword [rsp + 0x30], edx
mov rdx, rdi
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x2a0]
mov rcx, qword [rax]
call qword [sym.imp.UxTheme.dll_DrawThemeTextEx]
test rsi, rsi
je 0x140034d18
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rbx, qword [rsp + 0x390]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret