Function at 0x140018b7c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14010a068]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
cmp qword [rcx + 0x200], r12
jne 0x140018bd4
mov eax, 0x8000ffff
jmp 0x140018f46
cmp qword [rcx + 0x1408], r12
jne 0x140018bee
call fcn.1400516e0
mov qword [rdi + 0x1408], rax
test rax, rax
je 0x140018bca
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401120f8], eax
jle 0x140018c51
lea rcx, [0x1401120f8]
call fcn.1400e3820
cmp dword [0x1401120f8], 0xffffffff
jne 0x140018c51
lea rcx, str.MathML_Presentation
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x140111508], eax
lea rcx, str.MathML
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x14011150c], eax
lea rcx, [0x1401120f8]
call fcn.1400e37b0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov rcx, qword [rdi + 0x200]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rax, qword [rax + 0xa0]
call qword [case.0x140064bf9.0]
mov ebx, eax
test eax, eax
js 0x140018f15
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018ca9
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x40]
call qword [case.0x140064bf9.0]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test ebx, ebx
js 0x140018f1a
mov rcx, qword [rdi + 0x1408]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rax + 0x50]
call qword [case.0x140064bf9.0]
mov ebx, eax
test eax, eax
js 0x140018f15
lea rcx, str.__xml_version_1.0__encoding_utf_16____
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x140018f73
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140018d2c
mov qword [rsp + 0x28], r12
lea r8, [rsp + 0x28]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x140018d2c
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140018df5
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14d, [rsi + 1]
add r14, r14
lea r15, [0x140111508]
mov r13d, 2
mov edi, esi
mov rdx, r14
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140018ddc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x140018dbf
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8, rdi
add r8, r8
lea rcx, [r12 + 2]
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov eax, 0xfeff
mov word [r12], ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, dword [r15]
call qword [sym.imp.USER32.dll_SetClipboardData]
xor r12d, r12d
test rax, rax
jne 0x140018ddc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
add r15, 4
sub r13, 1
jne 0x140018d65
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edx, edx
mov r8d, LoadRegTypeLib
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x60], 1
mov eax, 0x11
mov word [rsp + 0x68], ax
mov dword [rbp - 0x78], 1
lea ecx, [rax + 0x45]
mov word [rbp - 0x70], cx
mov dword [rbp - 0x50], 1
mov dword [rbp - 0x44], 2
mov word [rbp - 0x48], ax
mov dword [rbp - 0x28], 1
mov dword [rbp - 0x1c], 2
mov word [rbp - 0x20], cx
lea r8d, [rax + 0x17]
lea rdx, [rsp + 0x60]
lea ecx, [rax - 0xd]
call qword [sym.imp.USER32.dll_SendInput]
mov qword [rsp + 0x28], r12
mov rcx, qword [rdi + 0x200]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
mov rax, qword [rax + 0x90]
call qword [case.0x140064bf9.0]
mov ebx, eax
test eax, eax
js 0x140018ee7
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140018ed1
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14003b2bc
test eax, eax
js 0x140018ecc
cmp byte [0x140111efc], r12b
je 0x140018ecc
mov r8d, dword [rsp + 0x20]
mov edx, 0xe9b
lea rcx, [0x14010a480]
call fcn.140037844
mov rax, qword [rsp + 0x28]
lea rcx, [rdi + 0x1310]
mov r8, qword [rsp + 0x30]
mov rdx, rax
call fcn.14002198c
mov ebx, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140018efe
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140064bf9.0]
test ebx, ebx
js 0x140018f15
cmp dword [rdi + 0x13f0], r12d
je 0x140018f15
mov rcx, rdi
call fcn.1400187f0
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018f2d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140064bf9.0]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400e3680
lea r11, [rsp + 0x110]
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
mov ecx, 0x8007000e
call fcn.140015968
int3