Function at 0x180012540
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180123010]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14, rcx
cmp edx, 7
jne 0x180012883
mov r8, qword [rcx]
mov edx, 0x3e9
mov rcx, r8
call fcn.18002add0
test rax, rax
je 0x1800125ab
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x30]
mov r8, qword [r14]
mov edx, 0x3eb
mov rcx, r8
call fcn.18002add0
test rax, rax
je 0x1800125cc
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 0x30]
mov r8, qword [r14]
mov rax, qword [r8]
mov rcx, r8
call qword [rax + 0x68]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov rcx, rax
xor ebx, ebx
test rax, rax
jne 0x1800125ec
mov eax, ebx
jmp 0x1800125f2
mov rax, qword [rax]
call qword [rax + 8]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1800127d1
mov rax, qword [r14]
mov dword [rax + 0xfc], 0x333333
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], bx
mov r8d, 0xe6
lea rdx, [0x1800dd4c0]
lea rcx, [rsp + 0x28]
call fcn.180007b60
nop
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r14]
mov r8d, 0x208
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800126a0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180007b60
nop
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x58]
test r9, r9
je 0x1800127d8
lea rcx, [rsp + 0x28]
cmp r15, 8
cmovae rcx, rdi
lea r8, [rsp + 0x48]
cmp r12, 8
cmovae r8, rsi
mov rdx, r9
mov r10, qword [rsp + 0x38]
cmp r10, r9
cmovb rdx, r10
test rdx, rdx
je 0x180012724
sub r8, rcx
nop
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x18001272f
add rcx, 2
sub rdx, 1
jne 0x180012710
cmp r9, r10
jb 0x18001272f
jbe 0x1800127d8
cmp r12, 8
jb 0x18001276d
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180012765
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012765
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1800c8c14
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
cmp r15, 8
jb 0x1800127be
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800127b6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800127b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1800c8c14
movdqa xmm0, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bx
mov al, 1
jmp 0x180012a05
mov rcx, qword [r14]
lea rdx, [0x1800dc488]
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
cmp r12, 8
jb 0x18001282e
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180012826
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012826
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1800c8c14
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
cmp r15, 8
jb 0x1800127be
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800127b6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800127b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp edx, 8
jne 0x180012a03
mov r8, qword [rcx]
mov edx, 0x3e9
mov rcx, r8
call fcn.18002add0
test rax, rax
je 0x1800128b0
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 0x30]
mov r8, qword [r14]
mov edx, 0x3eb
mov rcx, r8
call fcn.18002add0
test rax, rax
je 0x1800128d1
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x30]
mov r8, qword [r14]
mov rax, qword [r8]
mov rcx, r8
call qword [rax + 0x68]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov rcx, rax
xor ebx, ebx
test rax, rax
jne 0x1800128f1
mov eax, ebx
jmp 0x1800128f7
mov rax, qword [rax]
call qword [rax + 8]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1800129ff
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [r14]
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bx
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x180012960
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.180007b60
nop
cmp qword [rsp + 0x38], 0
jne 0x1800129a7
mov rax, qword [r14]
mov dword [rax + 0xfc], 0x999999
mov rcx, qword [r14]
lea rdx, [0x1800dd4c0]
mov rcx, qword [rcx + 0xb0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1800129ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800129e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800129e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bx
mov al, 1
jmp 0x180012a05
xor al, al
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1800c8bf0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edx, dword [rdx]
add rcx, 8
jmp 0x180012540