Function at 0x1400107a0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push r12
push r13
push r14
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 [0x140218f40]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp dword [0x14022630c], 1
jne 0x140010b62
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, 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, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
call fcn.14001e6e8
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14001083f
mov ecx, 0x80004005
call fcn.140014f90
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x20], rsi
call fcn.14001e6e8
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140010871
mov ecx, 0x80004005
call fcn.140014f90
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140010905
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140010985
cmp dword [rdx + 0x10], eax
jge 0x1400108d3
cmp dword [rbx - 0xc], eax
jge 0x1400108c6
mov ecx, 0x80070057
call fcn.140014f90
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140010985
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400108e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov rsi, qword [rsp + 0x20]
jmp 0x140010985
mov r13d, dword [rbx - 0x10]
lea r12, [rsp + 0x40]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x140010923
mov ecx, 0x80070057
call fcn.140014f90
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140010945
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140014f30
mov rbx, qword [rsp + 0x28]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140010969
lea r8, [rbx + r12*2]
call fcn.14015e47c
jmp 0x140010973
lea r8, [rsp + 0x40]
call fcn.14015e3f4
cmp edi, dword [rbx - 0xc]
jg 0x140010b57
mov dword [rbx - 0x10], edi
mov word [r13 + rbx], r14w
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x240]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140010a06
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140010a8c
cmp dword [rdx + 0x10], eax
jge 0x1400109d4
cmp dword [rsi - 0xc], eax
jge 0x1400109c7
mov ecx, 0x80070057
call fcn.140014f90
int3
mov dword [rsi - 0x10], r14d
mov word [rsi], r14w
jmp 0x140010a8c
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400109ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x20], rsi
mov rbx, qword [rsp + 0x28]
jmp 0x140010a8c
mov r13d, dword [rsi - 0x10]
lea r12, [rsp + 0x240]
sub r12, rsi
sar r12, 1
test ecx, ecx
jns 0x140010a27
mov ecx, 0x80070057
call fcn.140014f90
int3
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140010a49
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140014f30
mov rsi, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140010a6d
lea r8, [rsi + r12*2]
call fcn.14015e47c
jmp 0x140010a7a
lea r8, [rsp + 0x240]
call fcn.14015e3f4
cmp edi, dword [rsi - 0xc]
jg 0x140010b4c
mov dword [rsi - 0x10], edi
mov word [r13 + rsi], r14w
cmp dword [rbx - 0x10], 0
jl 0x140010af4
lea rdx, [0x1401dbefc]
mov rcx, rbx
call fcn.14015eb3c
test rax, rax
je 0x140010af4
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140010af4
cmp dword [rsi - 0x10], 0
jl 0x140010af4
lea rdx, str.TXGuiFoundation
mov rcx, rsi
call fcn.14015eb3c
test rax, rax
je 0x140010af4
sub rax, rsi
sar rax, 1
test eax, eax
js 0x140010af4
cmp dword [0x140226cbc], 1
je 0x140010b12
mov ecx, 1
call qword [0x1402260c0]
mov dword [0x140226cbc], 1
jmp 0x140010b12
cmp dword [0x140226cbc], 2
je 0x140010b12
mov ecx, 2
call qword [0x1402260c0]
mov dword [0x140226cbc], 2
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010b2d
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 xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x140010b62
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140010b62
mov ecx, 0x80070057
call fcn.140014f90
int3
mov ecx, 0x80070057
call fcn.140014f90
nop
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14015e210
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 r14
pop r13
pop r12
ret