Function at 0x4cf20c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x58], 0
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4cf241
jmp 0x4cf6dc
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4cf25f
jmp 0x4cf6dc
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
call fcn.004e3c00
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4cf28a
jmp 0x4cf6dc
push 1
call fcn.0049c470
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x4c], eax
cmp dword [0x531abc], 0
je 0x4cf2c0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x531abc]
push eax
call fcn.004e4256
add esp, 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], 0x240
jle 0x4cf305
cmp dword [ebp - 4], 0
je 0x4cf305
mov eax, 0x8ca00
cdq
idiv dword [ebp - 4]
mov dword [ebp - 0x38], eax
jmp 0x4cf30c
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x14], 0x360
jle 0x4cf334
cmp dword [ebp - 0x14], 0
je 0x4cf334
mov eax, 0xd2f00
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
jmp 0x4cf33b
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
je 0x4cf36c
cmp dword [ebp - 0x38], 0
jne 0x4cf35a
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
jmp 0x4cf36c
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x44], eax
jge 0x4cf36c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4cf3ad
cmp dword [ebp - 0x38], 0
je 0x4cf3ad
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x38]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x38], eax
jmp 0x4cf3bd
cmp dword [ebp - 0x34], 0
je 0x4cf3bd
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004ceb1c
add esp, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [eax], 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx]
mov ecx, eax
shl eax, 7
sub eax, ecx
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, 0x90
cdq
idiv ecx
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 4]
mov ecx, eax
shl eax, 7
sub eax, ecx
shl eax, 2
lea eax, [eax + eax*4]
mov ecx, 0x90
cdq
idiv ecx
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], eax
cmp dword [ebp - 0x34], 0
je 0x4cf497
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
imul eax, dword [ebp - 0x34]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 8]
imul eax, dword [ebp - 0x34]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [0x531abc], 0
je 0x4cf4c9
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x531abc]
push eax
call fcn.004e4256
add esp, 8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004cedd7
add esp, 0x14
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4cf685
cmp dword [0x531ac4], 0
je 0x4cf685
mov eax, dword [0x531ac4]
push eax
mov eax, dword [0x531abc]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4cf685
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebp - 0x58], 0
je 0x4cf568
mov eax, dword [ebp - 0x48]
push eax
push 3
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4cf568
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x30]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4cf67f
mov dword [ebp - 8], 1
mov dword [0x531ac0], 0
mov dword [0x531ac4], 0
mov eax, dword [0x531abc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x531abc], 0
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x1de], 0
je 0x4cf67f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x1e6]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x1de]
push eax
push 9
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4cf65b
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x1de], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x1e6], 0
push 0
push 0xffffffffffffffff
push 0x6c
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6a
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6e
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
jmp 0x4cf671
push 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x1de]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x58], 0
je 0x4cf6a3
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
cmp dword [ebp - 0x48], 0
je 0x4cf6b7
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], 0
je 0x4cf6c6
call fcn.004bb2a2
cmp dword [ebp - 0x3c], 0
je 0x4cf6dc
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004ae776
add esp, 4
pop edi
pop esi
pop ebx
leave
ret