Function at 0x1400054d0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x10b0
call fcn.140012000
sub rsp, rax
mov rax, qword [0x140019280]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
mov r14, r8
mov bpl, r9b
mov rbx, rdx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
mov rdx, r14
mov r13, rcx
call fcn.140005380
lea rdx, [rsp + 0x68]
mov rcx, rbx
mov r12b, al
mov byte [rsp + 0x40], al
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x98]
mov edi, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x9c]
sub esi, r8d
sub esi, dword [rsp + 0x68]
sub edi, ecx
xor eax, eax
sub edi, dword [rsp + 0x6c]
inc esi
inc edi
cmp r12b, al
je 0x1400055cd
cmp bpl, al
jne 0x140005625
imul ecx, dword [rsp + 0x44]
imul r8d, dword [rsp + 0x48]
mov eax, 0x51eb851f
mov dword [rsp + 0x30], 0x206
xor r9d, r9d
imul ecx
mov ecx, edx
sar ecx, 5
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, 0x51eb851f
add ecx, edi
mov dword [rsp + 0x28], ecx
mov rcx, rbx
imul r8d
sar edx, 5
xor r8d, r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, esi
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp bpl, al
jne 0x140005625
lea rdx, [rsp + 0xa0]
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xa0]
mov r9d, 0x400
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 1
call fcn.1400051a4
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, 8
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, 5
mov rcx, rbx
sub edi, eax
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov ebp, eax
jmp 0x140005845
cmp ebp, 0x200
jge 0x14000584e
lea rdx, [rsp + 0xa0]
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
cmp word [rsp + 0xa0], ax
je 0x1400056be
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xa0]
mov r9d, 0x400
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 1
call fcn.1400051a4
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
cmp r12b, al
je 0x140005829
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rsp + 0x58]
mov r8d, 0x51eb851f
mov eax, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, r8d
sub ecx, dword [rsp + 0x68]
imul ecx, dword [rsp + 0x48]
imul ecx
mov ecx, edx
sar ecx, 5
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, r8d
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x5c]
sub ecx, dword [rsp + 0x6c]
sub ecx, edi
imul ecx, dword [rsp + 0x44]
imul ecx
mov ecx, edx
sar ecx, 5
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, r8d
mov dword [rsp + 0x54], ecx
mov ecx, dword [rsp + 0x60]
sub ecx, dword [rsp + 0x58]
inc ecx
imul ecx, dword [rsp + 0x48]
imul ecx
mov ecx, edx
sar ecx, 5
mov eax, ecx
shr eax, 0x1f
add ecx, eax
mov eax, r8d
mov r8d, 0x400
mov dword [rsp + 0x4c], ecx
mov ecx, dword [rsp + 0x64]
sub ecx, dword [rsp + 0x5c]
inc ecx
imul ecx, dword [rsp + 0x44]
imul ecx
mov rcx, rbx
mov r12d, edx
lea rdx, [rsp + 0x8a0]
sar r12d, 5
mov eax, r12d
shr eax, 0x1f
add r12d, eax
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, [0x140014718]
lea rcx, [rsp + 0x8a0]
call fcn.140005e30
test eax, eax
jne 0x1400057fa
lea edx, [rax - 0x10]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x1400057fa
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 0x152
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x8c]
mov eax, 0x51eb851f
sub r11d, dword [rsp + 0x84]
inc r11d
imul r11d, dword [rsp + 0x44]
imul r11d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
add r12d, edx
mov eax, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x30], 0x204
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r12b, byte [rsp + 0x40]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
cmp rax, qword [rsp + 0x78]
je 0x14000584e
inc ebp
xor eax, eax
cmp rbx, rax
jne 0x140005651
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.140008090
add rsp, 0x10b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret