Function at 0x45ecc0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 0
push 0
push 0
push edi
push esi
push 0
push 0
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x664], edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add edi, edi
mov ebx, eax
push edi
push 0x2002
mov dword [ebp - 0x658], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push 0x2002
mov dword [ebp - 0x65c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x65c]
mov dword [ebp - 0x66c], ebx
test eax, eax
je 0x45f5c1
push eax
test ebx, ebx
je 0x45f5c6
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x64c], eax
test eax, eax
jne 0x45ed79
mov esi, dword [ebp - 0x65c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046addd
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x648], eax
test eax, eax
jne 0x45edb4
mov esi, dword [ebp - 0x65c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046addd
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 0x64c]
call fcn.0046c120
mov ecx, dword [ebp - 0x648]
add esp, 0xc
push 0
push 0
push dword [ebp - 0x658]
push ecx
push dword [ebp - 0x664]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x8d
push dword [0x4ea4c4]
call fcn.004030c0
add esp, 8
xor edi, edi
test eax, eax
je 0x45f510
push 0x75
push dword [0x4ea4c4]
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x654], edi
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x67c], edi
call fcn.00403090
mov esi, eax
lea eax, [ebp - 0x214]
push edi
push eax
push edi
call fcn.004684d0
mov ecx, dword [esi]
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ee50
sub ecx, edx
push 1
lea eax, [ecx + 0x64]
push eax
mov dword [ebp - 0x638], eax
call fcn.0040e450
mov ecx, dword [esi + 8]
add ecx, ecx
mov dword [ebp - 0x630], eax
push ecx
push dword [esi]
push str._rtf1_ansideff0_fonttbl_f0_fmodern__s__f0_fs_d
push eax
call fcn.004089b0
add esp, 0x18
mov esi, eax
cmp dword [ebp - 0x634], edi
je 0x45f00a
push 0x418
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.0046c6a0
mov ebx, dword [ebp - 0x664]
add esp, 0xc
dec ebx
xor edi, edi
test ebx, ebx
jle 0x45ef3d
mov eax, dword [ebp - 0x634]
mov esi, dword [eax + edi*4]
mov ecx, esi
shr ecx, 9
mov edx, esi
and edx, 0x1ff
and ecx, 0x1ff
test esi, 0x100000
je 0x45eeeb
mov eax, edx
mov edx, ecx
mov ecx, eax
mov eax, dword [ebp - 0x634]
cmp dword [0x4e7880], 0
je 0x45ef0f
test esi, 0x40000
je 0x45ef0f
cmp edx, 8
jae 0x45ef06
add edx, 8
jmp 0x45ef0f
cmp edx, 0x100
jb 0x45ef0f
inc edx
test esi, 0x200000
je 0x45ef2a
cmp ecx, 8
jae 0x45ef21
add ecx, 8
jmp 0x45ef2a
cmp ecx, 0x100
jb 0x45ef2a
inc ecx
inc dword [ebp + edx*4 - 0x62c]
inc edi
inc dword [ebp + ecx*4 - 0x62c]
cmp edi, ebx
jl 0x45eec1
xor ecx, ecx
xor eax, eax
cmp dword [ebp + eax*4 - 0x62c], 0
je 0x45ef53
inc ecx
mov dword [ebp + eax*4 - 0x62c], ecx
inc eax
cmp eax, 0x106
jl 0x45ef41
imul eax, ecx, 0x19
push 1
add eax, dword [ebp - 0x638]
push eax
push dword [ebp - 0x630]
call fcn.0040e500
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x630], edx
lea ecx, [edx - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45ef80
mov eax, dword [str.colortbl__]
mov esi, edx
mov dword [ecx], eax
mov eax, dword [0x4d6718]
mov dword [ecx + 4], eax
mov eax, dword [0x4d671c]
mov dword [ecx + 8], eax
mov al, byte [0x4d6720]
mov byte [ecx + 0xc], al
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x45efb0
sub esi, ecx
lea ebx, [ebp - 0x62c]
mov edi, 0x4e7cb1
cmp dword [ebx], 0
je 0x45eff0
movzx eax, byte [edi - 1]
push eax
movzx eax, byte [edi]
push eax
movzx eax, byte [edi + 1]
push eax
lea eax, [esi + edx]
push str._red_dgreen_d_blue_d_
push eax
call fcn.004089b0
mov edx, dword [ebp - 0x630]
add esp, 0x14
add esi, eax
add edi, 3
add ebx, 4
cmp edi, 0x4e7fc3
jl 0x45efc4
mov eax, 0x7d
mov word [esi + edx], ax
inc esi
xor edi, edi
cmp dword [ebp - 0x658], 0
jle 0x45f4bd
lea ebx, [ebp - 0x214]
xor ecx, ecx
mov dword [ebp - 0x640], ebx
nop word [eax + eax]
cmp ecx, dword [ebp - 0x664]
jge 0x45f4bd
mov eax, dword [ebp - 0x648]
mov al, byte [edi + eax]
test al, al
je 0x45f4bd
mov edx, dword [ebp - 0x64c]
cmp word [edx + ecx*2], 0
mov edx, dword [ebp - 0x630]
je 0x45f4bd
lea ecx, [edi + 1]
cmp ecx, dword [ebp - 0x658]
jge 0x45f097
cmp al, 0xd
jne 0x45f097
mov eax, dword [ebp - 0x648]
cmp byte [edi + eax + 1], 0xa
jne 0x45f097
inc dword [ebp - 0x63c]
mov edi, ecx
add ebx, 2
mov dword [ebp - 0x654], edi
mov dword [ebp - 0x640], ebx
cmp dword [ebp - 0x634], 0
je 0x45f278
lea eax, [esi + 0x40]
cmp dword [ebp - 0x638], eax
jge 0x45f0cd
lea eax, [esi + 0x200]
push 1
push eax
push edx
mov dword [ebp - 0x638], eax
call fcn.0040e500
add esp, 0xc
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x634]
mov edx, dword [eax + edi*4]
mov edi, edx
shr edi, 9
mov ecx, edx
mov eax, edx
and ecx, 0x1ff
and edi, 0x1ff
and eax, 0x100000
mov dword [ebp - 0x660], eax
je 0x45f0fe
mov eax, ecx
mov ecx, edi
mov edi, eax
cmp dword [0x4e7880], 0
je 0x45f122
test edx, 0x40000
je 0x45f122
cmp ecx, 8
jae 0x45f119
add ecx, 8
jmp 0x45f122
cmp ecx, 0x100
jb 0x45f122
inc ecx
test edx, 0x200000
je 0x45f13d
cmp edi, 8
jae 0x45f134
add edi, 8
jmp 0x45f13d
cmp edi, 0x100
jb 0x45f13d
inc edi
mov eax, edx
xor ebx, ebx
and eax, 0x40000
cmp dword [0x4e777c], ebx
cmovne ebx, eax
and edx, 0x80000
cmp dword [ebp - 0x660], 0
mov dword [ebp - 0x644], edx
jne 0x45f195
cmp edi, 0x100
mov eax, 0xffffffff
cmovae edi, eax
cmp ecx, 0x100
jb 0x45f195
cmp dword [0x4e7880], 0
je 0x45f192
test cl, 1
je 0x45f192
cmp edi, eax
mov eax, 0x40000
cmove ebx, eax
or ecx, 0xffffffff
cmp dword [ebp - 0x670], ecx
je 0x45f1cb
mov dword [ebp - 0x670], ecx
test ecx, ecx
js 0x45f1b0
mov eax, dword [ebp + ecx*4 - 0x62c]
jmp 0x45f1b2
xor eax, eax
push eax
mov eax, dword [ebp - 0x630]
add eax, esi
push str.cf_d
push eax
call fcn.004089b0
add esp, 0xc
add esi, eax
cmp dword [ebp - 0x674], edi
je 0x45f204
mov dword [ebp - 0x674], edi
test edi, edi
js 0x45f1e6
mov eax, dword [ebp + edi*4 - 0x62c]
jmp 0x45f1e8
xor eax, eax
mov edi, dword [ebp - 0x630]
push eax
push str.highlight_d
lea eax, [esi + edi]
push eax
call fcn.004089b0
add esp, 0xc
add esi, eax
jmp 0x45f20a
mov edi, dword [ebp - 0x630]
cmp dword [ebp - 0x678], ebx
je 0x45f23b
test ebx, ebx
mov dword [ebp - 0x678], ebx
mov ecx, str._b0
mov eax, 0x4d6754
cmove eax, ecx
push eax
lea eax, [esi + edi]
push 0x4c4a04
push eax
call fcn.004089b0
add esp, 0xc
add esi, eax
mov ecx, dword [ebp - 0x644]
cmp dword [ebp - 0x67c], ecx
je 0x45f272
test ecx, ecx
mov dword [ebp - 0x67c], ecx
mov ecx, str.ulnone
mov eax, str.ul
cmove eax, ecx
push eax
lea eax, [esi + edi]
push 0x4c4a04
push eax
call fcn.004089b0
add esp, 0xc
add esi, eax
mov ebx, dword [ebp - 0x640]
mov eax, dword [ebp - 0x654]
add eax, dword [ebp - 0x648]
mov edi, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x64c]
mov dword [ebp - 0x660], eax
movzx eax, byte [eax]
mov ax, word [ebp + eax*2 - 0x214]
cmp ax, word [ecx + edi*2]
jne 0x45f2bd
xor eax, eax
mov byte [ebp - 0x14], 0
mov ebx, 1
mov byte [ebp - 0x650], 0
xor edi, edi
jmp 0x45f323
push 0
push 0
push 0
push 0
push 1
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov eax, dword [ebp - 0x64c]
movzx ecx, word [eax + edi*2]
lea eax, [ebp - 0x14]
push ecx
cmp ebx, 1
je 0x45f30b
push ebx
push str.uc_du_d
push eax
call fcn.004089b0
mov ecx, 0x7d
mov edi, eax
add esp, 0x10
mov word [ebp - 0x650], cx
mov eax, 1
jmp 0x45f323
push str.u_d
push eax
call fcn.004089b0
add esp, 0xc
mov edi, eax
xor eax, eax
mov byte [ebp - 0x650], al
xor ecx, ecx
mov dword [ebp - 0x668], edi
mov dword [ebp - 0x644], eax
lea edx, [eax + edi]
test ebx, ebx
jle 0x45f37e
mov edi, dword [ebp - 0x660]
nop
mov al, byte [edi + ecx]
cmp al, 0x5c
je 0x45f36c
cmp al, 0x7b
je 0x45f36c
cmp al, 0x7d
je 0x45f36c
cmp al, 0xd
je 0x45f365
cmp al, 0xa
je 0x45f365
sub al, 0x20
mov ah, 0x5e
cmp ah, al
sbb eax, eax
and eax, 3
inc eax
jmp 0x45f371
mov eax, 6
jmp 0x45f371
mov eax, 2
inc ecx
add edx, eax
cmp ecx, ebx
jl 0x45f340
mov edi, dword [ebp - 0x668]
lea eax, [esi + 3]
add eax, edx
cmp dword [ebp - 0x638], eax
jge 0x45f3b0
lea eax, [edx + 0x200]
add eax, esi
push 1
push eax
push dword [ebp - 0x630]
mov dword [ebp - 0x638], eax
call fcn.0040e500
add esp, 0xc
mov dword [ebp - 0x630], eax
lea ecx, [ebp - 0x14]
mov eax, esi
mov edx, ecx
sub eax, edx
mov edx, dword [ebp - 0x630]
add edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x45f3c1
add esi, edi
xor edi, edi
test ebx, ebx
jle 0x45f460
nop word [eax + eax]
mov eax, dword [ebp - 0x660]
mov cl, byte [eax + edi]
cmp cl, 0x5c
je 0x45f447
cmp cl, 0x7b
je 0x45f447
cmp cl, 0x7d
je 0x45f447
cmp cl, 0xd
je 0x45f42d
cmp cl, 0xa
je 0x45f42d
mov edx, dword [ebp - 0x630]
mov al, cl
sub al, 0x20
add edx, esi
cmp al, 0x5e
ja 0x45f417
mov byte [edx], cl
inc esi
jmp 0x45f45b
movzx eax, cl
push eax
push str._02x
push edx
call fcn.004089b0
add esp, 0xc
add esi, eax
jmp 0x45f45b
mov eax, dword [ebp - 0x630]
add eax, esi
push str.par_r_n
push eax
call fcn.004089b0
add esp, 8
add esi, eax
jmp 0x45f45b
mov ecx, dword [ebp - 0x630]
mov byte [esi + ecx], 0x5c
mov al, byte [eax + edi]
mov byte [esi + ecx + 1], al
add esi, 2
inc edi
cmp edi, ebx
jl 0x45f3e0
lea ecx, [ebp - 0x650]
mov eax, esi
mov edx, ecx
sub eax, edx
mov edx, dword [ebp - 0x630]
add edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x45f474
mov edi, dword [ebp - 0x654]
mov ecx, dword [ebp - 0x63c]
add edi, ebx
mov ebx, dword [ebp - 0x640]
inc ecx
add esi, dword [ebp - 0x644]
add ebx, 2
mov dword [ebp - 0x654], edi
mov dword [ebp - 0x63c], ecx
mov dword [ebp - 0x640], ebx
cmp edi, dword [ebp - 0x658]
jl 0x45f030
mov ebx, dword [ebp - 0x630]
mov word [esi + ebx], 0x7d
mov byte [esi + ebx + 2], 0
add esi, 3
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x45f501
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x45f501
push esi
push ebx
push eax
call fcn.0046c120
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0xc
push edi
call eax
push ebx
call fcn.0040e430
mov ebx, dword [ebp - 0x66c]
add esp, 4
mov esi, dword [ebp - 0x65c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call eax
cmp dword [ebp + 0x18], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x45f542
push 0
push 1
push 0x8002
push dword [0x4ea4b8]
call ebx
push dword [0x4ea4b8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45f588
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xd
call esi
push dword [ebp - 0x66c]
push 1
call esi
test edi, edi
je 0x45f580
push edi
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
push eax
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45f599
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 0x66c]
call esi
cmp dword [ebp + 0x18], 0
jne 0x45f5cc
push 0
push 0
push 0x8002
push dword [0x4ea4b8]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046addd
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x45f5cc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046addd
mov esp, ebp
pop ebp
ret