Function at 0x1400d82e8
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 0x1400d8470
sub ecx, 0x34c
je 0x1400d8426
sub ecx, r13d
je 0x1400d83ed
sub ecx, 2
je 0x1400d8379
cmp ecx, r13d
jne 0x1400d83bf
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 [0x14021c740]
mov byte [rcx + 0xb95], al
mov rcx, qword [0x14021c740]
cmp byte [rcx + 0xb94], al
jmp 0x1400d83b0
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 [0x14021c740]
mov byte [rcx + 0xb94], al
mov rcx, qword [0x14021c740]
cmp al, byte [rcx + 0xb95]
je 0x1400d83bf
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call fcn.140090b78
mov rcx, qword [0x14021c5d8]
mov dl, r13b
call fcn.1400243ac
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, 0x95f
mov r8d, 0x147
mov rcx, r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [0x14021c740]
mov byte [rcx + 0xb93], al
mov rcx, qword [0x14021c740]
cmp byte [rcx + 0xb92], al
jmp 0x1400d845d
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 [0x14021c740]
mov byte [rcx + 0xb92], al
mov rcx, qword [0x14021c740]
cmp al, byte [rcx + 0xb93]
je 0x1400d83bf
xor r8d, r8d
mov ecx, r13d
xor edx, edx
jmp 0x1400d83ba
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 0x1400d84db
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r15, eax
test eax, eax
jle 0x1400d84d7
lea rcx, [r15*2 + 2]
call fcn.140120104
xor edi, edi
mov rsi, rax
test rax, rax
je 0x1400d854d
lea r8d, [r15 + 1]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1400d852a
xor edi, edi
jmp 0x1400d854d
xor edi, edi
cmp r12w, r13w
jne 0x1400d854d
test rbp, rbp
jle 0x1400d854d
xor r9d, r9d
mov r8, rbp
mov edx, 0x149
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jle 0x1400d854d
lea rcx, [rax*2 + 2]
call fcn.140120104
mov rsi, rax
test rax, rax
je 0x1400d854d
mov r9, rax
mov r8, rbp
mov edx, 0x148
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [0x14019494c]
mov rcx, rsi
call fcn.140142524
mov rcx, rsi
mov rbx, rax
call fcn.14012008c
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 0x1400d83bf
cmp dword [0x14021f430], 0
je 0x1400d83bf
test rbp, rbp
jne 0x1400d85a4
lea rax, [0x14021f440]
jmp 0x1400d85bc
mov rcx, qword [0x14021c740]
lea edx, [rbp - 1]
call fcn.1400833f0
test rax, rax
je 0x1400d83ce
mov rcx, qword [0x14021c748]
xor r8d, r8d
mov rdx, rax
call fcn.1400885cc
jmp 0x1400d83ce