Function at 0x4088e0
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push esi
push edi
xor edi, edi
push str.Rich_Text_Format
mov dword [esp + 0x1c], edi
mov dword [eax], edi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x1c], esi
je 0x408b14
push esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408b14
push ebp
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x408a20
push ebx
lea ebx, [ebp + ebp]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x408979
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408a00
mov ecx, dword [esp + 0x3c]
push 0x10
push str.Error
push str.Not_enough_memory
push ecx
jmp 0x4089fa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x408a00
mov edx, dword [0x42c298]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
push edi
push edx
push eax
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
call fcn.0040d070
mov edx, dword [esp + 0x50]
add esp, 0x1c
cmp eax, 6
mov dword [edx], eax
jne 0x408a6d
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 2
push ebx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
jne 0x408a2b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408a00
push 0x10
push str.Error
push str.Not_enough_memory
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
call ebx
test edi, edi
je 0x408a14
push esi
call ebx
test esi, esi
je 0x408a1f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
add esp, 0x18
ret
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x408a00
mov ecx, dword [0x42c298]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
push edi
push ecx
push edx
push eax
mov dword [esp + 0x30], ebp
call fcn.0040d070
mov ecx, dword [esp + 0x50]
add esp, 0x1c
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
cmp dword [edx], 0
je 0x408a8f
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408a00
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
jmp 0x4089f5
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
call edi
push esi
call edi
mov eax, dword [esp + 0x10]
cmp ebx, eax
jle 0x408abb
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x408a14
mov esi, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push edx
call edi
push 0
push 1
call edi
push 0
push 0xd
call edi
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [0x450518], esi
je 0x408b00
mov eax, dword [esp + 0x3c]
push 0x40
push str.Result
push str.Successfully_converted_RTF_clipboard
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
pop ebp
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
pop edi
pop esi
add esp, 0x18
ret
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret