Function at 0x1400168e0
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 [0x14010d0f8]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
cmp qword [rcx + 0x200], r12
je 0x140016d1c
cmp qword [rcx + 0x1408], r12
jne 0x140016950
call fcn.140052d4c
mov qword [rdi + 0x1408], rax
test rax, rax
je 0x140016d1c
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401150c8], eax
jle 0x1400169bf
lea rcx, [0x1401150c8]
call fcn.1400e6c50
cmp dword [0x1401150c8], 0xffffffff
jne 0x1400169bf
lea rcx, str.MathML_Presentation
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov dword [0x1401145d0], eax
lea rcx, str.MathML
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
nop dword [rax + rax]
mov dword [0x1401145d4], eax
lea rcx, [0x1401150c8]
call fcn.1400e6be0
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.0x140066f27.0]
mov ebx, eax
test eax, eax
js 0x140016cdd
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140016a17
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x40]
call qword [case.0x140066f27.0]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test ebx, ebx
js 0x140016ce2
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.0x140066f27.0]
mov ebx, eax
test eax, eax
js 0x140016cdd
lea rcx, str.__xml_version_1.0__encoding_utf_16____
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140016d4f
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x140016ab2
mov qword [rsp + 0x28], r12
lea r8, [rsp + 0x28]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
nop dword [rax + rax]
test eax, eax
js 0x140016ab2
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
nop dword [rax + rax]
test eax, eax
je 0x140016bb1
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop dword [rax + rax]
lea r14d, [rsi + 1]
add r14, r14
lea r15, [0x1401145d0]
mov r13d, 2
mov edi, esi
mov rdx, r14
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140016b92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140016b69
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]
nop dword [rax + rax]
mov rdx, rsi
mov ecx, dword [r15]
call qword [sym.imp.USER32.dll_SetClipboardData]
nop dword [rax + rax]
xor r12d, r12d
test rax, rax
jne 0x140016b92
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
add r15, 4
sub r13, 1
jne 0x140016afd
call qword [sym.imp.USER32.dll_CloseClipboard]
nop dword [rax + rax]
mov rdi, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
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]
nop dword [rax + rax]
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.0x140066f27.0]
mov ebx, eax
test eax, eax
js 0x140016caf
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140016c99
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14003ae70
test eax, eax
js 0x140016c94
cmp byte [0x140114ecc], r12b
je 0x140016c94
mov r8d, dword [rsp + 0x20]
mov edx, 0xe9b
lea rcx, [0x14010d510]
call fcn.140037034
mov rax, qword [rsp + 0x28]
lea rcx, [rdi + 0x1310]
mov r8, qword [rsp + 0x30]
mov rdx, rax
call fcn.14001ff00
mov ebx, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140016cc6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140066f27.0]
test ebx, ebx
js 0x140016cdd
cmp dword [rdi + 0x13f0], r12d
je 0x140016cdd
mov rcx, rdi
call fcn.140016540
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140016cf5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140066f27.0]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140016d21
mov eax, 0x8000ffff
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400e6ab0
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.140013490
int3