Function at 0x4ce5da
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xe6], 0
je 0x4ceb0f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x44], 2
jne 0x4ceaff
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0xffffffff
je case.0x4ce9fb.6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4 + 0x44]
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
push eax
call fcn.004d96e6
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je case.0x4ce9fb.6
mov eax, dword [ebp - 0x10]
cmp dword [eax], 1
jne case.0x4ce9fb.6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x10]
add eax, 0x50
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
jmp 0x4ce9e3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x20], eax
push 1
push 2
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xe6]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0047f2aa
add esp, 8
jmp case.0x4ce9fb.6
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 0
jl 0x4ce815
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x4ce7f2
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
push eax
push 0x6c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004614c7
add esp, 0xc
mov dword [ebp - 0x28], eax
jmp 0x4ce815
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ce757
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x30]
add eax, 0x14
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004cdba5
add esp, 0x14
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ce815
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
push eax
push 0x6e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.0045cbca
add esp, 0x18
test eax, eax
jne 0x4ce7e8
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ce7c9
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 4]
push eax
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4ce7c3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
push eax
push 0x6e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004617a6
add esp, 0x10
jmp 0x4ce815
cmp dword [ebp - 0x38], 0x6c
je 0x4ce6e0
cmp dword [ebp - 0x38], 0x6d
je 0x4ce700
cmp dword [ebp - 0x38], 0x6e
je 0x4ce75c
jmp 0x4ce815
cmp dword [ebp + 0x10], 0xcb
jne case.0x4ce9fb.5
jmp case.0x4ce9fb.6
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 0
jl 0x4ce931
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.004cdaef
add esp, 0x10
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], 0x32
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10], 0x32
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1de], 0
je 0x4ce8d1
push 1
push 0xffffffffffffffff
push 0x6c
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6a
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6e
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 1
push 2
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
call fcn.004e43fc
add esp, 0xc
push 1
call fcn.0049c470
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov cx, word [eax + 0xc]
shl ecx, 0x10
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dx, word [eax + 0x10]
or ecx, edx
push ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
push eax
call fcn.0047d9b8
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xe6]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0047f2aa
add esp, 8
jmp case.0x4ce9fb.6
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004cdef7
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4ce9d9
push 1
push 2
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
call fcn.004e43fc
add esp, 0xc
push 1
push 0xffffffffffffffff
push 0x6c
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6a
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
push 0
push 0xffffffffffffffff
push 0x6e
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00462894
add esp, 0x14
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov cx, word [eax + 0xc]
shl ecx, 0x10
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dx, word [eax + 0x10]
or ecx, edx
push ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0047d9b8
add esp, 0x10
jmp case.0x4ce9fb.6
cmp dword [ebp - 0x34], 0xd3
ja case.0x4ce9fb.6
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov cl, byte [eax + 0x4cea1e]
jmp dword [ecx*4 + 0x4cea02]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x28]
jmp 0x4ceb17
pop edi
pop esi
pop ebx
leave
ret