Function at 0x4617a6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
push 1
call fcn.0049c470
add esp, 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x14]
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.0045cbca
add esp, 0x18
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x461818
mov eax, dword [ebp - 0x28]
jmp 0x461a1f
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
push 0x408
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x461870
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00461fb8
add esp, 0xc
jmp 0x461875
jmp 0x461997
mov eax, dword [ebp - 0x20]
shl eax, 2
add eax, 0x28
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4618cb
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.004e3c00
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x461904
jmp 0x461997
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_SetDIBits]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46193e
mov dword [ebp - 0x28], 1
jmp 0x461945
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x461954
jmp 0x461997
mov dword [ebp - 0x28], 0x2714
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x461997
mov eax, dword [ebp - 8]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x461991
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 8], 0
je 0x4619ab
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x40], 0
je 0x4619dd
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 4], 0
je 0x461a0b
push 0
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0xc]
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 - 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x28]
jmp 0x461a1f
pop edi
pop esi
pop ebx
leave
ret