Function at 0x14004a410
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400bd080]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor edi, edi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14004a479
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x70], edi
je 0x14004a479
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [rsp + 0x70]
je 0x14004a759
mov ecx, dword [0x1400bded0]
test ecx, ecx
je 0x14004a728
cmp ecx, 1
jne 0x14004a759
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
jne 0x14004a4b8
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1400acf40]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], di
jmp 0x14004a509
mov r8d, 0x80
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x14004a4f0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.140007d20
nop
lea rsi, [0x1400bdf50]
cmp qword [0x1400bdf68], 0x10
cmovae rsi, qword [0x1400bdf50]
mov r14, qword [0x1400bdf60]
test r14, r14
jne 0x14004a543
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400acf40]
mov word [rsp + 0x50], di
jmp 0x14004a5bb
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14004a7a0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rbp - 0x78]
movdqu xmmword [rsp + 0x60], xmm1
lea r11, [rsp + 0x50]
mov r14, qword [rsp + 0x50]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r13, xmm0
cmp r13, 8
cmovae r11, r14
lea r15, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x48]
cmp r12, 8
cmovae r15, rsi
movq rbx, xmm1
mov rax, qword [rsp + 0x40]
cmp rbx, rax
ja 0x14004a6a2
sub rax, rbx
test rbx, rbx
je 0x14004a6a9
inc rax
lea r12, [r15 + rax*2]
mov rax, r15
movzx r10d, word [r11]
nop word [rax + rax]
mov rcx, r12
sub rcx, rax
sar rcx, 1
mov rdx, rdi
je 0x14004a65a
cmp word [rax], r10w
je 0x14004a657
cmp rcx, 1
je 0x14004a65a
dec rcx
add rax, 2
cmp word [rax], r10w
jne 0x14004a644
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x14004a69d
mov r8, rbx
mov rdx, r11
test rbx, rbx
je 0x14004a687
mov r9, rax
sub r9, r11
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x14004a697
add rdx, 2
sub r8, 1
jne 0x14004a673
mov rdi, rax
sub rdi, r15
sar rdi, 1
mov r12, qword [rsp + 0x48]
jmp 0x14004a6a9
add rax, 2
jmp 0x14004a630
mov r12, qword [rsp + 0x48]
mov rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
setne bl
cmp r13, 8
jb 0x14004a6ec
lea rdx, [r13*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x14004a6e3
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a795
mov rcx, r14
call fcn.14004cb00
nop
cmp r12, 8
jb 0x14004a723
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14004a71b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a78f
mov rcx, rsi
call fcn.14004cb00
movzx eax, bl
jmp 0x14004a75f
xor edx, edx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
je 0x14004a75d
xor edx, edx
lea rcx, str.GLFW30
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x14004a75d
xor al, al
jmp 0x14004a75f
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14004c890
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140053584
nop
call fcn.140053584
nop
int3