Function at 0x140001f10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x20], rbx
je 0x1400020d2
mov rcx, qword [rcx + 0x30]
mov rax, qword [rdi + 0x38]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400020d2
nop dword [rax]
mov rsi, qword [rcx + rbx*8]
mov rax, qword [rsi]
lea rdx, [rdi + 0x10]
mov rcx, rsi
call qword [rax]
test al, al
jne 0x140001f80
inc rbx
mov rcx, qword [rdi + 0x30]
mov rax, qword [rdi + 0x38]
sub rax, rcx
sar rax, 3
cmp rbx, rax
jb 0x140001f50
jmp 0x1400020d2
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.1400025f0
nop
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
test eax, eax
jne 0x140001fcd
lea rdx, str.Failed_to_open_clipboard.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002aa0
mov rcx, rax
lea rdx, [0x140002c80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140002098
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140001fff
lea rdx, str.Failed_to_empty_clipboard.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002aa0
mov rcx, rax
lea rdx, [0x140002c80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140002091
mov r14, qword [rsp + 0x38]
lea rdx, [r14 + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x140002024
lea rdx, str.Failed_to_allocate_global_memory.
jmp 0x140001fde
lea rbx, [rsp + 0x28]
cmp rbp, 0xf
cmova rbx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rax
lea r8, [r14 + 1]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140002091
lea rdx, str.Failed_to_set_clipboard_data.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002aa0
mov rcx, rax
lea rdx, [0x140002c80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
cmp rbp, 0xf
jbe 0x1400020d2
lea rdx, [rbp + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400020ca
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14000a4fc
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret