Function at 0x47619d
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 0x4761de
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x59], 0
jmp 0x4762a0
mov edx, 0x4003
cmp cx, dx
jne 0x4761fe
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov dword [esp + 0x59], 0
jmp 0x4762a0
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x44], 0
cmp cx, 0xa
jne 0x476226
cmp edx, 0x80020004
jne 0x476226
mov byte [esp + 0x58], 1
mov dword [esp + 0x59], 0x80020005
jmp 0x4762a0
cmp cx, 9
je 0x476236
mov esi, 0x4009
cmp cx, si
jne 0x476285
test ecx, 0x4000
je 0x476240
mov edx, dword [edx]
test edx, edx
je 0x476493
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 0x4cd4e0
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 0x476295
lea eax, [esp + 0x48]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x4762b3
mov dword [esp + 0x59], 0x800a005e
cmp byte [esp + 0x58], 0
je 0x47649b
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x476306
mov eax, 1
jmp 0x476326
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 0x4762d7
mov eax, dword [eax + 8]
cmp word [eax], dx
je 0x4762cf
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 0x476295
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x59], 0
jmp 0x4762a0
cmp eax, 0xd
je 0x47632a
cmp eax, 1
je 0x47632a
cmp eax, 0xffffbf01
jne 0x4764a0
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 0x47637d
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 0x47637d
mov esi, dword [edi - 4]
jmp 0x47637f
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x476486
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 0x476480
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x476480
test esi, esi
je 0x4763cf
lea ecx, [esi + 1]
push ecx
push edi
push eax
call fcn.0049865d
add esp, 0xc
jmp 0x4763d2
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 0x4763ea
movzx eax, bx
push dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x476480
xor esi, esi
mov dword [esp + 0x14], esi
cmp ebx, 1
je 0x47640d
cmp ebx, 0xd
jne 0x476480
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x476419
mov eax, dword [ebx - 4]
jmp 0x47641b
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 0x476480
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x476480
cmp dword [esp + 0x10], esi
je 0x47645b
push dword [esp + 0x18]
push ebx
push eax
call fcn.0049865d
add esp, 0xc
jmp 0x476460
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 0x4764a0
mov dword [esp + 0x59], 0x800a005b
mov ebx, 0x80020005
cmp word [esp + 0x48], 0
je 0x4764b3
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