Function at 0x140039240
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r13, r9
mov qword [rbp - 0x80], r9
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x30], edx
mov r15, rcx
mov qword [rbp - 0x78], rcx
mov rax, qword [rbp + 0x268]
mov qword [rsp + 0x38], rax
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov r12, rax
test rax, rax
je 0x14003973a
cmp qword [rax + 0xd60], 0
jne 0x14003973a
lea rcx, [rsp + 0x48]
call fcn.14003a5b0
nop
mov rcx, qword [rsp + 0x50]
sub rcx, qword [rsp + 0x48]
sar rcx, 3
mov r14, qword [rbp + 0x260]
mov rax, qword [r14 + 8]
sub rax, qword [r14]
sar rax, 3
cmp ecx, eax
jne 0x140039730
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
xor eax, eax
mov ebx, eax
mov r8, qword [rsp + 0x50]
mov rcx, r8
mov rdx, qword [rsp + 0x48]
sub rcx, rdx
sar rcx, 3
test ecx, ecx
jle 0x140039366
mov edi, eax
nop word [rax + rax]
cmp qword [rdi + rdx], rsi
je 0x140039352
movsxd rax, ebx
lea rcx, [rdx + rax*8]
lea rdx, [rcx + 8]
sub r8, rdx
call fcn.1400721b0
mov r8, qword [rsp + 0x50]
sub r8, 8
mov qword [rsp + 0x50], r8
dec ebx
sub rdi, 8
mov rdx, qword [rsp + 0x48]
inc ebx
add rdi, 8
mov rax, r8
sub rax, rdx
sar rax, 3
cmp ebx, eax
jl 0x140039320
sub r8, rdx
sar r8, 3
cmp r8d, 1
jne 0x140039730
lea rcx, [rsp + 0x48]
call fcn.14003a820
mov r9, rsi
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.14003b6b0
test eax, eax
js 0x140039730
movsxd rbx, eax
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov rdx, qword [rsp + 0x48]
test eax, eax
je 0x1400396eb
lea rdi, [rbx*8]
mov qword [rsp + 0x78], rdi
cmp rsi, qword [rdi + rdx]
je 0x1400396eb
lea rdx, [r12 + 0x410]
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], si
jne 0x1400393f0
lea rcx, [rbp - 0x50]
call fcn.14000d6c0
nop
mov r13, qword [rbp - 0x50]
mov r14, qword [rbp - 0x40]
test r14, r14
je 0x14003969d
mov rax, qword [rsp + 0x48]
mov r8d, 0x104
lea rdx, [rbp - 0x10]
mov rcx, qword [rdi + rax]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], si
lea rax, [rbp - 0x10]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140039442
mov r8, rbx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.14000d6c0
nop
lea rbx, [rbp - 0x70]
mov r10, qword [rbp - 0x70]
mov r11, qword [rbp - 0x58]
cmp r11, 8
cmovae rbx, r10
mov rsi, qword [rbp - 0x60]
cmp rsi, 1
jb 0x140039661
lea rdi, [rbx + rsi*2]
mov r8, rbx
lea r15, [0x1400a0340]
nop dword [rax]
mov rax, rdi
sub rax, r8
sar rax, 1
je 0x140039661
cmp word [r8], 0x2e
je 0x1400394b0
add r8, 2
sub rax, 1
jmp 0x140039499
mov edx, 1
mov rcx, r15
mov r9, r8
sub r9, r15
nop
movzx eax, word [rcx]
cmp word [r9 + rcx], ax
jne 0x140039588
add rcx, 2
sub rdx, 1
jne 0x1400394c0
sub r8, rbx
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x140039661
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], ax
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rbp - 0x70]
cmp r11, 8
cmovae rdx, r10
lea rcx, [rbp - 0x30]
call fcn.14000d6c0
nop
lea r10, [rbp - 0x30]
mov rbx, qword [rbp - 0x30]
mov r15, qword [rbp - 0x18]
cmp r15, 8
cmovae r10, rbx
lea rsi, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rsi, r13
mov r11, qword [rbp - 0x20]
cmp r11, r14
ja 0x14003961e
test r11, r11
je 0x1400395c6
sub r14, r11
lea rdi, [r14 + 1]
lea rdi, [rsi + rdi*2]
mov rdx, rsi
nop dword [rax + rax]
mov rax, rdi
sub rax, rdx
sar rax, 1
je 0x14003961e
movzx ecx, word [r10]
cmp word [rdx], cx
je 0x140039591
add rdx, 2
sub rax, 1
je 0x14003961e
jmp 0x140039573
add r8, 2
jmp 0x140039490
mov r8, r11
mov rax, r10
test r11, r11
je 0x1400395ba
mov r9, rdx
sub r9, r10
movzx ecx, word [rax]
cmp word [r9 + rax], cx
jne 0x1400396e2
add rax, 2
sub r8, 1
jne 0x1400395a2
sub rdx, rsi
sar rdx, 1
cmp rdx, 0xffffffffffffffff
je 0x14003961e
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rdi + rax]
lea rcx, [0x1400d02c8]
call fcn.1400382d0
mov rax, qword [rsp + 0x48]
mov rdx, qword [rdi + rax]
mov qword [r12 + 0xd60], rdx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x260]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x80]
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rbp - 0x78]
call fcn.140039cd0
nop
cmp r15, 8
jb 0x140039659
lea rdx, [r15*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140039651
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039775
mov rcx, rbx
call fcn.14006fc78
mov r10, qword [rbp - 0x70]
mov r11, qword [rbp - 0x58]
cmp r11, 8
jb 0x14003969d
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x140039694
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003977b
mov rcx, r10
call fcn.14006fc78
nop
mov rax, qword [rbp - 0x38]
cmp rax, 8
jb 0x140039730
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x1400396d8
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003976f
mov rcx, r13
call fcn.14006fc78
jmp 0x140039730
add rdx, 2
jmp 0x140039560
mov rdx, qword [rdx + rbx*8]
lea rcx, [0x1400d02c8]
call fcn.1400382d0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + rbx*8]
mov qword [r12 + 0xd60], rcx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9, r13
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x30]
mov rcx, r15
call fcn.140039cd0
nop
lea rcx, [rsp + 0x48]
call fcn.14001b350
mov eax, 1
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14006fd90
lea r11, [rsp + 0x310]
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
call fcn.14007698c
nop
call fcn.14007698c
nop
call fcn.14007698c
int3