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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push str.Rich_Text_Format
mov dword [eax], esi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40bd85
push ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40bd85
push edi
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bc49
lea eax, [edi + edi]
push eax
push 2
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, eax
test edi, edi
jne 0x40bc52
cmp dword [ebp + 0x14], esi
je 0x40bc32
push 0x10
push 0x49cf30
push 0x4a565c
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x18]
call ebx
test esi, esi
je 0x40bc3e
push edi
call ebx
test edi, edi
je 0x40bc49
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 edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x40bc32
push dword [0x4db824]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420400
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ecx], eax
cmp eax, 6
jne 0x40bcf3
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 8], eax
call ebx
mov eax, dword [ebp - 8]
xor esi, esi
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x40bc18
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x40bc32
push dword [0x4db824]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420400
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x40bd16
cmp dword [ebp + 0x14], 0
je 0x40bc32
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
jmp 0x40bc29
push dword [ebp - 0x18]
call ebx
push edi
call ebx
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jle 0x40bd3a
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x40bc3e
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 [0x4ddc18], edi
je 0x40bd79
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
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret