Function at 0x1400cdd0c
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
movzx ecx, r8w
mov edx, 0x612
movzx r12d, r9w
mov r13d, 1
sub ecx, edx
je 0x1400cde9c
sub ecx, 0x34c
je 0x1400cde63
sub ecx, r13d
je 0x1400cde18
sub ecx, 2
je 0x1400cdddf
cmp ecx, r13d
jne 0x1400cddb1
and qword [rax - 0x38], 0
xor r9d, r9d
mov edx, 0x962
mov r8d, 0x147
mov rcx, r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [0x14022ab50]
mov byte [rcx + 0xb8d], al
mov rcx, qword [0x14022ab50]
cmp byte [rcx + 0xb8c], al
je 0x1400cddb1
xor r9d, r9d
mov r8d, r13d
xor edx, edx
mov rcx, qword [0x14022ab58]
call fcn.140088340
mov rcx, qword [0x14022a9e0]
mov dl, r13b
call fcn.1400230a4
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x961
mov r8d, 0x147
mov rcx, r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [0x14022ab50]
mov byte [rcx + 0xb8c], al
mov rcx, qword [0x14022ab50]
cmp al, byte [rcx + 0xb8d]
jmp 0x1400cdd9b
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x95f
mov r8d, 0x147
mov rcx, r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [0x14022ab50]
mov byte [rcx + 0xb8b], al
mov rcx, qword [0x14022ab50]
cmp byte [rcx + 0xb8a], al
je 0x1400cddb1
xor r9d, r9d
mov edx, r13d
xor r8d, r8d
jmp 0x1400cdda5
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x95e
mov r8d, 0x147
mov rcx, r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [0x14022ab50]
mov byte [rcx + 0xb8a], al
mov rcx, qword [0x14022ab50]
cmp al, byte [rcx + 0xb8b]
jmp 0x1400cde4f
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x147
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
cmp r12w, 5
jne 0x1400cdf07
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r15, eax
test eax, eax
jle 0x1400cdf03
lea rcx, [r15*2 + 2]
call fcn.140113e8c
xor edi, edi
mov rsi, rax
test rax, rax
je 0x1400cdf7c
lea r8d, [r15 + 1]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1400cdf59
xor edi, edi
jmp 0x1400cdf7c
xor edi, edi
cmp r12w, r13w
jne 0x1400cdf7c
test rbp, rbp
jle 0x1400cdf7c
xor r9d, r9d
mov r8, rbp
mov edx, 0x149
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jle 0x1400cdf7c
lfence
lea rcx, [rax*2 + 2]
call fcn.140113e8c
mov rsi, rax
test rax, rax
je 0x1400cdf7c
mov r9, rax
mov r8, rbp
mov edx, 0x148
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [0x1401a1d74]
mov rcx, rsi
call fcn.14013463c
mov rcx, rsi
mov rbx, rax
call fcn.140113e18
xor edi, edi
test rbx, rbx
sete dil
mov edx, 0x84b
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, edi
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0x84d
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, edi
call qword [sym.imp.USER32.dll_EnableWindow]
cmp r12w, r13w
jne 0x1400cddb1
cmp dword [0x14022d880], 0
je 0x1400cddb1
test rbp, rbp
jne 0x1400cdfd3
lea rax, [0x14022d890]
jmp 0x1400cdfeb
mov rcx, qword [0x14022ab50]
lea edx, [rbp - 1]
call fcn.14007adac
test rax, rax
je 0x1400cddc0
mov rcx, qword [0x14022ab58]
xor r8d, r8d
mov rdx, rax
call fcn.140080004
jmp 0x1400cddc0