Function at 0x140007210
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x140135358], 0
mov rbx, r8
mov rdi, rdx
jne 0x1400072b2
xor ebp, ebp
test rdx, rdx
je 0x140007390
mov eax, 0xffffffff
cmp rbx, rax
jne 0x14000725b
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bp
jne 0x140007250
mov ebx, eax
test rbx, rbx
je 0x140007390
lea rsi, [rbx + 1]
test rsi, rsi
je 0x1400072b2
lea rdx, [rsi + rsi]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x140135348], rax
test rax, rax
jne 0x1400072c9
mov rax, qword [0x140134898]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x140134a20]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
call fcn.14000fb70
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [0x140135358], rax
test rax, rax
jne 0x140007365
mov rcx, qword [0x140135348]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140135348], rax
mov rax, qword [0x14012c398]
cmp dword [rax + 0x60], ebp
jne 0x14000733a
cmp dword [0x140135218], ebp
jne 0x14000733a
cmp byte [0x14012ed1d], 1
je 0x14000733a
lea r9, [0x140106cb0]
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140134a20]
call fcn.140010b10
jmp 0x1400072b2
mov qword [rsp + 0x28], rbp
lea r8, [0x140106cb0]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x140134a20]
call fcn.14000f460
jmp 0x1400072b2
mov dword [0x140135368], esi
mov word [rax], bp
mov rsi, qword [0x140135358]
test rsi, rsi
je 0x1400072b2
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400d8b44
mov word [rsi + rbx*2], bp
cmp dword [0x14013536c], ebp
jne 0x1400073b2
call fcn.140007730
test eax, eax
jne 0x1400073b2
lea rdx, str.Cant_open_clipboard_for_writing.
call fcn.140007500
jmp 0x1400072b4
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140007405
cmp dword [0x14013536c], ebp
je 0x1400073f4
cmp qword [0x140135350], rbp
je 0x1400073e1
mov rcx, qword [0x140135340]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135350], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013536c], ebp
mov qword [0x140135340], rbp
lea rdx, [0x140109028]
call fcn.140007500
jmp 0x1400072b4
mov rdx, qword [0x140135348]
test rdx, rdx
je 0x14000744f
mov rbx, qword [0x140135358]
test rbx, rbx
je 0x140007498
movzx ebx, word [rbx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135358], rbp
mov dword [0x140135368], ebp
test bx, bx
jne 0x140007491
mov rcx, qword [0x140135348]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [0x140135348], rax
cmp dword [0x14013536c], ebp
je 0x140007487
cmp qword [0x140135350], rbp
je 0x140007474
mov rcx, qword [0x140135340]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135350], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013536c], ebp
mov qword [0x140135340], rbp
mov eax, 1
jmp 0x1400072b4
mov rdx, qword [0x140135348]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400074b1
mov qword [0x140135348], rbp
jmp 0x14000744f
cmp dword [0x14013536c], ebp
je 0x1400074e9
cmp qword [0x140135350], rbp
je 0x1400074d6
mov rcx, qword [0x140135340]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140135350], rbp
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14013536c], ebp
mov qword [0x140135340], rbp
lea rdx, [0x140109048]
call fcn.140007500
jmp 0x1400072b4