Function at 0x1021328
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
mov eax, dword [0x010318fc]
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
test al, 1
jne 0x1021383
movss xmm0, dword [0x0103027c]
or eax, 1
mov dword [0x010318fc], eax
mulss xmm0, dword [0x0100797c]
divss xmm0, dword [0x0100795c]
cvttss2si eax, xmm0
mov dword [0x010318f8], eax
test r8, r8
je 0x10213da
mov rcx, qword [0x01030268]
lea rsi, [0x01030268]
cmp rcx, rsi
je 0x102140f
bt dword [rcx + 0x1c], 0x1d
jae 0x102140f
cmp byte [rcx + 0x19], 4
jb 0x102140f
mov eax, dword [r8 + 8]
mov r9d, dword [r8 + 4]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x30], eax
mov eax, dword [r8 + 0xc]
mov edx, 0xc
mov dword [rsp + 0x28], eax
mov eax, dword [r8]
lea r8, [0x01006010]
mov dword [rsp + 0x20], eax
call fcn.01021024
jmp 0x102140f
mov rcx, qword [0x01030268]
lea rsi, [0x01030268]
cmp rcx, rsi
je 0x102140f
bt dword [rcx + 0x1c], 0x1d
jae 0x102140f
cmp byte [rcx + 0x19], 4
jb 0x102140f
mov rcx, qword [rcx + 0x10]
lea r8, [0x01006010]
mov edx, 0xd
call fcn.01012194
mov rcx, qword [rbp + 8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 5
mov r13, rax
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rbx
mov edx, eax
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rcx, qword [rbp + 0x50]
mov r14d, eax
test rcx, rcx
je 0x1021461
mov edx, 8
call qword [sym.imp.UxTheme.dll_GetThemeSysColor]
jmp 0x102146c
mov ecx, 8
call qword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
mov r12d, eax
call qword [sym.imp.USER32.dll_GetClientRect]
mov r11d, dword [0x010318f8]
mov rcx, qword [rbp + 0x50]
add dword [rsp + 0x44], r11d
test rcx, rcx
je 0x1021518
mov edx, 4
lea r8d, [rdx - 3]
call qword [sym.imp.UxTheme.dll_IsThemeBackgroundPartiallyTransparent]
test eax, eax
je 0x10214ef
mov rcx, qword [0x01030268]
cmp rcx, rsi
je 0x10214df
bt dword [rcx + 0x1c], 0x1d
jae 0x10214df
cmp byte [rcx + 0x19], 4
jb 0x10214df
mov rcx, qword [rcx + 0x10]
lea r8, [0x01006010]
mov edx, 0xe
call fcn.01012194
mov rcx, qword [rbp + 8]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.UxTheme.dll_DrawThemeParentBackground]
and qword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x50]
mov r9d, 1
lea rax, [rsp + 0x40]
lea r8d, [r9 + 3]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x1021530
mov r9d, 0xf
lea rdx, [rsp + 0x40]
mov rcx, rbx
lea r8d, [r9 - 9]
call qword [sym.imp.USER32.dll_DrawEdge]
mov rcx, qword [rbp + 8]
lea rdx, [0x01031510]
mov r8d, 0x1f4
call qword [sym.imp.USER32.dll_GetWindowTextW]
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
movss xmm5, dword [0x0103027c]
mulss xmm5, dword [0x01007978]
lea rdx, [0x01031510]
or r8d, 0xffffffff
mov rcx, rbx
divss xmm5, dword [0x0100795c]
cvttss2si eax, xmm5
add dword [rsp + 0x40], eax
mov eax, dword [0x010318f8]
sub dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_DrawTextW]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkColor]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret