Function at 0x4cc7f0
Capabilities:
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6210d0
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov eax, esi
push edi
and eax, 0xffff
dec eax
cmp eax, 0x1d
ja case.0x4cc829.7
xor ecx, ecx
mov cl, byte [eax + 0x4cccd8]
jmp dword [ecx*4 + 0x4cccbc]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call esi
push 0
mov edi, eax
call esi
mov ebx, dword [esp + 0x50]
mov esi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4cc850
mov eax, dword [eax + 0x14]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4cc869
xor ecx, ecx
jmp 0x4cc86c
mov ecx, dword [eax + 0xc]
test eax, eax
je 0x4cc873
mov eax, dword [eax + 8]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x4cc89b
mov edx, dword [esp + 0x4c]
push edx
push esi
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push esi
call edi
jmp 0x4ccca7
push ebx
push edi
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4cc8b2
xor ecx, ecx
jmp 0x4cc8b5
mov ecx, dword [eax + 0xc]
test eax, eax
je 0x4cc8bc
mov eax, dword [eax + 8]
push 0xcc0020
push 0
push 0
push esi
push ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call ebp
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edx, dword [esp + 0x4c]
mov ebx, eax
push edx
push esi
call ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
jmp 0x4ccc3b
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4ccc3f
mov eax, dword [ecx + 4]
test eax, eax
je 0x4ccc3f
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4ccc3f
xor esi, esi
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
mov byte [esp + 0x3c], 1
mov byte [esp + 0x3d], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
call fcn.004b1780
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x4ccc3f
push eax
push 8
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ccc3b
mov cl, byte [esp + 0x38]
test cl, cl
je 0x4ccc3b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4ccc3b
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [0x6e0ea0]
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], eax
mov esi, vtable.wxEnhMetaFile.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
mov dword [esp + 0x14], esi
call fcn.004dfd20
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call fcn.004dfd80
mov edx, dword [esp + 0x20]
push edx
push 0xe
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 3
call fcn.004dfdc0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4cca05
dec ecx
cmp ecx, edi
mov dword [eax], ecx
jne 0x4cca05
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x14], vtable.wxObject.0
call fcn.004e8d50
jmp 0x4ccc3b
mov word [esp + 0x4c], 1
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4cca76
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esp + 0x50]
mov ecx, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [esp + 0x4c]
and esi, 0xffff
push ebp
push esi
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
jmp 0x4ccc3b
mov esi, dword [esp + 0x50]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x18f
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4ccca7
mov eax, dword [0x704484]
test eax, eax
jne 0x4ccacc
push str.HTML_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [0x704484], eax
mov eax, str.Version:0.9_r_nStartHTML:00000000_r_nEndHTML:00000000_r_nStartFragment:00000000_r_nEndFragment:00000000_r_n_html__body__r_n____StartFragment_____r_n
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4ccad5
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push str.StartHTML
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x6c86d0]
dec edi
mov esi, str.____EndFragment____r_n__body__r_n__html_
mov word [edi], ax
mov cl, byte [0x6c86d2]
xor eax, eax
mov byte [edi + 2], cl
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
call esi
push str._html_
push ebp
mov edi, eax
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
sub eax, ebp
push eax
lea edx, [edi + 0xa]
push str._08u
push edx
call ebx
push str.EndHTML
push ebp
mov byte [edi + 0x12], 0xd
call esi
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x74], edx
push ecx
add edx, 8
push str._08u
push edx
call ebx
mov eax, dword [esp + 0x80]
push str.StartFragment
push ebp
mov byte [eax + 0x10], 0xd
call esi
push str.____StartFrag
push ebp
mov edi, eax
call esi
add esp, 0x40
sub eax, ebp
lea ecx, [edi + 0xe]
push eax
push str._08u
push ecx
call ebx
push str.EndFragment
push ebp
mov byte [edi + 0x16], 0xd
call esi
push str.____EndFrag
push ebp
mov edi, eax
call esi
sub eax, ebp
lea edx, [edi + 0xc]
push eax
push str._08u
push edx
call ebx
mov byte [edi + 0x14], 0xd
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
add ecx, 3
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov edi, ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [edi]
inc edi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x4ccc0b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x704484]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call fcn.005b6480
add esp, 4
test ebx, ebx
jne 0x4ccc6b
call fcn.004f0590
test eax, eax
je 0x4ccc5e
mov edx, dword [eax]
push 0
push str.Failed_to_set_clipboard_data.
mov ecx, eax
call dword [edx + 8]
push eax
call fcn.004f45b0
jmp 0x4ccca4
mov eax, str.Failed_to_set_clipboard_data.
push eax
call fcn.004f45b0
jmp 0x4ccca4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
call fcn.004f0590
test eax, eax
je 0x4ccc99
mov edx, dword [eax]
push 0
push str.Unsupported_clipboard_format.
mov ecx, eax
call dword [edx + 8]
jmp 0x4ccc9e
mov eax, str.Unsupported_clipboard_format.
push eax
call fcn.004f4290
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret