Function at 0x140062678
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x1400bfa10]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
xor r12d, r12d
movsxd rdi, r9d
mov qword [rsp + 0x38], r12
mov rbx, rdx
mov qword [rsp + 0x68], r8
mov r9d, edi
mov qword [rsp + 0x30], r12
mov r8, rdx
mov dword [rsp + 0x28], r12d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rsi, [rdi + rdi]
mov qword [rbp - 0x80], rdi
movsxd r15, eax
mov r13d, 0x2002
mov rdx, rsi
mov dword [rsp + 0x48], r15d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdx, r15
mov ecx, r13d
mov r14, rax
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp - 0x70], rax
mov r13, rax
test r14, r14
je 0x140062f6f
mov rcx, r14
test rax, rax
je 0x140062f69
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp - 0x78], rax
mov r12, rax
test rax, rax
jne 0x14006274b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140062f74
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x78], rax
mov r15, rax
test rax, rax
jne 0x14006276c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x14006273d
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.14006f9f0
xor eax, eax
mov r9d, edi
mov qword [rsp + 0x38], rax
mov r8, rbx
mov qword [rsp + 0x30], rax
xor edx, edx
mov eax, dword [rsp + 0x48]
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [0x1400c4be0]
mov edx, 0x8d
call fcn.140002d3c
xor r15d, r15d
test eax, eax
je 0x140062eaa
mov rcx, qword [0x1400c4be0]
lea edx, [r15 + 0x75]
mov dword [rsp + 0x44], r15d
mov esi, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], r15d
call fcn.140002c80
xor r8d, r8d
lea rdx, [rbp + 0x3d0]
xor ecx, ecx
mov rbx, rax
call fcn.14006c644
mov rcx, qword [rbx]
call fcn.140071b40
add eax, 0x64
lea edx, [r15 + 1]
movsxd rcx, eax
mov qword [rsp + 0x60], rax
call fcn.14000fd10
mov r9d, dword [rbx + 0xc]
lea rdx, str._rtf1_ansideff0_fonttbl_f0_fmodern__s__f0_fs_d
mov r8, qword [rbx]
add r9d, r9d
mov rcx, rax
mov r15, rax
call fcn.14000a3b8
mov r9, qword [rsp + 0x68]
xor r11d, r11d
mov ebx, eax
test r9, r9
je 0x1400629ad
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x418
call fcn.14006fe40
dec edi
xor r10d, r10d
test edi, edi
jle 0x1400628f1
mov r8, qword [rsp + 0x68]
mov r9d, edi
mov ecx, dword [r8]
mov eax, 0x1ff
mov edx, dword [r8]
shr ecx, 9
and edx, eax
and ecx, eax
test dword [r8], 0x100000
je 0x140062896
mov eax, edx
mov edx, ecx
mov ecx, eax
cmp dword [0x1400c1f80], r10d
je 0x1400628bc
test dword [r8], 0x40000
je 0x1400628bc
cmp edx, 8
jge 0x1400628b2
add edx, 8
jmp 0x1400628bc
cmp edx, 0x100
jl 0x1400628bc
inc edx
test dword [r8], 0x200000
je 0x1400628d9
cmp ecx, 8
jge 0x1400628cf
add ecx, 8
jmp 0x1400628d9
cmp ecx, 0x100
jl 0x1400628d9
inc ecx
movsxd rax, edx
add r8, 4
inc dword [rbp + rax*4 - 0x60]
movsxd rax, ecx
inc dword [rbp + rax*4 - 0x60]
sub r9, 1
jne 0x140062875
mov ecx, r10d
mov rax, r10
cmp dword [rbp + rax*4 - 0x60], r10d
je 0x140062904
inc ecx
mov dword [rbp + rax*4 - 0x60], ecx
inc rax
cmp rax, 0x106
jl 0x1400628f7
imul eax, ecx, 0x19
mov r8d, 1
mov rcx, r15
add eax, dword [rsp + 0x60]
movsxd rdx, eax
call fcn.14000fda0
lea rdx, str.colortbl__
mov rcx, rax
mov r15, rax
call fcn.14007adf0
mov rcx, r15
call fcn.140071b40
mov rbx, rax
lea rdi, [0x1400c23c1]
lea rsi, [rbp - 0x60]
cmp dword [rsi], 0
je 0x140062979
movzx edx, byte [rdi - 1]
movzx r9d, byte [rdi]
movzx r8d, byte [rdi + 1]
mov dword [rsp + 0x20], edx
lea rdx, str._red_dgreen_d_blue_d_
movsxd rcx, ebx
add rcx, r15
call fcn.14000a3b8
add ebx, eax
add rsi, 4
lea rax, [0x1400c26d3]
add rdi, 3
cmp rdi, rax
jl 0x14006294f
movsxd rcx, ebx
lea rdx, [0x1400aba08]
add rcx, r15
call fcn.14007ae90
mov esi, dword [rsp + 0x40]
inc ebx
mov r9, qword [rsp + 0x68]
xor r11d, r11d
mov r8d, dword [rsp + 0x48]
test r8d, r8d
jle 0x140062e46
mov r10d, dword [rsp + 0x44]
mov r13, r11
mov qword [rsp + 0x70], r11
cmp r13, qword [rbp - 0x80]
jge 0x140062e3e
mov rax, qword [rsp + 0x78]
movsxd rdx, esi
mov al, byte [rdx + rax]
test al, al
je 0x140062e3e
cmp word [r12 + r13*2], r11w
je 0x140062e3e
lea ecx, [rsi + 1]
cmp ecx, r8d
jge 0x140062a1e
cmp al, 0xd
jne 0x140062a1e
mov rax, qword [rsp + 0x78]
cmp byte [rdx + rax + 1], 0xa
jne 0x140062a1e
inc r10d
mov dword [rsp + 0x40], ecx
inc r13
mov dword [rsp + 0x44], r10d
mov qword [rsp + 0x70], r13
mov esi, ecx
test r9, r9
je 0x140062bd6
lea eax, [rbx + 0x40]
cmp dword [rsp + 0x60], eax
jge 0x140062a57
lea eax, [rbx + 0x200]
mov r8d, 1
movsxd rdx, eax
mov rcx, r15
mov qword [rsp + 0x60], rax
call fcn.14000fda0
mov r9, qword [rsp + 0x68]
mov r15, rax
xor r11d, r11d
movsxd rax, esi
mov r14d, dword [r9 + rax*4]
mov eax, 0x1ff
mov edi, r14d
mov ecx, r14d
shr edi, 9
and ecx, eax
and edi, eax
mov edx, r14d
and edx, 0x100000
je 0x140062a81
mov eax, ecx
mov ecx, edi
mov edi, eax
mov eax, dword [0x1400c1f80]
mov r8d, 0x40000
test eax, eax
je 0x140062aaa
test r8d, r14d
je 0x140062aaa
cmp ecx, 8
jge 0x140062aa0
add ecx, 8
jmp 0x140062aaa
cmp ecx, 0x100
jl 0x140062aaa
inc ecx
bt r14d, 0x15
jae 0x140062ac5
cmp edi, 8
jge 0x140062abb
add edi, 8
jmp 0x140062ac5
cmp edi, 0x100
jl 0x140062ac5
inc edi
cmp dword [0x1400c1c0c], r11d
je 0x140062ad6
mov esi, r14d
and esi, r8d
jmp 0x140062ad9
mov esi, r11d
and r14d, 0x80000
test edx, edx
jne 0x140062b0b
cmp edi, 0x100
mov edx, 0xffffffff
cmovge edi, edx
cmp ecx, 0x100
jl 0x140062b0b
test eax, eax
je 0x140062b09
test cl, 1
je 0x140062b09
cmp edi, edx
cmove esi, r8d
mov ecx, edx
cmp dword [rsp + 0x50], ecx
je 0x140062b3d
mov dword [rsp + 0x50], ecx
test ecx, ecx
js 0x140062b23
movsxd rax, ecx
mov r8d, dword [rbp + rax*4 - 0x60]
jmp 0x140062b26
mov r8d, r11d
movsxd rcx, ebx
lea rdx, str.cf_d
add rcx, r15
call fcn.14000a3b8
add ebx, eax
xor r11d, r11d
cmp dword [rsp + 0x54], edi
je 0x140062b6c
mov dword [rsp + 0x54], edi
test edi, edi
js 0x140062b55
movsxd rax, edi
mov r8d, dword [rbp + rax*4 - 0x60]
jmp 0x140062b58
mov r8d, r11d
movsxd rcx, ebx
lea rdx, str.highlight_d
add rcx, r15
call fcn.14000a3b8
add ebx, eax
cmp dword [rsp + 0x58], esi
je 0x140062b9e
lea rax, [0x1400aba28]
movsxd rcx, ebx
test esi, esi
mov dword [rsp + 0x58], esi
lea r8, str._b0
cmovne r8, rax
lea rdx, [0x140097a98]
add rcx, r15
call fcn.14000a3b8
add ebx, eax
cmp dword [rsp + 0x5c], r14d
je 0x140062bd3
lea rax, str.ul
movsxd rcx, ebx
test r14d, r14d
mov dword [rsp + 0x5c], r14d
lea r8, str.ulnone
cmovne r8, rax
lea rdx, [0x140097a98]
add rcx, r15
call fcn.14000a3b8
add ebx, eax
xor r11d, r11d
movsxd r14, dword [rsp + 0x40]
add r14, qword [rsp + 0x78]
movzx eax, word [r12 + r13*2]
movzx ecx, byte [r14]
cmp word [rbp + rcx*2 + 0x3d0], ax
jne 0x140062c0f
mov edi, 1
mov byte [rbp + 0x3c0], r11b
mov byte [rsp + 0x4c], r11b
mov r12d, r11d
mov esi, r11d
jmp 0x140062c9a
movsxd rax, dword [rsp + 0x44]
lea r8, [rbp + 0x3d0]
mov qword [rsp + 0x38], r11
xor edx, edx
mov qword [rsp + 0x30], r11
xor ecx, ecx
mov dword [rsp + 0x28], r11d
lea r8, [r8 + rax*2]
mov qword [rsp + 0x20], r11
lea r9d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x3c0]
mov edi, eax
cmp eax, 1
je 0x140062c7e
movzx r9d, word [r12 + r13*2]
lea rdx, str.uc_du_d
mov r8d, eax
call fcn.14000a3b8
lea rdx, [0x1400aba08]
mov esi, eax
lea rcx, [rsp + 0x4c]
mov r12d, 1
call fcn.14007ae90
jmp 0x140062c9a
movzx r8d, word [r12 + r13*2]
lea rdx, str.u_d
call fcn.14000a3b8
mov esi, eax
xor eax, eax
mov r12d, eax
mov byte [rsp + 0x4c], al
mov ecx, dword [rsp + 0x40]
add ecx, edi
mov dword [rsp + 0x40], ecx
cmp ecx, dword [rsp + 0x48]
jle 0x140062cc3
mov r8d, 0x1459
lea rdx, str...windowswindow.c
lea rcx, str.tindex__multilen___len2
call fcn.140071a0c
movsxd rdi, edi
lea edx, [r12 + rsi]
xor eax, eax
test rdi, rdi
jle 0x140062d25
mov r8, r14
mov r9, rdi
movabs r13, 0x280000001
mov cl, byte [r8]
lea eax, [rcx - 0x5c]
cmp al, 0x21
ja 0x140062cf9
movzx eax, al
bt r13, rax
jae 0x140062cf9
add edx, 2
jmp 0x140062d17
cmp cl, 0xd
je 0x140062d14
cmp cl, 0xa
je 0x140062d14
sub cl, 0x20
cmp cl, 0x5e
ja 0x140062d0f
inc edx
jmp 0x140062d17
add edx, 4
jmp 0x140062d17
add edx, 6
inc r8
sub r9, 1
jne 0x140062ce1
mov r13, qword [rsp + 0x70]
lea ecx, [rdx + rbx]
lea eax, [rcx + 3]
cmp dword [rsp + 0x60], eax
jge 0x140062d50
lea eax, [rcx + 0x200]
mov r8d, 1
movsxd rdx, eax
mov rcx, r15
mov qword [rsp + 0x60], rax
call fcn.14000fda0
mov r15, rax
movsxd rcx, ebx
lea rdx, [rbp + 0x3c0]
add rcx, r15
call fcn.14007ae90
xor eax, eax
add ebx, esi
test rdi, rdi
jle 0x140062df5
movabs r13, 0x280000001
mov cl, byte [r14]
lea eax, [rcx - 0x5c]
cmp al, 0x21
ja 0x140062d9f
bt r13, rax
jae 0x140062d9f
movsxd rax, ebx
inc ebx
movsxd rcx, ebx
mov byte [rax + r15], 0x5c
mov al, byte [r14]
mov byte [rcx + r15], al
jmp 0x140062db7
cmp cl, 0xd
je 0x140062dd3
cmp cl, 0xa
je 0x140062dd3
lea eax, [rcx - 0x20]
cmp al, 0x5e
ja 0x140062dbb
movsxd rax, ebx
mov byte [rax + r15], cl
inc ebx
jmp 0x140062de7
movzx r8d, cl
lea rdx, str._02x
movsxd rcx, ebx
add rcx, r15
call fcn.14000a3b8
jmp 0x140062de5
movsxd rcx, ebx
lea rdx, str.par_r_n
add rcx, r15
call fcn.14000a3b8
add ebx, eax
inc r14
sub rdi, 1
jne 0x140062d79
mov r13, qword [rsp + 0x70]
movsxd rcx, ebx
lea rdx, [rsp + 0x4c]
add rcx, r15
call fcn.14007ae90
mov r10d, dword [rsp + 0x44]
add ebx, r12d
mov r8d, dword [rsp + 0x48]
inc r10d
mov esi, dword [rsp + 0x40]
inc r13
mov r12, qword [rbp - 0x78]
mov r11d, 0
mov r9, qword [rsp + 0x68]
mov dword [rsp + 0x44], r10d
mov qword [rsp + 0x70], r13
cmp esi, r8d
jl 0x1400629c8
mov r13, qword [rbp - 0x70]
mov r14, qword [rbp - 0x68]
movsxd rax, ebx
mov ecx, 0x2002
inc ebx
mov byte [rax + r15], 0x7d
movsxd rax, ebx
inc ebx
mov byte [rax + r15], r11b
movsxd rax, ebx
inc ebx
movsxd rdi, ebx
mov rdx, rdi
mov byte [rax + r15], r11b
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140062ea0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140062ea0
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.14006f9f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r15
call fcn.14000fcfc
jmp 0x140062ead
mov rbx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [rbp + 0x640]
mov esi, 0x8002
test edi, edi
jne 0x140062ee4
mov rcx, qword [0x1400c4c28]
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x1400c4c28]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140062f3c
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, r14
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, r13
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rbx, rbx
je 0x140062f34
lea rcx, str.Rich_Text_Format
call qword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140062f4e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jne 0x140062f7d
mov rcx, qword [0x1400c4c28]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x140062f7d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r13, r13
je 0x140062f7d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.14006eb50
mov rbx, qword [rsp + 0x720]
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret