Function at 0x4087b0
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_RegisterClipboardFormatA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x1c], esi
je 0x4089e4
push esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4089e4
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 0x4088f0
push ebx
lea ebx, [ebp + ebp]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x408849
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4088d0
mov ecx, dword [esp + 0x3c]
push 0x10
push str.Error
push str.Not_enough_memory
push ecx
jmp 0x4088ca
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4088d0
mov edx, dword [0x423500]
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.0040ced0
mov edx, dword [esp + 0x50]
add esp, 0x1c
cmp eax, 6
mov dword [edx], eax
jne 0x40893d
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 0x4088fb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4088d0
push 0x10
push str.Error
push str.Not_enough_memory
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
call ebx
test edi, edi
je 0x4088e4
push esi
call ebx
test esi, esi
je 0x4088ef
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 0x4088d0
mov ecx, dword [0x423500]
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.0040ced0
mov ecx, dword [esp + 0x50]
add esp, 0x1c
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
cmp dword [edx], 0
je 0x40895f
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4088d0
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
jmp 0x4088c5
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 0x40898b
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x4088e4
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 [0x4465ec], esi
je 0x4089d0
mov eax, dword [esp + 0x3c]
push 0x40
push str.Result
push str.Successfully_converted_RTF_clipboard
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
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