Function at 0x4ebb50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x5d0d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 0x1c], edi
jne 0x4ebbe1
push 2
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4ebe6a
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4ebe6a
mov esi, dword [sym.imp.user32.dll_GetClipboardData]
push 2
call esi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x4ebbbb
call dword [sym.imp.user32.dll_CloseClipboard]
xor eax, eax
jmp 0x4ebe6a
push 9
call esi
mov ebx, eax
push str.HS_Transp_Info
mov dword [esp + 0x1c], ebx
call dword [sym.imp.user32.dll_RegisterClipboardFormatA_1]
push eax
call esi
mov esi, eax
mov dword [esp + 0x10], esi
call dword [sym.imp.user32.dll_CloseClipboard]
jmp 0x4ebc3d
push 0
push 2
mov ecx, esi
call fcn.005bf89a
test eax, eax
je 0x4ebe6a
push 0
push 2
mov ecx, esi
call fcn.005bf7bc
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ebe6a
push 0
push 9
mov ecx, esi
call fcn.005bf7bc
push 0
push str.HS_Transp_Info
mov dword [esp + 0x20], eax
call dword [sym.imp.user32.dll_RegisterClipboardFormatA_1]
push eax
mov ecx, esi
call fcn.005bf7bc
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x4ebc68
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4ebc5f
push esi
mov dword [edi + 0xc], 1
call dword [sym.imp.kernel32.dll_GlobalLock]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
jmp 0x4ebc76
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0xffffffff
lea ecx, [esp + 0x50]
mov dword [esp + 0x84], 0
push ecx
push 0x18
push ebp
call dword [sym.imp.gdi32.dll_GetObjectA]
test eax, eax
je 0x4ebe44
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4ebccd
lea edx, [esp + 0x40]
push eax
push edx
call dword [sym.imp.user32.dll_CopyRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jmp 0x4ebce4
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push eax
push ecx
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call dword [sym.imp.user32.dll_SetRect]
lea ecx, [esp + 0x30]
call fcn.0059b3be
push 0
mov dword [esp + 0x74], 0
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call fcn.0059b475
test eax, eax
je 0x4ebe33
push 1
push 0
mov ecx, edi
call fcn.004e70d0
mov esi, eax
test esi, esi
je 0x4ebe2f
push 0
mov ecx, esi
call fcn.0059ba82
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.0059bb04
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
add ecx, edx
test ebx, ebx
mov dword [esp + 0x28], ecx
je 0x4ebda9
push 0
push ebx
call fcn.0059c09d
push eax
lea ecx, [esp + 0x38]
call fcn.0059b694
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.gdi32.dll_RealizePalette]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4ebda9
push ebx
call fcn.0059c09d
push eax
mov ecx, edi
call fcn.004e7610
push 0
push ebx
call fcn.0059c09d
push eax
mov ecx, esi
call fcn.0059b694
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.gdi32.dll_RealizePalette]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x30]
mov edi, dword [sym.imp.gdi32.dll_SelectObject]
push ebp
neg eax
sbb eax, eax
and eax, ecx
push eax
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x20]
sub ecx, ebp
sub edx, eax
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x38]
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esi + 4]
push ebp
push ecx
push edx
call dword [sym.imp.gdi32.dll_BitBlt]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
push ebx
and eax, esi
push eax
call edi
mov ecx, dword [esp + 0x1c]
push 0
call fcn.004e71a0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x84], 1
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
call fcn.0059b4f3
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4ebe63
mov edi, dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call edi
test ebx, ebx
je 0x4ebe5c
push ebx
call edi
test esi, esi
je 0x4ebe63
push esi
call edi
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x10