Function at 0x1400cec00
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x638
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0x610], rax
mov rdi, r9
mov r13, rdx
xor r8d, r8d
xor r9d, r9d
mov edx, 0x1032
mov rbp, rcx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test eax, eax
jne 0x1400cec65
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x50f
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call fcn.1400f11b0
xor eax, eax
jmp 0x1400cef89
imul eax, ebx, 0x144
mov ecx, 0x40
mov qword [rsp + 0x620], r15
movsxd rdx, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
test rax, rax
jne 0x1400cecba
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x50a
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call fcn.1400f11b0
xor eax, eax
jmp 0x1400cef81
mov qword [rsp + 0x630], r12
movsxd r12, ebx
mov ecx, 0x40
lea rdx, [r12*4]
mov qword [rsp + 0x628], r14
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, rbp
mov r14, rax
mov edi, ebx
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x1400cee06
mov qword [rsp + 0x670], rsi
mov esi, ebx
nop word [rax + rax]
movsxd r8, edi
mov edx, 0x102c
mov r9d, 2
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 2
jne 0x1400cede0
lea r9d, [rax - 1]
lea r8, [rsp + 0xf0]
mov edx, edi
mov rcx, rbp
call fcn.1400c13c0
lea rax, [r15 - 2]
nop word [rax + rax]
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x1400ced60
lea r8, [rsp + 0xf0]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [r8 + rdx*2]
lea rdx, [rdx + 1]
mov word [rax + rdx*2 - 2], cx
test cx, cx
jne 0x1400ced80
lea rcx, [r15 - 2]
nop word [rax + rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x1400ceda0
mov eax, dword [0x1401839b4]
mov dword [rcx], eax
test rsi, rsi
jne 0x1400cedd9
mov rcx, rbx
nop word [rax + rax]
movzx eax, word [rsp + rcx + 0xf0]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x37e], ax
test ax, ax
jne 0x1400cedc0
mov dword [r14 + rsi*4], edi
inc rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, rbp
inc edi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x1400ced20
mov rsi, qword [rsp + 0x670]
lea rdx, [rsp + 0xf0]
mov r8d, 0x104
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x84]
lea r9, [rsp + 0x80]
lea rcx, [rsp + 0x380]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400a17b0
mov dword [rsp + 0x38], 1
or r9d, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0xf0]
mov rcx, rax
or r8d, r9d
mov dword [rsp + 0x28], ebx
mov rdi, rax
mov qword [rsp + 0x20], r15
call fcn.140086c80
lea rdx, [rsp + 0xf0]
mov rcx, r13
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, r13
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rdi, rdi
je 0x1400cef07
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r12, r12
jle 0x1400cef48
nop dword [rax]
movsxd r8, dword [r14 + rbx*4]
lea r9, [rsp + 0x90]
mov edx, 0x102b
mov rcx, rbp
mov dword [rsp + 0xa0], 3
mov dword [rsp + 0x9c], 3
call qword [sym.imp.USER32.dll_SendMessageW]
inc rbx
cmp rbx, r12
jl 0x1400cef10
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r14, qword [rsp + 0x628]
mov r12, qword [rsp + 0x630]
mov eax, 1
mov r15, qword [rsp + 0x620]
mov rcx, qword [rsp + 0x610]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x638
pop r13
pop rdi
pop rbp
pop rbx
ret