Function at 0x140019b00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
push r15
mov eax, 0x60118
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x600e0], rax
cmp qword [r8 + 8], 0
mov r15, r8
mov ebx, edx
je 0x140019e2a
mov qword [rsp + 0x60148], rbp
mov qword [rsp + 0x60100], r12
lea r12d, [rdx - 1]
lea rdx, [0x140068010]
mov eax, dword [rdx + r12*4]
lea ebp, [rax*2 + 1]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140019e1a
mov qword [rsp + 0x60110], rsi
mov qword [rsp + 0x60108], rdi
mov qword [rsp + 0x600f8], r13
mov qword [rsp + 0x600f0], r14
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140019df4
mov rcx, qword [r15 + 8]
cmp ebx, 0x64
jne 0x140019d25
imul rdi, rcx, 0x18043
inc rdi
lea rcx, [rdi + rdi]
call fcn.14004564c
mov r14, rax
test rax, rax
je 0x140019df4
xor ebp, ebp
mov word [rax], bp
mov rcx, qword [r15]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140019c82
nop word [rax + rax]
mov dword [rsp + 0x38], 0x17ffd
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x60]
call fcn.140021d70
mov rcx, rax
lea r8, [rsp + 0x38]
xor r9d, r9d
lea rdx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x140019cd1
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
add rcx, 0x78
mov dword [rsp + 0x30], 2
call fcn.140017900
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
lea r8, str.ed2k:__file_s_I64i_s__r_n
mov edx, 0x18043
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx]
lea rcx, [rsp + 0x30050]
mov qword [rsp + 0x20], rax
call fcn.14000a100
lea r8, [rsp + 0x30050]
mov rdx, rdi
mov rcx, r14
call fcn.140009ee0
mov rbx, qword [rbx]
cmp rbx, qword [r15]
jne 0x140019be0
cmp rdi, 0x7fffffff
ja 0x140019cb4
mov rdx, rdi
mov rax, r14
test rdi, rdi
je 0x140019ca5
cmp word [rax], bp
je 0x140019ca5
add rax, 2
sub rdx, 1
jne 0x140019c96
sub rdi, rdx
mov rbx, rbp
test rdx, rdx
cmovne rbx, rdi
jne 0x140019cb7
mov rbx, rbp
lea r15, [rbx + rbx]
mov ecx, 2
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x140019cde
mov rcx, r14
call fcn.140045644
jmp 0x140019df4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
jne 0x140019d05
mov rcx, r14
call fcn.140045644
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140019df4
mov r8, r15
mov rdx, r14
mov rcx, rdi
call fcn.1400428f0
mov rcx, r14
mov word [rdi + rbx*2 - 4], bp
call fcn.140045644
jmp 0x140019ddd
lea eax, [rbp + 1]
mov edx, eax
imul rdx, rcx
mov ecx, 2
mov r13d, eax
lea rdx, [rdx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
je 0x140019df4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x140019cf7
mov rax, qword [r15]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140019dd7
lea eax, [rbp - 1]
mov esi, 0xa
add rax, rax
lea r14, [rbp*2]
add r13, r13
mov rbp, rax
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
add rcx, 0x78
mov dword [rsp + 0x30], r12d
call fcn.140006700
mov r8, r14
mov rcx, rdi
mov rdx, qword [rax + 0x80]
call fcn.1400428f0
mov word [r14 + rdi], si
mov eax, 0xd
mov word [rdi + rbp], ax
add rdi, r13
mov rbx, qword [rbx]
cmp rbx, qword [r15]
jne 0x140019d90
mov rsi, qword [rsp + 0x40]
xor ebp, ebp
mov word [rdi - 4], bp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov r13, qword [rsp + 0x600f8]
mov rsi, qword [rsp + 0x60110]
mov rdi, qword [rsp + 0x60108]
mov r14, qword [rsp + 0x600f0]
mov rbp, qword [rsp + 0x60148]
mov r12, qword [rsp + 0x60100]
mov rcx, qword [rsp + 0x600e0]
xor rcx, rsp
call fcn.140041820
add rsp, 0x60118
pop r15
pop rbx
ret