Function at 0x1400b1210
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x23], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400b1230
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 0
je 0x1400b1226
cmp byte [rdx + 0x23], 0
jne 0x1400b123a
mov rdi, qword [rdx + 0x10]
mov rcx, rdi
call fcn.140001130
cmp byte [rbx + 0x23], 1
jne 0x1400b12a7
cmp rbx, rdi
je 0x1400b1297
mov rax, qword [rdi + 0x10]
mov r9b, 1
xor edx, edx
mov r8, rax
and eax, 1
mov rcx, rbx
shr r8, 1
mov byte [rsp + 0x20], 0
add r8, rax
call fcn.1400b14e0
test eax, eax
jne 0x1400b127e
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, qword [rbx + 8]
add r8, 2
call fcn.1400cb2e0
or byte [rbx + 0x21], 1
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp 0x1400b12c0
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x14011be28]
mov rbx, rdx
call fcn.1400065e0
test eax, eax
jne 0x1400b12fd
lea r8, [0x1400e346c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x14011b1d0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140040740
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rbp, [rsi + rbx]
lea rbx, [rsi + 4]
xor r14d, r14d
cmp rbx, rbp
ja 0x1400b13c2
mov r13d, dword [rsi]
test r13d, r13d
je 0x1400b13c2
mov rax, rbx
add rbx, 8
cmp rbx, rbp
ja 0x1400b13c2
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, rbp
ja 0x1400b13c2
mov rdx, r14
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x1400b1480
test rdi, rdi
je 0x1400b13a9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400b1421
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400cb2e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, rbp
jbe 0x1400b1330
cmp dword [0x14011be54], r14d
je 0x1400b13fc
cmp qword [0x14011be38], r14
je 0x1400b13e8
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
mov eax, 1
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x14011be54], r14d
je 0x1400b1464
cmp qword [0x14011be38], r14
je 0x1400b1450
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, [0x1400e3858]
lea rcx, [0x14011b1d0]
call fcn.140040740
jmp 0x1400b1401
cmp dword [0x14011be54], r14d
je 0x1400b14ba
cmp qword [0x14011be38], r14
je 0x1400b14a6
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, str.Out_of_memory.
lea rcx, [0x14011b1d0]
call fcn.140040740
jmp 0x1400b1401