Function at 0x1400c5a00
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rcx
call fcn.14004b618
mov rcx, rax
test rax, rax
jne 0x1400c5a54
mov ecx, 0x80004005
call fcn.14004a980
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x29], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f], xmm0
xor eax, eax
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x11]
call fcn.1400b23c0
nop
mov r12, qword [r13 + 8]
mov qword [rbp - 0x19], r12
mov qword [rbp + 0xf], r12
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
mov qword [rbp + 7], rax
mov edx, 0x3e8
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [rax + 1]
test esi, esi
jns 0x1400c5ac3
mov ecx, 0x80070057
call fcn.14004a980
int3
mov r15d, 1
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x1400c5ae7
mov edx, esi
lea rcx, [rbp - 0x29]
call fcn.14004ed24
mov rbx, qword [rbp - 0x29]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x1400c5b07
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401049f4
test eax, eax
js 0x1400c5dc6
cmp eax, dword [rbx - 0xc]
jg 0x1400c5dc6
mov dword [rbx - 0x10], eax
cdqe
xor ecx, ecx
mov word [rbx + rax*2], cx
mov edx, 0x3e8
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rbp + 0x1f]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rdi, qword [r13 + 0x970]
lea rdx, [rbp + 0x1f]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400c5b66
lea rdx, [rbp + 0x27]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rsi, rbx
xor eax, eax
mov edi, eax
cmp word [rbx], ax
je 0x1400c5bfc
xor r12d, r12d
nop dword [rax]
movzx ecx, word [rsi]
call fcn.1401052a8
test eax, eax
je 0x1400c5b96
test rdi, rdi
jne 0x1400c5b99
mov rdi, rsi
jmp 0x1400c5b99
mov rdi, r12
add rsi, 2
cmp word [rsi], r12w
jne 0x1400c5b80
test rdi, rdi
mov r12, qword [rbp - 0x19]
je 0x1400c5bfc
sub rdi, rbx
sar rdi, 1
test edi, edi
jns 0x1400c5bc1
mov ecx, 0x80070057
call fcn.14004a980
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x1400c5bde
mov edx, edi
lea rcx, [rbp - 0x29]
call fcn.14004ed24
mov rbx, qword [rbp - 0x29]
cmp edi, dword [rbx - 0xc]
jg 0x1400c5bf1
mov dword [rbx - 0x10], edi
movsxd rax, edi
xor ecx, ecx
mov word [rbx + rax*2], cx
jmp 0x1400c5bfc
mov ecx, 0x80070057
call fcn.14004a980
int3
lea rcx, [rbp - 0x29]
call fcn.14004e4bc
mov rbx, qword [rbp - 0x29]
or edi, 0xffffffff
cmp dword [rbx - 0x10], 0
jne 0x1400c5d74
lea rcx, [r13 + 0x908]
call fcn.1400bfe60
test eax, eax
je 0x1400c5d74
mov edx, 0xa9a9a9
mov rcx, r14
call qword [sym.imp.GDI32.dll_SetTextColor]
mov r15d, eax
lea edx, [rdi + 0x5b]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, eax
lea ecx, [rdi + 0xd]
lea r8d, [rdi + 0x49]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, 0x10
cmp eax, ecx
cmovg eax, ecx
mov dword [rbp - 0x19], eax
mov byte [rsp + 0x20], 0
mov r9d, 0x2bc
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x11]
call fcn.1400b2430
mov rdx, qword [rbp - 0x21]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov r13, rax
lea rdx, [0x140191058]
lea rcx, [rbp - 1]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp - 9]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400c5d0a
cmp dword [rbx + 0x10], 0
jl 0x1400c5cfc
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400c5cfc
call fcn.14004ecac
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400c5cf2
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x29], rax
jmp 0x1400c5d0a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x29]
call fcn.14004edac
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c5d27
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add dword [rbp + 0x1f], 3
sub dword [rbp + 0x23], 5
mov dword [rsp + 0x20], 0x24
lea r9, [rbp + 0x1f]
mov r8d, edi
mov rbx, qword [rbp - 0x29]
mov rdx, rbx
mov r14, qword [rbp + 7]
mov rcx, r14
call qword [sym.imp.USER32.dll_DrawTextW]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov edx, r15d
mov rcx, r14
call qword [sym.imp.GDI32.dll_SetTextColor]
nop
mov rdx, r14
mov rcx, r12
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rcx, [rbp - 0x11]
call fcn.1400b2400
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400c5dad
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp - 0x21]
test eax, eax
mov eax, 0
cmovne rcx, rax
mov qword [rbp - 0x21], rcx
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400c5dd1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400c5dd1
mov ecx, 0x80070057
call fcn.14004a980
nop
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400dd830
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret