Function at 0x140004654
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x890
mov rsi, r8
mov r13b, r9b
mov r15, rdx
lea r9, [rsp + 0x40]
mov rdx, rsi
lea r8, [rsp + 0x44]
mov r14, rcx
call fcn.140003ee0
lea rdx, [rsp + 0x48]
mov byte [rbp + 0x7e8], al
mov rcx, r15
mov bl, al
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x78]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetClientRect]
mov r8d, dword [rsp + 0x50]
xor r11d, r11d
sub r8d, dword [rsp + 0x48]
mov edi, 0x51eb851f
mov r9d, dword [rsp + 0x54]
inc r8d
sub r9d, dword [rsp + 0x4c]
mov ecx, r8d
mov edx, dword [rbp - 0x80]
inc r9d
mov r10d, dword [rbp - 0x7c]
sub ecx, edx
mov r12d, r9d
mov dword [rsp + 0x58], ecx
sub r12d, r10d
test bl, bl
je 0x1400047bc
test r13b, r13b
jne 0x140004804
imul edx, dword [rsp + 0x44]
mov eax, edi
imul r10d, dword [rsp + 0x40]
imul edx
mov r14d, edx
sar r14d, 5
mov eax, r14d
shr eax, 0x1f
add r14d, eax
mov eax, edi
imul r10d
add r14d, ecx
mov esi, edx
sub r8d, r14d
sar esi, 5
mov eax, r8d
cdq
mov ecx, esi
sub eax, edx
shr ecx, 0x1f
sar eax, 1
add esi, ecx
mov edi, eax
add esi, r12d
sub r9d, esi
mov rcx, r15
mov eax, r9d
cdq
sub eax, edx
lea edx, [r11 - 0x10]
sar eax, 1
add edi, dword [rsp + 0x48]
mov ebx, eax
cmovs edi, r11d
add ebx, dword [rsp + 0x4c]
cmovs ebx, r11d
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
shr rax, 0xa
mov r9d, ebx
not eax
mov r8d, edi
and eax, 2
xor edx, edx
or eax, 0x204
mov rcx, r15
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rsi, qword [rbp + 0x7e0]
mov r14, qword [rbp + 0x7d0]
test r13b, r13b
jne 0x140004804
mov r8d, 0x400
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9d, 0x400
mov qword [rsp + 0x28], rsi
lea r8, [rbp - 0x70]
mov dword [rsp + 0x20], 1
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140003f8c
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, 8
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, 5
mov rcx, r15
sub r12d, eax
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
mov qword [rsp + 0x70], rax
xor eax, eax
mov edi, eax
test rbx, rbx
je 0x14000498f
mov r15d, dword [rsp + 0x58]
mov r13b, byte [rbp + 0x7e8]
cmp edi, 0x200
jge 0x14000498f
mov r8d, 0x400
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
cmp word [rbp - 0x70], ax
je 0x140004898
mov qword [rsp + 0x28], rsi
lea r8, [rbp - 0x70]
mov r9d, 0x400
mov dword [rsp + 0x20], 1
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140003f8c
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
test r13b, r13b
je 0x14000496c
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rsp + 0x6c]
mov r9d, 0x51eb851f
mov r8d, dword [rsp + 0x64]
mov eax, r9d
mov r10d, dword [rsp + 0x60]
sub ecx, r8d
inc ecx
mov dword [rsp + 0x30], 0x204
imul ecx, dword [rsp + 0x40]
sub r8d, r12d
sub r8d, dword [rsp + 0x4c]
imul r8d, dword [rsp + 0x40]
imul ecx
mov ecx, dword [rsp + 0x68]
sub ecx, r10d
mov r11d, edx
inc ecx
sar r11d, 5
imul ecx, dword [rsp + 0x44]
mov eax, r11d
shr eax, 0x1f
add r11d, eax
mov eax, r9d
mov dword [rsp + 0x28], r11d
imul ecx
mov ecx, edx
sar ecx, 5
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, r9d
imul r8d
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov r9d, edx
sar r9d, 5
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
sub r10d, eax
mov eax, 0x51eb851f
sub r10d, dword [rsp + 0x48]
imul r10d, dword [rsp + 0x44]
imul r10d
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
cmp rax, qword [rsp + 0x70]
je 0x14000498f
inc edi
test rax, rax
jne 0x140004841
mov rbx, qword [rsp + 0x8d8]
add rsp, 0x890
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret