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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40cd44
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40cd4b
xor eax, eax
jmp 0x40cfe0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40cd82
jmp 0x40cfad
mov edx, dword [ebp - 0x1c]
shl edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40cdc5
cmp dword [ebp + 0x14], 0
je 0x40cdbb
push 0x10
push str.Error
push str.Not_enough_memory
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cfad
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40cde2
jmp 0x40cfad
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [0x439a98]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411d00
add esp, 0x1c
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 6
jne 0x40ced1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0xc], 0
push 2
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ce7c
cmp dword [ebp + 0x14], 0
je 0x40ce72
push 0x10
push str.Error
push str.Not_enough_memory
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cfad
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ce9f
jmp 0x40cfad
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [0x439a98]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411d00
add esp, 0x1c
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x40ceff
cmp dword [ebp + 0x14], 0
je 0x40cef5
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cfad
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jle 0x40cf52
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
push 2
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40cf4c
jmp 0x40cfad
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push 0
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push 0
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x10]
mov dword [0x45dca8], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x14], 0
je 0x40cfa6
push 0x40
push str.Result
push str.Successfully_converted_RTF_clipboard
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x20], 0
je 0x40cfbd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xc], 0
je 0x40cfcd
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x10], 0
je 0x40cfdd
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret