Function at 0x4880e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x510200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x54], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x488108
xor al, al
jmp 0x488316
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebp - 0x6c]
push eax
push 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], 0x28
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x24], ecx
mov edx, 1
mov word [ebp - 0x20], dx
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x1c], 0
movzx ecx, word [ebp - 0x1e]
cmp ecx, 1
jg 0x48817d
mov edx, 1
mov word [ebp - 0x1e], dx
jmp 0x4881ae
movzx eax, word [ebp - 0x1e]
cmp eax, 4
jg 0x488191
mov ecx, 4
mov word [ebp - 0x1e], cx
jmp 0x4881ae
movzx edx, word [ebp - 0x1e]
cmp edx, 8
jg 0x4881a5
mov eax, 8
mov word [ebp - 0x1e], ax
jmp 0x4881ae
mov ecx, 0x18
mov word [ebp - 0x1e], cx
movzx edx, word [ebp - 0x1e]
cmp edx, 8
jg 0x4881ca
movzx ecx, word [ebp - 0x1e]
mov eax, 1
shl eax, cl
shl eax, 2
mov dword [ebp - 0x3c], eax
jmp 0x4881d1
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x34], eax
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x48], eax
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [ebp - 0x18], 0
jne 0x48824a
movzx eax, word [ebp - 0x1e]
imul eax, dword [ebp - 0x28]
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
lea eax, [edx + ecx + 0x28]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4882c9
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x38], eax
mov ecx, 0xa
lea esi, [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x4c], 0
jne 0x4882c9
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x4882db
mov edx, dword [ebp - 0x30]
push edx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [ebp - 0x34]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x30], 0
je 0x48830c
mov dword [ebp - 0x44], 1
jmp 0x488313
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049da3c
mov esp, ebp
pop ebp
ret 4