Function at 0x40fce0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x5066f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x65d4c0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor edi, edi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40fee0
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.004b5c19
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40fd4f
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
movzx eax, word [ebp]
mov dword [esp + 0x34], edi
mov esi, ebp
cmp ax, di
je 0x40fdb6
movzx eax, ax
lea ecx, [esp + 0x20]
movzx edx, ax
push ecx
push edx
call fcn.00403f10
add esp, 8
cmp eax, edi
jle 0x40fdb6
mov byte [esp + eax + 0x20], 0
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fd92
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.00408360
movzx eax, word [esi + 2]
add esi, 2
cmp ax, di
jne 0x40fd71
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fdc0
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
sub eax, edx
mov edi, eax
lea ecx, [edi + 1]
push ecx
push 2
call ebx
mov esi, eax
test esi, esi
je 0x40fe23
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x40fe1f
mov edx, dword [esp + 0x18]
push edi
push edx
push ebp
call fcn.004cf320
add esp, 0xc
push esi
mov byte [edi + ebp], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x65f4f4]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40fe1f
mov dword [esp + 0x1c], 1
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.0040fa30
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe40
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
lea edx, [edi + 2]
push edx
push 2
call ebx
mov esi, eax
test esi, esi
je 0x40fe92
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x40fe92
mov eax, dword [esp + 0x14]
push edi
push eax
push ebp
call fcn.004cf320
add esp, 0xc
xor ecx, ecx
push esi
mov word [edi + ebp], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40feb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fee0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004cead5
add esp, 0x24
ret