Function at 0x180012850
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 [0x180122010]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14, rcx
cmp edx, 7
jne 0x180012b93
mov r8, qword [rcx]
mov edx, 0x3ea
mov rcx, r8
call fcn.18002d010
test rax, rax
je 0x1800128bb
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x30]
mov r8, qword [r14]
mov edx, 0x3ec
mov rcx, r8
call fcn.18002d010
test rax, rax
je 0x1800128dc
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 0x1800128fc
mov eax, ebx
jmp 0x180012902
mov rax, qword [rax]
call qword [rax + 8]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x180012ae1
mov rax, qword [r14]
mov dword [rax + 0x1e4], 0x333333
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1800e71a0]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], bx
mov r8d, 0x19
lea rdx, [0x1800dbf40]
lea rcx, [rsp + 0x28]
call fcn.180007980
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 + 0x198]
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 0x1800129b0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180007980
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 0x180012ae8
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 0x180012a34
sub r8, rcx
nop
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180012a3f
add rcx, 2
sub rdx, 1
jne 0x180012a20
cmp r9, r10
jb 0x180012a3f
jbe 0x180012ae8
cmp r12, 8
jb 0x180012a7d
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180012a75
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012a75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1800c8554
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
cmp r15, 8
jb 0x180012ace
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180012ac6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012ac6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1800c8554
movdqa xmm0, xmmword [0x1800e71a0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bx
mov al, 1
jmp 0x180012d15
mov rcx, qword [r14]
lea rdx, [0x1800db478]
mov rcx, qword [rcx + 0x198]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
cmp r12, 8
jb 0x180012b3e
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180012b36
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012b36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1800c8554
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
cmp r15, 8
jb 0x180012ace
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180012ac6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012ac6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp edx, 8
jne 0x180012d13
mov r8, qword [rcx]
mov edx, 0x3ea
mov rcx, r8
call fcn.18002d010
test rax, rax
je 0x180012bc0
mov r8, qword [rax]
xor edx, edx
mov rcx, rax
call qword [r8 + 0x30]
mov r8, qword [r14]
mov edx, 0x3ec
mov rcx, r8
call fcn.18002d010
test rax, rax
je 0x180012be1
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 0x180012c01
mov eax, ebx
jmp 0x180012c07
mov rax, qword [rax]
call qword [rax + 8]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x180012d0f
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 + 0x198]
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 0x180012c70
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.180007980
nop
cmp qword [rsp + 0x38], 0
jne 0x180012cb7
mov rax, qword [r14]
mov dword [rax + 0x1e4], 0x999999
mov rcx, qword [r14]
lea rdx, [0x1800dbf40]
mov rcx, qword [rcx + 0x198]
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180012cfc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180012cf7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012cf7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8554
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bx
mov al, 1
jmp 0x180012d15
xor al, al
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1800c8530
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 0x180012850