Function at 0x4adf53
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
xor ecx, ecx
mov byte [esp + 0x4c], 0
push ebx
mov word [esp + 0x40], cx
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov ebx, 0x80004005
mov dword [esp + 0xc], ebx
push esi
push edi
cmp cx, 3
jne 0x4adf94
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x59], 0
jmp 0x4ae056
mov edx, 0x4003
cmp cx, dx
jne 0x4adfb4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov dword [esp + 0x59], 0
jmp 0x4ae056
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x44], 0
cmp cx, 0xa
jne 0x4adfdc
cmp edx, 0x80020004
jne 0x4adfdc
mov byte [esp + 0x58], 1
mov dword [esp + 0x59], 0x80020005
jmp 0x4ae056
cmp cx, 9
je 0x4adfec
mov esi, 0x4009
cmp cx, si
jne 0x4ae03b
test ecx, 0x4000
je 0x4adff6
mov edx, dword [edx]
test edx, edx
je 0x4ae249
push 0
push 0
lea ecx, [esp + 0x50]
xor eax, eax
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
push ecx
push 3
push 0
push 0x556a40
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [edx]
push 0
push edx
call dword [eax + 0x18]
mov dword [esp + 0x59], eax
test eax, eax
js 0x4ae04b
lea eax, [esp + 0x48]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x4ae069
mov dword [esp + 0x59], 0x800a005e
cmp byte [esp + 0x58], 0
je 0x4ae251
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4ae0bc
mov eax, 1
jmp 0x4ae0dc
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov edx, 0x400c
cmp cx, dx
jne 0x4ae08d
mov eax, dword [eax + 8]
cmp word [eax], dx
je 0x4ae085
push 3
push 2
push 0x400
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov dword [esp + 0x59], eax
test eax, eax
js 0x4ae04b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x59], 0
jmp 0x4ae056
cmp eax, 0xd
je 0x4ae0e0
cmp eax, 1
je 0x4ae0e0
cmp eax, 0xffffbf01
jne 0x4ae256
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 8]
xor edi, edi
test ecx, ecx
je 0x4ae133
mov eax, dword [ecx - 4]
push edi
push edi
push edi
cdq
sub eax, edx
push edi
mov ebx, eax
sar ebx, 1
push ebx
push ecx
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call edi
mov esi, eax
push esi
push 0
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
push 0
push 0
push esi
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], eax
push 0
push 0
call edi
mov edi, dword [esp + 0x18]
mov byte [esi + edi], 0
test edi, edi
je 0x4ae133
mov esi, dword [edi - 4]
jmp 0x4ae135
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ae23c
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4ae236
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4ae236
test esi, esi
je 0x4ae185
lea ecx, [esi + 1]
push ecx
push edi
push eax
call fcn.004d634d
add esp, 0xc
jmp 0x4ae188
mov byte [eax], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [esp + 0x10]
mov eax, 1
cmp ebx, 0xd
je 0x4ae1a0
movzx eax, bx
push dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4ae236
xor esi, esi
mov dword [esp + 0x14], esi
cmp ebx, 1
je 0x4ae1c3
cmp ebx, 0xd
jne 0x4ae236
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4ae1cf
mov eax, dword [ebx - 4]
jmp 0x4ae1d1
xor eax, eax
mov dword [esp + 0x10], eax
add eax, 2
push eax
push 0x2000
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4ae236
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4ae236
cmp dword [esp + 0x10], esi
je 0x4ae211
push dword [esp + 0x18]
push ebx
push eax
call fcn.004d634d
add esp, 0xc
jmp 0x4ae216
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
neg eax
sbb eax, eax
not eax
and esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [esp + 0x14]
jmp 0x4ae256
mov dword [esp + 0x59], 0x800a005b
mov ebx, 0x80020005
cmp word [esp + 0x48], 0
je 0x4ae269
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14