Function at 0x1022d48
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x01030138]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x190]
mov rdi, rcx
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x88]
mov qword [rsp + 0x78], rax
call qword [sym.imp.USER32.dll_BeginPaint]
mov rcx, qword [rdi + 8]
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, 2
inc eax
lea rcx, [rbp - 3]
movsxd r12, eax
mov rax, rbp
mul r12
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
xor r15d, r15d
mov r14, rax
cmp rax, r15
je 0x10230d2
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, r14
mov qword [rsp + 0x50], r15
mov r13d, eax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetClientRect]
lea edx, [rbp - 1]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x129
call qword [sym.imp.USER32.dll_SendMessageW]
mov r10, qword [rdi + 0x88]
mov ebx, r15d
and eax, ebp
cmp al, bpl
sete bl
bt dword [rdi + 0x64], 0xb
cmovb ebx, r15d
cmp r10, r15
je 0x1022ee3
cmp r13d, r15d
je 0x1022ee3
mov eax, dword [rdi + 0x6c]
cmp dword [rdi + 0x68], r15d
je 0x1022e93
neg ebx
lea edx, [r12 - 1]
sbb r8d, r8d
and r8d, 0x100000
or r8d, dword [rdi + 0x64]
neg eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], edx
lea r8d, [rbp + 2]
jmp 0x1022ec4
neg ebx
lea ecx, [r12 - 1]
mov r8d, 1
sbb edx, edx
and edx, 0x100000
or edx, dword [rdi + 0x64]
neg eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
sbb r9d, r9d
mov rdx, rsi
mov rcx, r10
neg r9d
mov qword [rsp + 0x20], r14
inc r9d
call qword [sym.imp.UxTheme.dll_DrawThemeText]
jmp 0x1022fd5
mov ecx, 8
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.GDI32.dll_SetTextColor]
cmp qword [rdi + 0x48], 0
mov r15d, eax
jne 0x1022f6c
cmp dword [rdi + 0x6c], 0
je 0x1022f6c
and dword [rsp + 0x80], 0
xor edx, edx
lea rcx, [rsp + 0x84]
lea r8d, [rdx + 0x58]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 8]
xor r9d, r9d
lea edx, [r9 + 0x31]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [rsp + 0x80]
mov edx, 0x5c
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jle 0x1022f6c
lea rcx, [rsp + 0x80]
mov byte [rsp + 0x95], 1
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [rdi + 0x48], rax
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x1022f7b
cmp dword [rdi + 0x6c], 0
jne 0x1022f92
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
neg ebx
lea r8d, [r12 - 1]
mov qword [rsp + 0x50], rax
sbb eax, eax
lea r9, [rsp + 0x58]
and eax, 0x100000
mov rdx, r14
mov rcx, rsi
or eax, dword [rdi + 0x64]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_DrawTextW]
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetTextColor]
xor r15d, r15d
cmp dword [rdi + 0x7c], r15d
jne 0x102309b
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_CopyRect]
lea r11, [rsp + 0x68]
mov r9d, r13d
mov r8, rsi
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.0102312c
cmp qword [rdi + 0x88], r15
je 0x102302e
cmp r13d, r15d
je 0x102302e
cmp dword [rdi + 0x68], r15d
je 0x1023026
mov r12d, 0xfffffffc
jmp 0x1023034
mov r12d, 0xfffffffe
jmp 0x1023039
mov r12d, 0xfffffffd
mov ebp, 3
test byte [rdi + 0x64], 1
je 0x102304f
mov eax, dword [rsp + 0x60]
sub eax, dword [rsp + 0x70]
cdq
sub eax, edx
sar eax, 1
mov r15d, eax
test byte [rdi + 0x64], 4
je 0x1023067
mov eax, dword [rsp + 0x64]
sub eax, dword [rsp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov r13d, eax
jmp 0x102306a
xor r13d, r13d
lea rdx, [rsp + 0x68]
lea rcx, [rdi + 0x74]
call qword [sym.imp.USER32.dll_CopyRect]
lea rcx, [rdi + 0x74]
mov r8d, r13d
mov edx, r15d
call qword [sym.imp.USER32.dll_OffsetRect]
lea rcx, [rdi + 0x74]
mov r8d, r12d
mov edx, ebp
call qword [sym.imp.USER32.dll_InflateRect]
xor r15d, r15d
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [rdi + 8]
jne 0x10230b4
lea rdx, [rdi + 0x74]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov rax, qword [rsp + 0x50]
cmp rax, r15
je 0x10230ca
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_EndPaint]
mov r11, qword [rsp + 0x78]
xor eax, eax
mov dword [r11], 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.01027250
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret