Function at 0x140013cb0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x450
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140267b40]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp dword [0x1402794e4], 1
jne 0x140014032
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8d, 0x100
lea rdx, [rsp + 0x240]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
call fcn.140023c3c
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140013d4f
mov ecx, 0x80004005
call fcn.140019e30
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
call fcn.140023c3c
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140013d81
mov ecx, 0x80004005
call fcn.140019e30
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
or rbp, 0xffffffffffffffff
mov rsi, rbp
nop
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140013da0
test esi, esi
jne 0x140013e0c
lea rdx, [rdi - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140013e8b
cmp dword [rdx + 0x10], 0
jge 0x140013de3
cmp dword [rdi - 0xc], 0
jge 0x140013dd6
mov ecx, 0x80070057
call fcn.140019e30
int3
mov dword [rdi - 0x10], r12d
mov word [rdi], r12w
jmp 0x140013e8b
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013df3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x28], rdi
mov rbx, qword [rsp + 0x20]
jmp 0x140013e8b
mov r15d, dword [rdi - 0x10]
lea r14, [rsp + 0x40]
sub r14, rdi
sar r14, 1
test esi, esi
jns 0x140013e2a
mov ecx, 0x80070057
call fcn.140019e30
int3
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, esi
or eax, ecx
jge 0x140013e4c
mov edx, esi
lea rcx, [rsp + 0x28]
call fcn.140019dd0
mov rdi, qword [rsp + 0x28]
movsxd rax, esi
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140013e70
lea r8, [rdi + r14*2]
call fcn.14019a16c
jmp 0x140013e7a
lea r8, [rsp + 0x40]
call fcn.14019a0e4
cmp esi, dword [rdi - 0xc]
jg 0x140014027
mov dword [rdi - 0x10], esi
mov word [r15 + rdi], r12w
lea rax, [rsp + 0x240]
mov rsi, rbp
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140013e96
test esi, esi
jne 0x140013f05
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140013f8a
cmp dword [rdx + 0x10], 0
jge 0x140013ed9
cmp dword [rbx - 0xc], 0
jge 0x140013ecc
mov ecx, 0x80070057
call fcn.140019e30
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140013f8a
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013ee9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov rdi, qword [rsp + 0x28]
jmp 0x140013f8a
mov r15d, dword [rbx - 0x10]
lea r14, [rsp + 0x240]
sub r14, rbx
sar r14, 1
test esi, esi
jns 0x140013f26
mov ecx, 0x80070057
call fcn.140019e30
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140013f48
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.140019dd0
mov rbx, qword [rsp + 0x20]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140013f6c
lea r8, [rbx + r14*2]
call fcn.14019a16c
jmp 0x140013f79
lea r8, [rsp + 0x240]
call fcn.14019a0e4
cmp esi, dword [rbx - 0xc]
jg 0x14001401c
mov dword [rbx - 0x10], esi
mov word [r15 + rbx], r12w
cmp dword [rbx - 0x10], 0
jl 0x140013fce
lea rdx, str.TXGuiFoundation
mov rcx, rbx
call fcn.14019aaf8
test rax, rax
je 0x140013fce
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140013fce
cmp dword [0x140279c3c], 1
je 0x140013fec
mov ecx, 1
call qword [0x140279258]
mov dword [0x140279c3c], 1
jmp 0x140013fec
cmp dword [0x140279c3c], 2
je 0x140013fec
mov ecx, 2
call qword [0x140279258]
mov dword [0x140279c3c], 2
lea rdx, [rdi - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140014001
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140014032
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140014032
mov ecx, 0x80070057
call fcn.140019e30
int3
mov ecx, 0x80070057
call fcn.140019e30
nop
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140199f00
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret