Function at 0x1400a9740
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push r12
push r14
sub rsp, 0x260
xor r12d, r12d
mov r14, rdx
mov qword [rcx], r12
mov rsi, rcx
mov qword [rdx], r12
call fcn.140007730
test eax, eax
jne 0x1400a97f4
mov rax, qword [0x14012c398]
cmp dword [rax + 0x60], r12d
jne 0x1400a97bd
cmp dword [0x140135218], r12d
jne 0x1400a97bd
cmp byte [0x14012ed1d], 1
je 0x1400a97bd
lea r9, [0x140106cb0]
mov qword [rsp + 0x20], r12
lea r8d, [r12 + 9]
lea rdx, str.Cant_open_clipboard_for_reading.
lea rcx, [0x140134a20]
call fcn.140010b10
add rsp, 0x260
pop r14
pop r12
pop rsi
ret
mov qword [rsp + 0x28], r12
lea r8, [0x140106cb0]
xor r9d, r9d
mov dword [rsp + 0x20], 9
lea rdx, str.Cant_open_clipboard_for_reading.
lea rcx, [0x140134a20]
call fcn.14000f460
add rsp, 0x260
pop r14
pop r12
pop rsi
ret
mov qword [rsp + 0x298], rbx
xor ecx, ecx
mov qword [rsp + 0x258], rbp
mov ebp, 4
mov qword [rsp + 0x250], rdi
mov edi, ebp
mov qword [rsp + 0x248], r13
mov qword [rsp + 0x240], r15
mov r15d, r12d
mov qword [rsp + 0x280], rbp
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
je 0x1400a9997
lea r13d, [rbp + 4]
mov r14d, 0x4086
nop word [rax + rax]
cmp ebx, 0xe
ja 0x1400a985f
bt r14d, ebx
jb 0x1400a997d
cmp ebx, 0x8e
je 0x1400a997d
cmp ebx, r15d
je 0x1400a997d
lea eax, [rbx - 0xc000]
cmp eax, 0x3fff
ja 0x1400a9942
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, str.Link_Source
lea rcx, [rsp + 0x30]
call fcn.1400ca208
test eax, eax
je 0x1400a997d
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a997d
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a997d
lea rdx, str.Native
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a997d
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a997d
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a993d
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
jne 0x1400a9948
add rdi, r13
jmp 0x1400a997d
mov word [rsp + 0x30], r12w
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
test rax, rax
je 0x1400a997d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
add rdi, r13
add rdi, rax
test r15d, r15d
jne 0x1400a997d
cmp ebx, r13d
jne 0x1400a9976
mov r15d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
jmp 0x1400a997d
cmp ebx, 0x11
cmove r15d, r13d
mov ecx, ebx
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
jne 0x1400a9850
mov r14, qword [rsp + 0x288]
cmp rdi, rbp
jne 0x1400a99df
cmp dword [0x14013536c], r12d
je 0x1400a9c94
cmp qword [0x140135350], r12
je 0x1400a99c6
mov rcx, qword [0x140135340]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135350], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013536c], r12d
mov qword [0x140135340], r12
jmp 0x1400a9c94
test dil, 1
lea r13, [rdi + 1]
cmove r13, rdi
mov rcx, r13
call fcn.1400ca1ac
mov qword [rsi], rax
mov rdi, rax
test rax, rax
jne 0x1400a9a67
cmp dword [0x14013536c], r12d
je 0x1400a9a38
cmp qword [0x140135350], r12
je 0x1400a9a24
mov rcx, qword [0x140135340]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135350], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013536c], r12d
mov qword [0x140135340], r12
mov rax, qword [0x140134898]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x140134a20]
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
call fcn.14000fb70
jmp 0x1400a9c99
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
je 0x1400a9c51
mov r12, qword [rsp + 0x288]
cmp ebx, 0xe
ja 0x1400a9a94
mov eax, 0x4086
bt eax, ebx
jb 0x1400a9c34
cmp ebx, 0x8e
je 0x1400a9c34
cmp ebx, r15d
je 0x1400a9c34
lea eax, [rbx - 0xc000]
cmp eax, 0x3fff
ja 0x1400a9b83
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, str.Link_Source
lea rcx, [rsp + 0x30]
call fcn.1400ca208
test eax, eax
je 0x1400a9c34
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a9c34
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a9c34
lea rdx, str.Native
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a9c34
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a9c34
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
je 0x1400a9b7a
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x30]
call fcn.1400ca01c
test eax, eax
jne 0x1400a9b8a
xor eax, eax
mov r14d, eax
mov esi, eax
jmp 0x1400a9bbf
xor eax, eax
mov word [rsp + 0x30], ax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r14, rax
test rax, rax
je 0x1400a9c34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rsi, rax
test eax, eax
je 0x1400a9bbf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x1400a9c34
mov rax, qword [rsp + 0x280]
mov rcx, rax
mov ebp, esi
add rax, 8
add rax, rbp
mov qword [rsp + 0x280], rax
cmp rax, r13
jbe 0x1400a9bfa
mov qword [rsp + 0x280], rcx
mov rbp, rcx
test esi, esi
je 0x1400a9c34
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400a9c34
mov dword [rdi], ebx
mov qword [rdi + 4], rbp
add rdi, 8
test esi, esi
je 0x1400a9c2c
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.1400e78c0
add rdi, rbp
mov rcx, r14
mov rbp, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400a9c34
mov rbp, qword [rsp + 0x280]
mov ecx, ebx
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
jne 0x1400a9a81
mov r14, qword [rsp + 0x288]
xor r12d, r12d
cmp dword [0x14013536c], 0
je 0x1400a9c8c
cmp qword [0x140135350], 0
je 0x1400a9c78
mov rcx, qword [0x140135340]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135350], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013536c], r12d
mov qword [0x140135340], r12
mov eax, ebp
mov qword [r14], rax
mov dword [rdi], r12d
mov eax, 1
mov r13, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x258]
mov rbx, qword [rsp + 0x298]
mov r15, qword [rsp + 0x240]
add rsp, 0x260
pop r14
pop r12
pop rsi
ret