Function at 0x4c1020
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4f7fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
movq qword [esp + 0x2c], xmm0
push 8
mov dword [esp + 0x30], 0
call fcn.004df9b3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4c1094
mov byte [esp + 0x1b], al
lea eax, [esp + 0x1b]
push 0x51c2c8
push eax
call fcn.004ea58e
xor edi, edi
mov dword [esp + 0x2c], ebx
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 3
mov word [ebx], ax
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
mov byte [esp + 0x50], 1
push eax
mov ecx, ebp
call fcn.004bce50
xor ebp, ebp
cmp dword [esp + 0x3c], ebp
jbe 0x4c11cf
test ebp, ebp
je 0x4c114c
xor esi, esi
jmp 0x4c10f0
inc esi
cmp byte [esi + 0x505acc], 0
jne 0x4c10f0
mov eax, dword [esp + 0x34]
sub eax, edi
cmp esi, eax
jbe 0x4c1126
lea ecx, [edi + esi]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [esp + 0x2c]
and eax, 0xfffffff0
dec eax
push eax
call fcn.00412180
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
lea edx, [ebx + edi*2]
test esi, esi
je 0x4c1140
nop
movzx eax, byte [ecx + 0x505acc]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x4c1130
xor eax, eax
add edi, esi
mov word [edx + esi*2], ax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push dword [eax + ebp*4]
lea eax, [esp + 0x24]
push eax
call fcn.004bd340
mov esi, eax
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 4]
sub ecx, edi
cmp eax, ecx
jbe 0x4c1197
lea ecx, [edi + eax]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [esp + 0x2c]
and eax, 0xfffffff0
dec eax
push eax
call fcn.00412180
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 4]
lea ecx, [ebx + edi*2]
inc eax
add eax, eax
push eax
push dword [esi]
push ecx
call fcn.004e4930
add edi, dword [esi + 4]
add esp, 0xc
mov byte [esp + 0x50], 1
mov dword [esp + 0x30], edi
push dword [esp + 0x20]
call fcn.004df97b
inc ebp
add esp, 4
cmp ebp, dword [esp + 0x3c]
jb 0x4c10e5
mov eax, dword [esp + 0x1c]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
test al, al
je 0x4c123f
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4c1239
lea edi, [edi*2 + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4c1239
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4c1232
push edi
push ebx
push eax
call fcn.004e4930
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4c1239
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [esp + 0x50], 0
push dword [esp + 0x38]
call fcn.004df97b
add esp, 4
mov dword [esp + 0x50], 0xffffffff
push ebx
call fcn.004df97b
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004df96c
add esp, 0x40
ret