Function at 0x1400a8840
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r14
sub rsp, 0x270
xor ebp, ebp
mov r14, rdx
mov qword [rcx], rbp
mov rsi, rcx
mov qword [rdx], rbp
call fcn.140007760
test eax, eax
jne 0x1400a88fc
cmp byte [0x14012bd85], bpl
jne 0x1400a88ee
mov rax, qword [0x140129398]
cmp dword [rax + 0x60], ebp
jne 0x1400a88c2
cmp dword [0x1401320c8], ebp
jne 0x1400a88c2
cmp byte [0x14012bd0a], bpl
jne 0x1400a88c2
lea r9, [0x140104c70]
mov qword [rsp + 0x20], rbp
mov r8d, 9
lea rdx, str.Cant_open_clipboard_for_reading.
lea rcx, [0x1401319c0]
call fcn.140010e80
add rsp, 0x270
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x28], rbp
lea r8, [0x140104c70]
xor r9d, r9d
mov dword [rsp + 0x20], 9
lea rdx, str.Cant_open_clipboard_for_reading.
lea rcx, [0x1401319c0]
call fcn.14000f7a0
mov ebp, eax
mov eax, ebp
add rsp, 0x270
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x268], rbx
xor ecx, ecx
mov qword [rsp + 0x260], rdi
mov qword [rsp + 0x258], r12
mov r12d, ebp
mov qword [rsp + 0x250], r13
mov qword [rsp + 0x248], r15
mov r15d, 4
mov qword [rsp + 0x290], r15
mov edi, r15d
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
je 0x1400a8aa0
mov r13d, 8
mov r14d, 0x4086
cmp ebx, 0xe
ja 0x1400a8965
bt r14d, ebx
jb 0x1400a8a86
cmp ebx, 0x8e
je 0x1400a8a86
cmp ebx, r12d
je 0x1400a8a86
lea eax, [rbx - 0xc000]
cmp eax, 0x3fff
ja 0x1400a8a4c
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.1400c8430
test eax, eax
je 0x1400a8a86
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8a86
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8a86
lea rdx, str.Native
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8a86
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8a86
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8a47
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
jne 0x1400a8a51
add rdi, r13
jmp 0x1400a8a86
mov word [rsp + 0x30], bp
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
test rax, rax
je 0x1400a8a86
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
add rdi, r13
add rdi, rax
test r12d, r12d
jne 0x1400a8a86
cmp ebx, r13d
jne 0x1400a8a7f
mov r12d, reloc.OLEAUT32.dll_SafeArrayGetElemsize
jmp 0x1400a8a86
cmp ebx, 0x11
cmove r12d, r13d
mov ecx, ebx
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
jne 0x1400a8956
mov r14, qword [rsp + 0x298]
cmp rdi, r15
jne 0x1400a8ae6
cmp dword [0x14013221c], ebp
je 0x1400a8da2
cmp qword [0x140132200], rbp
je 0x1400a8ace
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], ebp
mov qword [0x1401321f0], rbp
jmp 0x1400a8da2
test dil, 1
lea rax, [rdi + 1]
cmove rax, rdi
mov rcx, rax
mov qword [rsp + 0x2a0], rax
call fcn.1400c83d4
mov qword [rsi], rax
mov rdi, rax
test rax, rax
jne 0x1400a8b74
cmp dword [0x14013221c], ebp
je 0x1400a8b45
cmp qword [0x140132200], rbp
je 0x1400a8b32
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], ebp
mov qword [0x1401321f0], rbp
mov rax, qword [0x140131838]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x1401319c0]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
call fcn.14000fec0
jmp 0x1400a8da7
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
je 0x1400a8d62
mov r13, qword [rsp + 0x298]
nop
cmp ebx, 0xe
ja 0x1400a8ba3
mov eax, 0x4086
bt eax, ebx
jb 0x1400a8d48
cmp ebx, 0x8e
je 0x1400a8d48
cmp ebx, r12d
je 0x1400a8d48
lea eax, [rbx - 0xc000]
cmp eax, 0x3fff
ja 0x1400a8c91
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.1400c8430
test eax, eax
je 0x1400a8d48
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8d48
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8d48
lea rdx, str.Native
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8d48
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8d48
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
je 0x1400a8c89
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x30]
call fcn.1400c8244
test eax, eax
jne 0x1400a8c96
mov rsi, rbp
mov r14d, ebp
jmp 0x1400a8ccb
mov word [rsp + 0x30], bp
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rsi, rax
test rax, rax
je 0x1400a8d48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r14, rax
test eax, eax
je 0x1400a8ccb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r13, rax
test rax, rax
je 0x1400a8d48
mov rax, qword [rsp + 0x290]
mov rcx, rax
mov r15d, r14d
add rax, 8
add rax, r15
mov qword [rsp + 0x290], rax
cmp rax, qword [rsp + 0x2a0]
jbe 0x1400a8d0d
mov qword [rsp + 0x290], rcx
mov r15, rcx
test r14d, r14d
je 0x1400a8d48
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400a8d48
mov dword [rdi], ebx
mov qword [rdi + 4], r15
add rdi, 8
test r14d, r14d
je 0x1400a8d40
mov r8, r15
mov rdx, r13
mov rcx, rdi
call fcn.1400e5b10
add rdi, r15
mov rcx, rsi
mov r15, qword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400a8d48
mov r15, qword [rsp + 0x290]
mov ecx, ebx
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test eax, eax
jne 0x1400a8b90
mov r14, qword [rsp + 0x298]
cmp dword [0x14013221c], ebp
je 0x1400a8d9a
cmp qword [0x140132200], rbp
je 0x1400a8d87
mov rcx, qword [0x1401321f0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140132200], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013221c], ebp
mov qword [0x1401321f0], rbp
mov eax, r15d
mov qword [r14], rax
mov dword [rdi], ebp
mov eax, 1
mov r13, qword [rsp + 0x250]
mov r12, qword [rsp + 0x258]
mov rdi, qword [rsp + 0x260]
mov rbx, qword [rsp + 0x268]
mov r15, qword [rsp + 0x248]
add rsp, 0x270
pop r14
pop rsi
pop rbp
ret