Function at 0x4ec350
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d0e1d
push eax
mov dword fs:[0], esp
sub esp, 0x4c0
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x1c], esi
jne 0x4ec37f
xor eax, eax
jmp 0x4ec854
mov eax, dword [esp + 0x4e0]
cmp eax, esi
je 0x4ec3b8
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_CopyRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x4ec3cd
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push esi
lea edx, [esp + 0x3c]
push esi
push edx
call dword [sym.imp.user32.dll_SetRect]
push esi
call dword [sym.imp.user32.dll_GetWindowDC]
mov ebx, eax
cmp ebx, esi
jne 0x4ec3e1
xor eax, eax
jmp 0x4ec854
push esi
call dword [sym.imp.user32.dll_OpenClipboard]
call dword [sym.imp.user32.dll_EmptyClipboard]
test byte [esp + 0x4e4], 2
je 0x4ec687
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBitmap.0
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4d8], esi
mov esi, dword [esp + 0x3c]
push ebx
sub esi, edx
sub edi, ecx
call fcn.0059b460
mov eax, dword [eax + 4]
push esi
push edi
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.0059c0b2
test eax, eax
je 0x4ec64c
lea ecx, [esp + 0x20]
call fcn.0059b3be
push ebx
mov byte [esp + 0x4dc], 1
call fcn.0059b460
test eax, eax
je 0x4ec465
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.0059b475
test eax, eax
push ebx
push 0
jne 0x4ec4b7
call dword [sym.imp.user32.dll_ReleaseDC]
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d8], 0
call fcn.0059b4f3
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x4d8], 2
call fcn.0059c109
xor eax, eax
jmp 0x4ec854
call dword [sym.imp.user32.dll_ReleaseDC]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.gdi32.dll_SelectObject]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x20]
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
call ebx
mov edi, eax
lea eax, [ebp + 0x454]
xor esi, esi
test eax, eax
je 0x4ec510
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec510
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.0059b694
mov ecx, dword [esp + 0x24]
mov esi, eax
push ecx
call dword [sym.imp.gdi32.dll_RealizePalette]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
sub eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], edx
sub ecx, edx
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ecx
push edx
lea edx, [esp + 0x44]
mov dword [esp + 0x50], eax
xor ecx, ecx
xor eax, eax
push edx
push ecx
push eax
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.004e6d20
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push edi
and eax, ecx
push eax
call ebx
mov ecx, dword [esp + 0x28]
push 0x26
push ecx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
and eax, 0x100
test esi, esi
mov edi, eax
je 0x4ec586
push 1
push esi
lea ecx, [esp + 0x28]
call fcn.0059b694
lea ecx, [esp + 0x20]
call fcn.0059b4dd
test edi, edi
je 0x4ec619
lea eax, [ebp + 0x454]
test eax, eax
je 0x4ec619
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec619
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x5e69c4
mov ecx, ebp
mov byte [esp + 0x4d8], 3
call fcn.004e7360
push eax
call dword [sym.imp.gdi32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x1c]
call fcn.0059c0b2
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
push 9
call dword [sym.imp.user32.dll_SetClipboardData]
lea ecx, [esp + 0x18]
call fcn.0059c0df
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d8], 4
call fcn.0059c109
mov byte [esp + 0x4d8], 1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edx
push eax
push 2
call dword [sym.imp.user32.dll_SetClipboardData]
lea ecx, [esp + 0x10]
call fcn.0059c0df
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d8], 0
call fcn.0059b4f3
jmp 0x4ec660
push ebx
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
mov dword [esp + 0x4e4], 1
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x4d8], 5
call fcn.0059c109
mov dword [esp + 0x4d8], 0xffffffff
test byte [esp + 0x4e4], 1
je 0x4ec80d
lea ecx, [esp + 0x50]
call fcn.004e5b80
xor esi, esi
mov dword [esp + 0x4d8], 6
mov si, word [ebp + 0x2e]
cmp esi, 8
jle 0x4ec6b9
mov esi, 0x18
mov eax, dword [esp + 0x3c]
xor edx, edx
mov dx, word [ebp + 0x2c]
push 0
push 0
mov ecx, dword [esp + 0x40]
push esi
push edx
sub eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
sub ecx, eax
push ecx
lea ecx, [esp + 0x68]
call fcn.004e6670
lea edx, [ebp + 0x454]
lea ecx, [esp + 0x50]
push edx
call fcn.004e7610
mov eax, dword [ebp + 0x450]
lea ecx, [ebp + 0x48]
push ecx
push eax
lea ecx, [esp + 0x58]
call fcn.004e6c10
push 1
push 0
lea ecx, [esp + 0x58]
call fcn.004e70d0
xor edx, edx
lea edi, [esp + 0x30]
push edx
xor ecx, ecx
push edi
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004e6d20
push 0
lea ecx, [esp + 0x54]
call fcn.004e71a0
mov eax, dword [0x64855c]
test eax, eax
je 0x4ec755
mov ecx, dword [esp + 0x4e8]
test ecx, ecx
je 0x4ec755
cmp ecx, esi
je 0x4ec755
lea edx, [esp + 0x50]
push ecx
push edx
call eax
add esp, 8
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x3c]
lea edx, [esp + 0x70]
mov dword [esp + 0x88], eax
push edx
mov dword [esp + 0x90], ecx
call fcn.004e59c0
mov edi, dword [esp + 0x74]
mov ebx, eax
add esp, 4
lea ecx, [esp + 0x50]
add ebx, edi
call fcn.004e58b0
mov dword [esp + 0x18], eax
add eax, ebx
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4ec7f9
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, ebx
lea esi, [esp + 0x70]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x498]
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 8
call dword [sym.imp.user32.dll_SetClipboardData]
test eax, eax
jne 0x4ec7f9
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
lea ecx, [esp + 0x50]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.004e5c70
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ec849
push 4
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [eax], ecx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push str.HS_Transp_Info
call dword [sym.imp.user32.dll_RegisterClipboardFormatA_1]
push eax
call dword [sym.imp.user32.dll_SetClipboardData]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, 1
mov ecx, dword [esp + 0x4d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4cc
ret 0xc