Function at 0x14000d730
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x70
xor ebp, ebp
lea rcx, [0x1400cf7c8]
mov edi, ebp
mov dword [r8], ebp
mov esi, r9d
mov r13, r8
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov r14d, eax
test eax, eax
je 0x14000d9f5
mov ecx, eax
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14000d9f5
mov qword [rsp + 0xb8], rbx
mov ecx, r14d
mov qword [rsp + 0x68], r12
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, r12
mov qword [rsp + 0x48], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000d822
mov qword [rsp + 0x60], r15
lea ecx, [rbp + 2]
lea r15d, [rbx + rbx]
movsxd rdx, r15d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
jne 0x14000d83d
test esi, esi
je 0x14000d7f8
lea r8, [0x1400c65a8]
lea rdx, [0x1400cf7f0]
mov rcx, qword [rsp + 0xc0]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test rdi, rdi
je 0x14000d80f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test rbx, rbx
je 0x14000d81d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov eax, ebp
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x14000d7f8
mov rax, qword [rsp + 0x48]
mov r9, rdi
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x40], eax
mov eax, dword [0x140121b58]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xb0], r15d
call fcn.140025c30
mov dword [r13], eax
cmp eax, 6
jne 0x14000d938
movsxd r15, dword [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r15
mov r8d, 2
mov rcx, rbx
mov rdi, rbp
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test rax, rax
je 0x14000d7d2
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x14000d7f8
mov rax, qword [rsp + 0x48]
mov r9, rdi
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x40], eax
mov eax, dword [0x140121b58]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140025c30
mov dword [r13], eax
cmp dword [r13], ebp
je 0x14000d959
test esi, esi
je 0x14000d7f8
lea r8, [0x1400c7ec0]
lea rdx, [0x1400cf820]
jmp 0x14000d7e4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
movsxd rax, dword [rsp + 0xb0]
cmp r15d, eax
jle 0x14000d996
mov rdx, rax
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test rax, rax
je 0x14000d80f
mov rbx, rax
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.USER32.dll_SetClipboardData]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.USER32.dll_SetClipboardData]
xor edx, edx
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_SetClipboardData]
mov qword [0x140124378], rbx
test esi, esi
je 0x14000d9eb
mov rcx, qword [rsp + 0xc0]
lea r8, [0x1400cf770]
mov r9d, 0x40
lea rdx, [0x1400cf8a0]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebp, 1
jmp 0x14000d81d
xor eax, eax
add rsp, 0x70
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret