Function at 0x4614c7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
push 1
call fcn.0049c470
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46151c
mov eax, dword [ebp - 0x20]
jmp 0x4617a1
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x2c
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x461575
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004e3c00
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4615ae
jmp 0x461741
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x43c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x448], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
jmp 0x4615e2
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp dword [eax + 0x10], ecx
jle 0x4616af
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
add eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x461624
jmp 0x461741
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 0x14]
add eax, 0x434
push eax
mov eax, dword [ebp - 8]
add eax, 0x20
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_SetDIBits]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x24]
push eax
call fcn.0047947b
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x461694
mov dword [ebp - 0x20], 1
jmp 0x46169b
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x4616aa
jmp 0x461741
jmp 0x4615df
mov dword [ebp - 0x20], 0x2714
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x461741
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebp - 4], 0
je 0x461719
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 4]
push eax
push 9
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x461708
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0xc]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x46173b
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0xc], 0
je 0x461755
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 4], 0
je 0x46178d
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x20]
jmp 0x4617a1
pop edi
pop esi
pop ebx
leave
ret