Function at 0x4abe35
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0x18]
lea eax, [ebp + 8]
xor ecx, ecx
mov byte [esp + 0x40], 0
push esi
mov word [esp + 0x34], cx
mov esi, 0x80004005
mov ecx, dword [ebp + 8]
mov dword [ebx], 0
push edi
cmp cx, 3
jne 0x4abe7b
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x49], 0
jmp 0x4abf3d
mov edx, 0x4003
cmp cx, dx
jne 0x4abe9b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x49], 0
jmp 0x4abf3d
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x34], 0
cmp cx, 0xa
jne 0x4abec3
cmp edx, 0x80020004
jne 0x4abec3
mov byte [esp + 0x48], 1
mov dword [esp + 0x49], 0x80020005
jmp 0x4abf3d
cmp cx, 9
je 0x4abed3
mov edi, 0x4009
cmp cx, di
jne 0x4abf22
test ecx, 0x4000
je 0x4abedd
mov edx, dword [edx]
test edx, edx
je 0x4ac15e
push 0
push 0
lea ecx, [esp + 0x40]
xor eax, eax
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
push ecx
push 3
push 0
push 0x556a40
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x18]
mov dword [esp + 0x49], eax
test eax, eax
js 0x4abf32
lea eax, [esp + 0x38]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x4abf6d
mov dword [esp + 0x49], 0x800a005e
cmp byte [esp + 0x48], 0
je 0x4ac166
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x4abfe1
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
jne 0x4abfff
push 1
call edi
test eax, eax
je 0x4abfc3
mov edi, 1
jmp 0x4ac0a6
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov edx, 0x400c
cmp cx, dx
jne 0x4abf91
mov eax, dword [eax + 8]
cmp word [eax], dx
je 0x4abf89
push 3
push 2
push 0x400
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov dword [esp + 0x49], eax
test eax, eax
js 0x4abf32
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x49], 0
jmp 0x4abf3d
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
push eax
call edi
test eax, eax
jne 0x4ac099
lea edi, [eax + 1]
jmp 0x4ac0a6
cmp edi, 1
je 0x4ac0a6
cmp edi, 0xffffbf01
je 0x4ac099
cmp edi, 0xd
jne 0x4ac16b
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ac16b
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4ac07f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
shr esi, 1
je 0x4ac07f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4ac067
xor ecx, ecx
test esi, esi
je 0x4ac049
cmp word [edi + ecx*2], 0
je 0x4ac049
inc ecx
cmp ecx, esi
jb 0x4ac03d
push ecx
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
mov dword [ebx], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ac16b
push 0
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
xor esi, esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ac16b
push 0x55c75e
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
xor esi, esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ac16b
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov edi, eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ac16b
movzx eax, di
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4ac147
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
test esi, esi
je 0x4ac147
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ebx, ebx
mov dword [esp + 0xc], eax
test eax, eax
je 0x4ac0f7
test esi, esi
je 0x4ac0f7
cmp byte [ebx + eax], 0
je 0x4ac0f7
inc ebx
cmp ebx, esi
jb 0x4ac0ec
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push ebx
push eax
push 0
push 0
call esi
mov edi, eax
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp + 0x18]
push edi
push eax
push ebx
mov ebx, dword [esp + 0x18]
push ebx
push 0
push 0
mov dword [ecx], eax
call esi
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edi*2], cx
test ebx, ebx
je 0x4ac156
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ac16b
push 0x55c75e
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor esi, esi
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ac16b
mov dword [esp + 0x49], 0x800a005b
mov esi, 0x80020005
cmp word [esp + 0x38], 0
je 0x4ac17e
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14