Function at 0x40b270
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 0x40b44e
push ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40b44e
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 0x40b380
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
je 0x40b34f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x40b369
push dword [0x463460]
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.0041c540
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ecx], eax
cmp eax, 6
jne 0x40b3c3
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
jne 0x40b389
cmp dword [ebp + 0x14], esi
je 0x40b369
push 0x10
push str.Error
push 0x444704
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x18]
call ebx
test esi, esi
je 0x40b375
push edi
call ebx
test edi, edi
je 0x40b380
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 esi, eax
test esi, esi
je 0x40b369
push dword [0x463460]
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.0041c540
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x40b3df
cmp dword [ebp + 0x14], 0
je 0x40b369
push 0x10
push str.Information
push str.Could_not_convert_RTF_clipboard._Possibly_not_enough_memory
jmp 0x40b360
push dword [ebp - 0x18]
call ebx
push edi
call ebx
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jle 0x40b403
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x40b375
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 [0x4879d8], edi
je 0x40b442
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