Function at 0x4764be
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 0x476504
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x49], 0
jmp 0x4765c6
mov edx, 0x4003
cmp cx, dx
jne 0x476524
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x49], 0
jmp 0x4765c6
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x34], 0
cmp cx, 0xa
jne 0x47654c
cmp edx, 0x80020004
jne 0x47654c
mov byte [esp + 0x48], 1
mov dword [esp + 0x49], 0x80020005
jmp 0x4765c6
cmp cx, 9
je 0x47655c
mov edi, 0x4009
cmp cx, di
jne 0x4765ab
test ecx, 0x4000
je 0x476566
mov edx, dword [edx]
test edx, edx
je 0x4767e7
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 0x4cd4e0
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 0x4765bb
lea eax, [esp + 0x38]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x4765f6
mov dword [esp + 0x49], 0x800a005e
cmp byte [esp + 0x48], 0
je 0x4767ef
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x47666a
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
jne 0x476688
push 1
call edi
test eax, eax
je 0x47664c
mov edi, 1
jmp 0x47672f
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 0x47661a
mov eax, dword [eax + 8]
cmp word [eax], dx
je 0x476612
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 0x4765bb
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x49], 0
jmp 0x4765c6
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
push eax
call edi
test eax, eax
jne 0x476722
lea edi, [eax + 1]
jmp 0x47672f
cmp edi, 1
je 0x47672f
cmp edi, 0xffffbf01
je 0x476722
cmp edi, 0xd
jne 0x4767f4
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4767f4
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x476708
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
shr esi, 1
je 0x476708
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4766f0
xor ecx, ecx
test esi, esi
je 0x4766d2
cmp word [edi + ecx*2], 0
je 0x4766d2
inc ecx
cmp ecx, esi
jb 0x4766c6
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 0x4767f4
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 0x4767f4
push 0x4d2168
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
xor esi, esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4767f4
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 0x4767f4
movzx eax, di
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4767d0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
test esi, esi
je 0x4767d0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ebx, ebx
mov dword [esp + 0xc], eax
test eax, eax
je 0x476780
test esi, esi
je 0x476780
cmp byte [ebx + eax], 0
je 0x476780
inc ebx
cmp ebx, esi
jb 0x476775
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 0x4767df
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4767f4
push 0x4d2168
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor esi, esi
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4767f4
mov dword [esp + 0x49], 0x800a005b
mov esi, 0x80020005
cmp word [esp + 0x38], 0
je 0x476807
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