Function at 0x3003298d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
push 1
mov dword [ebp - 0x18], ebx
call fcn.30047fcd
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3003a5eb
cmp eax, ebx
jne 0x30032b69
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x300329fe
push ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [esi + 0x18]
push dword [esi + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0xc], eax
call fcn.30067a6d
mov edi, eax
cmp edi, ebx
jne 0x30032b1e
mov eax, dword [esi + 0x18]
and dword [ebp - 0x10], ebx
cmp dword [esi + 0x10], ebx
mov dword [esi + 0x43c], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x448], eax
jle 0x30032ab3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x10]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3003a5eb
mov edi, eax
test edi, edi
jne 0x30032b1e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [esi + 0x434]
push eax
lea eax, [edi + 0x20]
push eax
push dword [edi + 0x14]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SetDIBits]
push dword [ebp - 0x14]
add ebx, dword [edi + 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
call fcn.3004ee74
xor eax, eax
cmp dword [ebp - 0x20], eax
sete al
mov edi, eax
test edi, edi
jne 0x30032b1e
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x10]
jl 0x30032a38
push dword [0x300967d0]
mov edi, 0x2714
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30032b1e
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x30032b08
push ebx
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 4]
push 9
call esi
test eax, eax
jne 0x30032afc
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [ebp - 0xc]
push 2
call esi
test eax, eax
je 0x30032b18
xor edi, edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x30032b2e
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 4], esi
je 0x30032b5b
push esi
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc