Function at 0x180162fd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1f8], rbx
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x98], rax
movzx r13d, r9b
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x24], eax
lea r15, [rcx + 0x10]
mov rdx, qword [r15]
test rdx, rdx
je 0x18016365f
cmp qword [rsi + 0x10], rax
je 0x18016365f
lea rdx, [rdx*2 + 2]
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x180163097
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x180163073
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
mov r14d, ebx
jmp 0x180163099
cmp qword [rbx + 0x18], 8
jb 0x18016307d
mov rbx, qword [rbx]
mov rdx, qword [r15]
inc rdx
mov r8, rbx
mov rcx, rax
call fcn.180034ca0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov r12, rbx
test rdi, rdi
je 0x1801630be
mov word [rsp + 0x50], 0xffff
mov byte [rsp + 0x52], 0xff
mov rax, qword [rdi]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [rax + 0x68]
mov r12, rax
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.180037a20
nop
test r13b, r13b
je 0x18016325f
mov rdx, rsi
lea rcx, [rbp + 0x58]
call fcn.1801dc8b0
nop
lea rcx, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae rcx, qword [rbp + 0x58]
lea rdx, str..gif
call fcn.1801db3f0
test al, al
jne 0x180163256
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rsp + 0x68], xmm1
mov word [rsp + 0x58], bx
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1801f0820
test al, al
je 0x180163193
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.1801db870
mov rbx, rax
lea rax, [rsp + 0x58]
cmp rax, rbx
je 0x180163188
lea rcx, [rsp + 0x58]
call fcn.1800338a0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x68], xmm1
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
lea rcx, [rbp - 0x68]
call fcn.1800338a0
xor ebx, ebx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1801dcb40
nop
mov r8d, 4
lea rdx, str..gif
mov rcx, rax
call fcn.180033c20
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov dword [rsp + 0x24], 2
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x18]
call fcn.1801daa90
nop
mov eax, 2
and eax, 0xfffffffd
mov dword [rsp + 0x24], eax
lea rcx, [rbp - 0x68]
call fcn.1800338a0
nop
lea rcx, [rsp + 0x30]
call fcn.1800338a0
lea rcx, [rbp + 0x18]
call fcn.1801dbd90
test al, al
je 0x180163241
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov r8, qword [rbp + 0x28]
lea rcx, [rsp + 0x78]
call fcn.180033930
nop
lea rcx, [rbp + 0x18]
call fcn.1800338a0
nop
lea rcx, [rsp + 0x58]
call fcn.1800338a0
nop
lea rcx, [rbp + 0x58]
call fcn.1800338a0
mov r15, rbx
lea rcx, [rsp + 0x78]
call fcn.1801dbd90
test al, al
je 0x1801632b8
mov edx, 0x18
lea rcx, [rsp + 0x58]
call fcn.18003df50
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.180055870
lea rcx, [rsp + 0x58]
call fcn.1801629e0
mov r15, rax
lea rcx, [rsp + 0x58]
call fcn.180052e90
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rbp + 8], xmm1
mov word [rbp - 8], bx
mov r8d, 0x17
lea rdx, str._IMG_src_file:____s___
lea rcx, [rbp - 8]
call fcn.180033930
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rbp - 0x58], xmm1
mov word [rbp - 0x68], bx
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
lea rcx, [rbp - 0x68]
call fcn.1801dba60
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x78]
call fcn.180162c50
nop
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x38]
call fcn.1801df130
nop
mov rdx, qword [rbp + 0x48]
inc rdx
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x1801633a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x18016337a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, rbx
jmp 0x1801633a0
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
inc r8
mov rcx, rax
call fcn.18029c510
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rbp - 0x18], xmm1
mov word [rbp - 0x28], bx
mov r8d, 0x32
lea rdx, str._QQRichEditFormat__EditElement_type_1__filepath_
lea rcx, [rbp - 0x28]
call fcn.180033930
nop
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
lea rcx, [rbp - 0x28]
call fcn.180033c20
mov r8d, 0x2f
lea rdx, str.__shortcut_____EditElement___QQRichEditFormat_
lea rcx, [rbp - 0x28]
call fcn.180033c20
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.1801df130
nop
mov rdx, qword [rbp - 0x38]
inc rdx
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18016346d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x180163447
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, rbx
jmp 0x18016346d
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
inc r8
mov rcx, rax
call fcn.18029c510
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rbp - 0x38]
inc rdx
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1801634ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x1801634a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ebx, eax
jmp 0x1801634ca
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
inc r8
mov rcx, rax
call fcn.18029c510
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x18016353a
test r14, r14
je 0x1801634eb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r12, r12
je 0x1801634f9
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
test r15, r15
je 0x180163507
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rsi, rsi
je 0x180163515
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rdi, rdi
je 0x180163523
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rbx, rbx
je 0x180163619
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x180163619
call qword [sym.imp.USER32.dll_EmptyClipboard]
test r14, r14
je 0x180163553
mov rdx, r14
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test r12, r12
je 0x180163566
mov rdx, r12
mov ecx, 2
call qword [sym.imp.USER32.dll_SetClipboardData]
test r15, r15
je 0x180163579
mov rdx, r15
mov ecx, 0xf
call qword [sym.imp.USER32.dll_SetClipboardData]
test rsi, rsi
je 0x1801635a5
lea rcx, str.HTML_Format
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x18016359c
mov rdx, rsi
mov ecx, eax
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1801635a5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rdi, rdi
je 0x1801635d1
lea rcx, str.QQ_Unicode_RichEdit_Format
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x1801635c8
mov rdx, rdi
mov ecx, eax
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1801635d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rbx, rbx
je 0x1801635fd
lea rcx, str.QQRichEditFormat
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x1801635f4
mov rdx, rbx
mov ecx, eax
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1801635fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
cmp byte [rbp + 0x100], 0
je 0x180163613
call fcn.180163690
jmp 0x180163619
call fcn.180163730
nop
lea rcx, [rbp - 0x48]
call fcn.180037bc0
nop
lea rcx, [rbp - 0x28]
call fcn.1800338a0
nop
lea rcx, [rbp + 0x38]
call fcn.180037bc0
nop
lea rcx, [rbp + 0x78]
call fcn.1800338a0
nop
lea rcx, [rbp - 0x68]
call fcn.1800338a0
nop
lea rcx, [rbp - 8]
call fcn.1800338a0
nop
lea rcx, [rsp + 0x78]
call fcn.1800338a0
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1802994c0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret