Function at 0x408b30
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 0x408d64
push esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408d64
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 0x408c70
push ebx
lea ebx, [ebp + ebp]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x408bc9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408c50
mov ecx, dword [esp + 0x3c]
push 0x10
push str.Error
push str.Not_enough_memory
push ecx
jmp 0x408c4a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x408c50
mov edx, dword [0x4235c4]
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.0040d1b0
mov edx, dword [esp + 0x50]
add esp, 0x1c
cmp eax, 6
mov dword [edx], eax
jne 0x408cbd
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 0x408c7b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408c50
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 0x408c64
push esi
call ebx
test esi, esi
je 0x408c6f
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 0x408c50
mov ecx, dword [0x4235c4]
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.0040d1b0
mov ecx, dword [esp + 0x50]
add esp, 0x1c
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
cmp dword [edx], 0
je 0x408cdf
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408c50
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
jmp 0x408c45
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 0x408d0b
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x408c64
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 [0x4246b0], esi
je 0x408d50
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