Function at 0x14005f410
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r12, rdx
mov r15, rcx
mov r8, qword [rdx + 8]
sub r8, qword [rdx]
movabs rax, 0x2aaaaaaaaaaaaaab
imul r8
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsp + 0x30], edx
lea rax, str._clipboard__Set_data_types__d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1d2
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 1
lea rcx, [0x1401399a0]
call fcn.14007a380
mov rax, qword [r12 + 8]
cmp qword [r12], rax
jne 0x14005f4e8
lea rax, str._clipboard__Set_data_types_is_empty
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1d5
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
jmp 0x14005f866
mov rsi, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetClipboardOwner]
cmp rax, rsi
sete bpl
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14005f55b
call qword [sym.imp.USER32.dll_GetOpenClipboardWindow]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
lea rax, str._clipboard__OpenClipboard_failed_with__d__current:_0x_x__open:0x_x
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x77
lea r9, str.CAutoClipboard::CAutoClipboard
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
lea edx, [rbx + 1]
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
test ebx, ebx
jne 0x14005f5bb
lea rax, str.owner
lea rbx, str.not_owner
test bpl, bpl
cmovne rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
lea rax, str._clipboard__OpenClipboard_failed_with__d___s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1dc
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
jmp 0x14005f860
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14005f607
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str._clipboard__EmptyClipboard_failed_with__d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1e1
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
jmp 0x14005f860
mov rbx, qword [r12]
cmp rbx, qword [r12 + 8]
je 0x14005f860
xor r13d, r13d
lea rbp, [0x140139750]
lea rdi, str.with_data_and_type
lea r14, str._clipboard__SetClipDataTypePrivate__size:_d_format__u__oray_format__u___s
nop
mov rcx, r13
mov edx, dword [rbx]
mov rax, r13
cmp dword [rax + rbp + 0x24], edx
je 0x14005f654
inc rcx
add rax, 0x30
cmp rax, 0x120
jb 0x14005f638
mov esi, 1
jmp 0x14005f65f
lea rax, [rcx + rcx*2]
add rax, rax
mov esi, dword [rbp + rax*8 + 0x20]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005f672
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, eax
jmp 0x14005f675
mov ecx, r13d
lea rax, str.with_type
cmp qword [rbx + 0x10], 0
cmovne rax, rdi
mov qword [rsp + 0x48], rax
mov eax, dword [rbx]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x1eb
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 1
lea rcx, [0x1401399a0]
call fcn.14007a380
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x14005f837
cmp esi, 0xf
jne 0x14005f73a
cmp byte [r15 + 0x162], 0
je 0x14005f84a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov rdi, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x20]
mov r8d, eax
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], 0
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140009260
nop
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.140060a80
nop
lea rcx, [rsp + 0x60]
call fcn.140009040
jmp 0x14005f843
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov rdi, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x20]
mov r8d, eax
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], 0
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140009260
nop
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, qword [r15 + 0xb8]
call fcn.14005a070
mov rdi, rax
lea rcx, [rsp + 0x60]
call fcn.140009040
test rdi, rdi
je 0x14005f802
cmp byte [r15 + 0x161], 0
je 0x14005f843
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x14005f843
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str._clipboard__set_data_failed___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x202
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14005f843
lea rax, str._clipboard__set_data_failed__invalid_handle
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x209
lea r9, str.CClipboardViewer::SetClipDataTypePrivate
lea r8, str...includes_sunloginincludeSynergyClipplatformclipClipboardViewWnd.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
jmp 0x14005f843
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x14005f84a
lea rdi, str.with_data_and_type
add rbx, 0x18
cmp rbx, qword [r12 + 8]
lea r14, str._clipboard__SetClipDataTypePrivate__size:_d_format__u__oray_format__u___s
jne 0x14005f630
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14009d860
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret