Function at 0x4c8090
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, dword [esi + 8]
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x4c80cb
push 0x62c
push 0x59a0cc
push 5
call fcn.004bfc20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1a8]
mov ecx, dword [esi + 0x1a0]
cmp eax, ecx
jle 0x4c80df
sub eax, ecx
jmp 0x4c80e3
sub ecx, eax
mov eax, ecx
mov ecx, dword [esi + 0x1a4]
lea edx, [eax + 1]
mov eax, dword [esi + 0x1ac]
mov dword [ebp - 0x14], edx
cmp eax, ecx
jle 0x4c80fd
sub eax, ecx
jmp 0x4c8101
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 6]
mov edi, dword [ebp - 8]
inc eax
and ecx, 0xffff
mov dword [ebp - 0x10], eax
mov eax, 8
imul ecx, edx
cdq
and edi, 0xffff
idiv edi
mov edi, eax
mov eax, ecx
cdq
idiv edi
mov ecx, eax
mov dword [ebp - 0xc], eax
and ecx, 0x80000003
jns 0x4c813b
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x4c8149
mov edx, 4
sub edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
mov ebx, eax
test ebx, ebx
jne 0x4c8174
push 0x645
push 0x59a0f0
push 4
call fcn.004bfc20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1c8]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x4c81a7
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x64d
push 0x59a114
push 5
call fcn.004bfc20
add esp, 0xc
jmp 0x4c82d2
mov edx, dword [esi + 0x3c]
push 1
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x4c81ea
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x658
push 0x59a138
push 5
call fcn.004bfc20
add esp, 0xc
jmp 0x4c82c1
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1ac]
cmp eax, ecx
mov edx, eax
jl 0x4c81fe
mov edx, ecx
mov eax, dword [esi + 0x1a0]
mov ecx, dword [esi + 0x1a8]
cmp eax, ecx
jl 0x4c8210
mov eax, ecx
mov ecx, dword [ebp - 0x10]
push 0xcc0020
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [esi + 0x1cc]
push eax
push ecx
push edx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x4c8252
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x668
push 0x59a15c
push 5
call fcn.004bfc20
add esp, 0xc
jmp 0x4c82c1
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4c827c
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x670
push 0x59a180
push 5
call fcn.004bfc20
add esp, 0xc
jmp 0x4c82c1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
push ebx
jne 0x4c82a3
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x677
push 0x59a1a4
push 5
call fcn.004bfc20
add esp, 0xc
jmp 0x4c82c1
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push 2
call ebx
push esi
call fcn.004c9d60
add esp, 4
push eax
push 9
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c82d2
push 1
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
test edi, edi
je 0x4c82f5
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x4c82f5
push 0x68e
push 0x59a1c8
push 5
call fcn.004bfc20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret