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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push str.Rich_Text_Format
mov dword [eax], 0
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40c1fd
push ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40c1fd
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push ebx
mov dword [ebp - 0x10], edi
call esi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c18b
lea eax, [edi + edi]
push eax
push 2
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40c081
cmp dword [ebp + 0x14], eax
je 0x40c071
push 0x10
push 0x4b6d18
push 0x548cec
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40c174
push dword [0x582a24]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424000
mov ecx, eax
add esp, 0x1c
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp ecx, 6
jne 0x40c155
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 8], eax
call esi
mov ecx, dword [ebp - 8]
push 2
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
jne 0x40c118
cmp dword [ebp + 0x14], eax
je 0x40c105
push 0x10
push 0x4b6d18
push 0x548cec
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40c174
push dword [0x582a24]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424000
mov ecx, eax
add esp, 0x1c
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x40c194
cmp dword [ebp + 0x14], 0
je 0x40c174
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call esi
cmp dword [ebp - 0x18], 0
je 0x40c180
push edi
call esi
test edi, edi
je 0x40c18b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jle 0x40c1b2
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x40c180
mov edi, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push dword [ebp - 0x1c]
call esi
push 0
push 1
call esi
push 0
push 0xd
call esi
cmp dword [ebp + 0x14], 0
mov dword [0x585028], edi
je 0x40c1f1
push 0x40
push str.Result
push str.Successfully_converted_RTF_clipboard
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret