Function at 0x1400178e0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x140155040]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x845c
mov r12d, ebx
mov rsi, rcx
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rbp + 0x10]
lea rcx, [0x14015a500]
call fcn.14005ebc0
nop dword [rax]
test eax, eax
js 0x14001822b
mov ecx, dword [rbp + 0x20]
test ecx, ecx
je 0x14001822b
mov qword [rsp + 0x178], rdi
lea rdi, str.UNKNOWN
mov qword [rsp + 0x180], r13
mov r13d, ecx
mov qword [rsp + 0x188], r14
mov qword [rsp + 0x140], r15
mov r15, qword [rbp + 0x28]
add r15, 0x10
nop word [rax + rax]
inc r12d
lea rdx, [rbp - 0x60]
mov ecx, r12d
mov r8d, 0xa
call fcn.1400cca94
lea rax, [rbp - 0x60]
mov dword [rsp + 0x30], 5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x34], 0x7fffffff
mov edx, 0x104d
mov qword [rsp + 0x58], rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, rax
mov r8d, 0x10
mov rax, qword [r15 - 0x10]
cmp rax, 6
jne 0x140017b98
movzx r9d, word [r15 + 8]
lea rdx, [rbp - 0x5c]
mov ecx, dword [r15 - 4]
and r9d, 0xfff
add rcx, r9
mov dword [rbp - 0x60], 0x780030
call fcn.1400cca94
lea rax, [rbp - 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, str.ARM64X
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [r15 + 8]
mov edx, eax
shr edx, 0xc
and edx, 3
je 0x140017b1f
sub edx, 1
je 0x140017ac8
cmp edx, 1
je 0x140017aa6
mov qword [rsp + 0x48], rdi
jmp 0x140018044
bt ax, 0xe
mov rdx, qword [r15]
jae 0x140017abc
lea rcx, str._0x_llx
jmp 0x140018036
lea rcx, [0x1401128c0]
jmp 0x140018036
shr eax, 0xe
sub eax, 1
je 0x140017b0a
sub eax, 1
je 0x140017af4
cmp eax, 1
je 0x140017ae5
mov qword ds:[rsp + 0x48], rdi
jmp 0x140018044
mov rdx, qword [r15]
lea rcx, str.0x_016llx
jmp 0x140018036
mov edx, dword ds:[r15]
lea rcx, str.0x_08lx
call fcn.140062000
jmp 0x14001803b
movzx edx, word [r15]
lea rcx, str.0x_04x
call fcn.140062000
jmp 0x14001803b
shr eax, 0xe
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x104c
mov dword [rsp + 0x34], r14d
mov rcx, rsi
mov dword [rsp + 0x38], 3
sub eax, 1
je 0x140017b87
sub eax, 1
je 0x140017b76
xor r8d, r8d
cmp eax, 1
je 0x140017b65
mov qword ds:[rsp + 0x48], rdi
jmp 0x140018069
lea rax, str.Zero_8_bytes
mov qword [rsp + 0x48], rax
jmp 0x140018069
lea rax, str.Zero_4_bytes
mov qword [rsp + 0x48], rax
jmp 0x140018066
lea rax, str.Zero_2_bytes
mov qword [rsp + 0x48], rax
jmp 0x140018066
nop dword [rax + rax]
cmp rax, 3
jne 0x140017ca5
mov ecx, dword [r15]
lea rdx, [rbp - 0x5c]
mov eax, dword [r15 - 4]
mov ebx, ecx
and ecx, 0xfff
shr ebx, 0xd
add rcx, rax
mov dword [rbp - 0x60], 0x780030
call fcn.1400cca94
lea rax, ds:[rbp - 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, str.IMPORT
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x1000
lea r8, str._branch
test dword [r15], eax
lea rcx, str.IAT_index__05x_ls
lea rax, str._call
mov edx, ebx
cmovne r8, rax
call fcn.140062000
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 3
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
jmp 0x14001806f
cmp rax, 4
jne 0x140017d97
movzx ecx, word [r15]
lea rdx, [rbp - 0x5c]
mov eax, dword [r15 - 4]
and ecx, 0xfff
add rcx, rax
mov dword [rbp - 0x60], 0x780030
call fcn.1400cca94
lea rax, ds:[rbp - 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, str.INDIRECT
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [r15]
lea rcx, str.CFG
bt ax, 0xe
lea r9, [0x14010fd1c]
cmovb r9, rcx
lea r8, [0x14010fd1c]
bt ax, 0xd
lea rcx, str.REXW
cmovb r8, rcx
lea rdx, [0x14010fd1c]
bt ax, 0xc
lea rax, str.CALL
cmovb rdx, rax
lea rcx, str._ls_ls_ls
call fcn.140062000
jmp 0x14001803b
nop word [rax + rax]
cmp rax, 5
jne 0x140017e4e
movzx ecx, word [r15]
lea rdx, [rbp - 0x5c]
mov eax, dword [r15 - 4]
and ecx, 0xfff
add rcx, rax
mov dword [rbp - 0x60], 0x780030
call fcn.1400cca94
lea rax, [rbp - 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, str.BRANCH
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [r15]
lea rcx, str.Register__u
shr edx, 0xc
call fcn.140062000
jmp 0x14001803b
movzx edx, word [r15]
mov ecx, dword [r15 - 4]
and edx, 0xfff
add rcx, rdx
mov dword [rbp - 0x60], 0x780030
lea rdx, [rbp - 0x5c]
cmp rax, 7
jne 0x140017f5f
call fcn.1400cca94
lea rax, [rbp - 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, str.FUNCTION
mov dword ds:[rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 2
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [r15]
lea r9, [rsp + 0x30]
shr ecx, 0xc
mov edx, 0x104c
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], 3
sub ecx, 1
je 0x140017f4e
sub ecx, 1
je 0x140017f3d
xor r8d, r8d
cmp ecx, 1
mov rcx, rsi
je 0x140017f2c
mov qword [rsp + 0x48], rdi
jmp 0x140018069
lea rax, str.ARM64_THUNK
mov qword [rsp + 0x48], rax
jmp 0x140018069
lea rax, str.ARM64_BRANCH26
mov qword [rsp + 0x48], rax
jmp 0x140018063
lea rax, str.X64_REL32
mov qword [rsp + 0x48], rax
jmp 0x140018063
nop
call fcn.1400cca94
lea rax, [rbp - 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [r15]
shr eax, 0xc
cmp eax, 0xa
ja case.0x140017fba.4
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x18260]
add rcx, rdx
jmp rcx
lea rax, [0x140111a88]
jmp 0x140017ffb
lea rax, str.HIGH
jmp 0x140017ffb
lea rax, [0x140112a28]
jmp 0x140017ffb
lea rax, str.HIGHLOW
nop
jmp 0x140017ffb
lea rax, str.DIR64
jmp 0x140017ffb
lea rax, str.MOV32
jmp 0x140017ffb
lea rax, str.MOV32_T_
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 2
mov rcx, rsi
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [r15 - 0x10]
lea rcx, str.0x_llx
call fcn.140062000
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 3
mov rcx, rsi
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [r15 + 0x38]
test r8, r8
je 0x1400181f8
sub r8d, dword [0x14015a508]
mov edx, ebx
mov r9d, dword [0x14015a520]
test r9d, r9d
je 0x1400180c5
mov r10, qword [0x14015a528]
nop dword [rax + rax]
mov eax, edx
lea rcx, [rax + rax*4]
lea rdi, [r10 + rcx*8]
mov ecx, dword [r10 + rcx*8 + 0xc]
cmp r8d, ecx
jb 0x1400180bc
add ecx, dword [rdi + 0x10]
cmp r8d, ecx
jb 0x1400180c8
inc edx
cmp edx, r9d
jb 0x1400180a0
mov rdi, rbx
test rdi, rdi
je 0x14001817c
cmp byte [rbx + rdi], 0
je 0x1400180e6
inc rbx
cmp rbx, 8
jb 0x1400180d1
mov r9, rdi
mov dword [rsp + 0x20], ebx
lea r8, [rbp - 0x70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlUTF8ToUnicodeN]
test eax, eax
js 0x14001817a
mov eax, dword [rbp - 0x70]
add rax, 2
and rax, 0xfffffffffffffffe
cmp rax, 0x12
ja 0x14001813c
lfence
mov edx, dword [rbp - 0x70]
lea rcx, [rbp + 0x10]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlUTF8ToUnicodeN]
test eax, eax
js 0x14001813c
mov eax, dword [rbp - 0x70]
xor ebx, ebx
mov word [rbp + rax + 0x10], bx
mov al, 1
jmp 0x140018140
xor al, al
xor ebx, ebx
test al, al
je 0x14001817c
lea rax, [rbp + 0x10]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov dword [rsp + 0x34], r14d
mov edx, 0x104c
mov dword [rsp + 0x38], 4
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14001817c
xor ebx, ebx
mov rdx, qword [r15 + 0x30]
xor r9d, r9d
mov rcx, qword [0x1401590f8]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call fcn.14006b640
mov rbx, rax
test rax, rax
je 0x1400181f1
mov rcx, qword [rax + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x30], 1
mov edx, 0x104c
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], 5
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400181f1
call fcn.1400602c0
lea rdi, str.UNKNOWN
add r15, 0x50
mov ebx, 0
sub r13, 1
jne 0x140017990
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x188]
mov r13, qword [rsp + 0x180]
mov rdi, qword [rsp + 0x178]
xor r9d, r9d
mov edx, 0x845c
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400c6a20
add rsp, 0x148
pop r12
pop rsi
pop rbx
pop rbp
ret