Function at 0x42afb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x4b1740]
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 - 0x640], eax
mov dword [ebp - 0x668], edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add edi, edi
mov ebx, eax
push edi
push 0x2002
mov dword [ebp - 0x660], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push 0x2002
mov dword [ebp - 0x664], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x66c], ebx
test eax, eax
je 0x42b8c9
push eax
test ebx, ebx
je 0x42b8ce
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x658], eax
test eax, eax
jne 0x42b069
mov esi, dword [ebp - 0x664]
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.004343a0
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x654], eax
test eax, eax
jne 0x42b0a4
mov esi, dword [ebp - 0x664]
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.004343a0
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 0x658]
call fcn.004356f0
add esp, 0xc
push 0
push 0
push dword [ebp - 0x660]
push dword [ebp - 0x654]
push dword [ebp - 0x668]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x8d
push dword [0x4b5dfc]
call fcn.004030f0
add esp, 8
xor edi, edi
test eax, eax
je 0x42b818
push 0x75
push dword [0x4b5dfc]
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x674], edi
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x67c], edi
call fcn.004030c0
mov esi, eax
lea eax, [ebp - 0x214]
push edi
push eax
push edi
call fcn.004331c0
mov ecx, dword [esi]
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b140
sub ecx, edx
push 1
lea eax, [ecx + 0x64]
push eax
mov dword [ebp - 0x644], eax
call fcn.0040e1f0
mov ecx, dword [esi + 8]
mov ebx, eax
add ecx, ecx
mov dword [ebp - 0x630], ebx
push ecx
push dword [esi]
push str._rtf1_ansideff0_fonttbl_f0_fmodern__s__f0_fs_d
push ebx
call fcn.00408a10
add esp, 0x18
mov esi, eax
cmp dword [ebp - 0x640], edi
je 0x42b301
push 0x418
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.00435c70
mov ebx, dword [ebp - 0x668]
add esp, 0xc
dec ebx
xor edi, edi
test ebx, ebx
jle 0x42b22f
mov eax, dword [ebp - 0x640]
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 0x42b1dd
mov eax, edx
mov edx, ecx
mov ecx, eax
mov eax, dword [ebp - 0x640]
cmp dword [0x4b3194], 0
je 0x42b201
test esi, 0x40000
je 0x42b201
cmp edx, 8
jae 0x42b1f8
add edx, 8
jmp 0x42b201
cmp edx, 0x100
jb 0x42b201
inc edx
test esi, 0x200000
je 0x42b21c
cmp ecx, 8
jae 0x42b213
add ecx, 8
jmp 0x42b21c
cmp ecx, 0x100
jb 0x42b21c
inc ecx
inc dword [ebp + edx*4 - 0x62c]
inc edi
inc dword [ebp + ecx*4 - 0x62c]
cmp edi, ebx
jl 0x42b1b3
xor ecx, ecx
xor eax, eax
cmp dword [ebp + eax*4 - 0x62c], 0
je 0x42b245
inc ecx
mov dword [ebp + eax*4 - 0x62c], ecx
inc eax
cmp eax, 0x106
jl 0x42b233
mov edx, dword [ebp - 0x630]
imul eax, ecx, 0x19
push 1
add eax, dword [ebp - 0x644]
push eax
push edx
call fcn.0040e290
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 0x42b273
mov eax, dword [str.colortbl__]
mov esi, edx
mov dword [ecx], eax
mov eax, dword [0x4a2c60]
mov dword [ecx + 4], eax
mov eax, dword [0x4a2c64]
mov dword [ecx + 8], eax
mov al, byte [0x4a2c68]
mov byte [ecx + 0xc], al
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42b2a1
sub esi, ecx
lea ebx, [ebp - 0x62c]
mov edi, 0x4b36c1
cmp dword [ebx], 0
je 0x42b2e1
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.00408a10
mov edx, dword [ebp - 0x630]
add esp, 0x14
add esi, eax
add edi, 3
add ebx, 4
cmp edi, 0x4b39d3
jl 0x42b2b5
mov ebx, dword [ebp - 0x630]
mov eax, 0x7d
mov word [esi + ebx], ax
inc esi
xor edi, edi
cmp dword [ebp - 0x660], 0
jle 0x42b7cb
lea edx, [ebp - 0x214]
xor eax, eax
mov dword [ebp - 0x64c], edx
nop dword [eax]
cmp eax, dword [ebp - 0x668]
jge 0x42b7cb
mov ecx, dword [ebp - 0x654]
mov cl, byte [edi + ecx]
test cl, cl
je 0x42b7cb
mov ebx, dword [ebp - 0x658]
cmp word [ebx + eax*2], 0
mov ebx, dword [ebp - 0x630]
je 0x42b7cb
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x660]
jge 0x42b388
cmp cl, 0xd
jne 0x42b388
mov ecx, dword [ebp - 0x654]
cmp byte [edi + ecx + 1], 0xa
jne 0x42b388
inc dword [ebp - 0x638]
mov edi, eax
add edx, 2
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x64c], edx
cmp dword [ebp - 0x640], 0
je 0x42b569
lea eax, [esi + 0x40]
cmp dword [ebp - 0x644], eax
jge 0x42b3be
lea eax, [esi + 0x200]
push 1
push eax
push ebx
mov dword [ebp - 0x644], eax
call fcn.0040e290
add esp, 0xc
mov dword [ebp - 0x630], eax
mov eax, dword [ebp - 0x640]
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 - 0x634], eax
je 0x42b3ef
mov eax, ecx
mov ecx, edi
mov edi, eax
cmp dword [0x4b3194], 0
je 0x42b413
test edx, 0x40000
je 0x42b413
cmp ecx, 8
jae 0x42b40a
add ecx, 8
jmp 0x42b413
cmp ecx, 0x100
jb 0x42b413
inc ecx
test edx, 0x200000
je 0x42b42e
cmp edi, 8
jae 0x42b425
add edi, 8
jmp 0x42b42e
cmp edi, 0x100
jb 0x42b42e
inc edi
mov eax, edx
xor ebx, ebx
and eax, 0x40000
cmp dword [0x4b3054], ebx
cmovne ebx, eax
and edx, 0x80000
cmp dword [ebp - 0x634], 0
mov dword [ebp - 0x63c], edx
jne 0x42b486
cmp edi, 0x100
mov eax, 0xffffffff
cmovae edi, eax
cmp ecx, 0x100
jb 0x42b486
cmp dword [0x4b3194], 0
je 0x42b483
test cl, 1
je 0x42b483
cmp edi, eax
mov eax, 0x40000
cmove ebx, eax
or ecx, 0xffffffff
cmp dword [ebp - 0x670], ecx
je 0x42b4bc
mov dword [ebp - 0x670], ecx
test ecx, ecx
js 0x42b4a1
mov eax, dword [ebp + ecx*4 - 0x62c]
jmp 0x42b4a3
xor eax, eax
push eax
mov eax, dword [ebp - 0x630]
add eax, esi
push str.cf_d
push eax
call fcn.00408a10
add esp, 0xc
add esi, eax
cmp dword [ebp - 0x674], edi
je 0x42b4f5
mov dword [ebp - 0x674], edi
test edi, edi
js 0x42b4d7
mov eax, dword [ebp + edi*4 - 0x62c]
jmp 0x42b4d9
xor eax, eax
mov edi, dword [ebp - 0x630]
push eax
push str.highlight_d
lea eax, [esi + edi]
push eax
call fcn.00408a10
add esp, 0xc
add esi, eax
jmp 0x42b4fb
mov edi, dword [ebp - 0x630]
cmp dword [ebp - 0x678], ebx
je 0x42b52c
test ebx, ebx
mov dword [ebp - 0x678], ebx
mov ecx, str._b0
mov eax, 0x4a2c9c
cmove eax, ecx
push eax
lea eax, [esi + edi]
push 0x49b7f4
push eax
call fcn.00408a10
add esp, 0xc
add esi, eax
mov ecx, dword [ebp - 0x63c]
cmp dword [ebp - 0x67c], ecx
je 0x42b563
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 0x49b7f4
push eax
call fcn.00408a10
add esp, 0xc
add esi, eax
mov edx, dword [ebp - 0x64c]
mov ebx, dword [ebp - 0x650]
add ebx, dword [ebp - 0x654]
mov ecx, dword [ebp - 0x638]
mov edi, dword [ebp - 0x658]
movzx eax, byte [ebx]
mov ax, word [ebp + eax*2 - 0x214]
cmp ax, word [edi + ecx*2]
jne 0x42b5a9
xor edi, edi
mov dword [ebp - 0x648], 1
mov byte [ebp - 0x14], 0
xor edx, edx
jmp 0x42b630
push 0
push 0
push 0
push 0
push 1
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x638]
mov edi, eax
mov edx, dword [ebp - 0x658]
mov dword [ebp - 0x648], eax
movzx ecx, word [edx + ecx*2]
push ecx
cmp eax, 1
je 0x42b61b
push eax
lea eax, [ebp - 0x14]
push str.uc_du_d
push eax
call fcn.00408a10
mov ecx, 0x7d
mov dword [ebp - 0x63c], eax
mov word [ebp - 0x65c], cx
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x648], edi
mov dword [ebp - 0x634], 1
lea edx, [eax + 1]
test edi, edi
jg 0x42b644
jmp 0x42b688
lea eax, [ebp - 0x14]
push str.u_d
push eax
call fcn.00408a10
mov edi, eax
add esp, 0xc
mov edx, edi
xor ecx, ecx
mov dword [ebp - 0x63c], edi
mov byte [ebp - 0x65c], cl
mov dword [ebp - 0x634], ecx
mov edi, dword [ebp - 0x648]
nop word [eax + eax]
mov al, byte [ebx + ecx]
cmp al, 0x5c
je 0x42b67c
cmp al, 0x7b
je 0x42b67c
cmp al, 0x7d
je 0x42b67c
cmp al, 0xd
je 0x42b675
cmp al, 0xa
je 0x42b675
sub al, 0x20
mov ah, 0x5e
cmp ah, al
sbb eax, eax
and eax, 3
inc eax
jmp 0x42b681
mov eax, 6
jmp 0x42b681
mov eax, 2
inc ecx
add edx, eax
cmp ecx, edi
jl 0x42b650
mov edi, dword [ebp - 0x63c]
lea eax, [edx + 3]
add eax, esi
cmp dword [ebp - 0x644], eax
jge 0x42b6c1
lea eax, [edx + 0x200]
mov edx, dword [ebp - 0x630]
add eax, esi
push 1
push eax
push edx
mov dword [ebp - 0x644], eax
call fcn.0040e290
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]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x42b6d2
add esi, edi
mov edi, dword [ebp - 0x648]
test edi, edi
jle 0x42b76f
nop
mov cl, byte [ebx]
cmp cl, 0x5c
je 0x42b750
cmp cl, 0x7b
je 0x42b750
cmp cl, 0x7d
je 0x42b750
cmp cl, 0xd
je 0x42b736
cmp cl, 0xa
je 0x42b736
mov edx, dword [ebp - 0x630]
mov al, cl
sub al, 0x20
add edx, esi
cmp al, 0x5e
ja 0x42b720
mov byte [edx], cl
inc esi
jmp 0x42b763
movzx eax, cl
push eax
push str._02x
push edx
call fcn.00408a10
add esp, 0xc
add esi, eax
jmp 0x42b763
mov eax, dword [ebp - 0x630]
add eax, esi
push str.par_r_n
push eax
call fcn.00408a10
add esp, 8
add esi, eax
jmp 0x42b763
mov ecx, dword [ebp - 0x630]
mov byte [esi + ecx], 0x5c
mov al, byte [ebx]
mov byte [esi + ecx + 1], al
add esi, 2
inc ebx
sub edi, 1
jne 0x42b6f0
mov edi, dword [ebp - 0x648]
mov ebx, dword [ebp - 0x630]
lea ecx, [ebp - 0x65c]
mov edx, ecx
mov eax, esi
sub eax, edx
lea edx, [eax + ebx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x42b784
add dword [ebp - 0x650], edi
mov eax, dword [ebp - 0x638]
mov edx, dword [ebp - 0x64c]
inc eax
add esi, dword [ebp - 0x634]
add edx, 2
mov edi, dword [ebp - 0x650]
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x64c], edx
cmp edi, dword [ebp - 0x660]
jl 0x42b320
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 0x42b809
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42b809
push esi
push ebx
push eax
call fcn.004356f0
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add esp, 0xc
push edi
call eax
push ebx
call fcn.0040e1d0
mov ebx, dword [ebp - 0x66c]
add esp, 4
mov esi, dword [ebp - 0x664]
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 0x42b84a
push 0
push 1
push 0x8002
push dword [0x4b5e38]
call ebx
push dword [0x4b5e38]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42b890
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 0x42b888
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 0x42b8a1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 0x66c]
call esi
cmp dword [ebp + 0x18], 0
jne 0x42b8d4
push 0
push 0
push 0x8002
push dword [0x4b5e38]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343a0
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x42b8d4
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.004343a0
mov esp, ebp
pop ebp
ret