Function at 0x40ff60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412189
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x41014e
mov ecx, dword [ebp - 0x84]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
imul edx, edx, 3
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
imul edx, eax
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x40ffee
xor al, al
jmp 0x410150
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
jmp 0x410018
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cmp dword [ebp - 0x28], eax
jge 0x4100e3
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x70], ecx
jmp 0x410038
mov edx, dword [ebp - 0x70]
add edx, 1
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x70], eax
jge 0x4100de
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
shr edx, 0x10
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
sub ecx, 1
sub ecx, dword [ebp - 0x28]
imul eax, ecx
add eax, dword [ebp - 0x70]
imul eax, eax, 3
mov ecx, dword [ebp - 0x24]
mov byte [ecx + eax], dl
mov edx, dword [ebp - 0x74]
and edx, 0xffff
sar edx, 8
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
sub ecx, 1
sub ecx, dword [ebp - 0x28]
imul eax, ecx
add eax, dword [ebp - 0x70]
imul eax, eax, 3
mov ecx, dword [ebp - 0x24]
mov byte [ecx + eax + 1], dl
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
sub eax, 1
sub eax, dword [ebp - 0x28]
imul edx, eax
add edx, dword [ebp - 0x70]
imul edx, edx, 3
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 0x74]
mov byte [ecx + edx + 2], al
jmp 0x41002f
jmp 0x41000f
lea ecx, [ebp - 0x6c]
call fcn.00410960
mov dword [ebp - 4], 0
push 0x18
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00410cf0
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x6c]
call fcn.00410dd0
push eax
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x84]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov byte [ebp - 0x7c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00410a30
mov al, byte [ebp - 0x7c]
jmp 0x410150
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret