Function at 0x4ce130
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x700724
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
push 0
push 0
add edi, 4
push 0x1032
push eax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0
test eax, eax
je 0x4ce7d4
mov edi, edi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push 2
push ecx
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4ce7c1
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
push 0
push edx
call fcn.004a2c80
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x20], eax
sub eax, esi
sar eax, 1
lea edi, [ebx + ecx]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4ce225
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
ja 0x4ce232
lea eax, [esi + eax*2]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ebx, 0x672aa0
mov dword [ebp - 0x20], ebx
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebx, esi
lea edi, [edx + 1]
sub eax, edi
sar ebx, 1
or eax, ecx
mov dword [ebp - 0x24], edx
jge 0x4ce298
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp ebx, edx
ja 0x4ce2a2
lea ecx, [esi + ebx*2]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push 2
push edx
lea ecx, [esi + eax*2]
push 2
push ecx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 1
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
call fcn.004a2c80
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
sub eax, esi
sar eax, 1
lea edi, [ebx + ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4ce31b
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
ja 0x4ce328
lea edx, [esi + eax*2]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ebx, 0x672aa0
mov dword [ebp - 0x24], ebx
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebx, esi
lea edi, [edx + 1]
sub eax, edi
sar ebx, 1
or eax, ecx
mov dword [ebp - 0x20], edx
jge 0x4ce38e
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp ebx, edx
ja 0x4ce398
lea ecx, [esi + ebx*2]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 2
push edx
lea ecx, [esi + eax*2]
push 2
push ecx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 2
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
call fcn.004a2c80
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
sub eax, esi
sar eax, 1
lea edi, [ebx + ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4ce411
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
ja 0x4ce41e
lea edx, [esi + eax*2]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ebx, 0x672aa0
mov dword [ebp - 0x24], ebx
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebx, esi
lea edi, [edx + 1]
sub eax, edi
sar ebx, 1
or eax, ecx
mov dword [ebp - 0x20], edx
jge 0x4ce484
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp ebx, edx
ja 0x4ce48e
lea ecx, [esi + ebx*2]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 2
push edx
lea ecx, [esi + eax*2]
push 2
push ecx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 3
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
call fcn.004a2c80
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
sub eax, esi
sar eax, 1
lea edi, [ebx + ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4ce507
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
ja 0x4ce514
lea edx, [esi + eax*2]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ebx, 0x672aa0
mov dword [ebp - 0x24], ebx
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebx, esi
lea edi, [edx + 1]
sub eax, edi
sar ebx, 1
or eax, ecx
mov dword [ebp - 0x20], edx
jge 0x4ce57a
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp ebx, edx
ja 0x4ce584
lea ecx, [esi + ebx*2]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 2
push edx
lea ecx, [esi + eax*2]
push 2
push ecx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 4
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
call fcn.004a2c80
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
sub eax, esi
sar eax, 1
lea edi, [ebx + ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4ce5fd
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
ja 0x4ce60a
lea edx, [esi + eax*2]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ebx, 0x672aa0
mov dword [ebp - 0x24], ebx
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebx, esi
lea edi, [edx + 1]
sub eax, edi
sar ebx, 1
or eax, ecx
mov dword [ebp - 0x20], edx
jge 0x4ce670
push edi
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp ebx, edx
ja 0x4ce67a
lea ecx, [esi + ebx*2]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 2
push edx
lea ecx, [esi + eax*2]
push 2
push ecx
call fcn.0060fbd3
add esp, 0x10
test edi, edi
js 0x4ce880
cmp edi, dword [esi - 8]
jg 0x4ce880
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 5
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
call fcn.004a2c80
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ebx
add ebx, eax
mov eax, dword [esi - 8]
mov dword [ebp - 0x24], edi
mov ecx, 1
sub ecx, dword [esi - 4]
sub edi, esi
sub eax, ebx
sar edi, 1
or eax, ecx
jge 0x4ce6f2
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
cmp edi, dword [ebp - 0x20]
ja 0x4ce6fd
lea edx, [esi + edi*2]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
push eax
lea eax, [esi + edx*2]
push eax
call fcn.0060fbd3
add esp, 0x10
test ebx, ebx
js 0x4ce880
cmp ebx, dword [esi - 8]
jg 0x4ce880
mov dword [esi - 0xc], ebx
xor ecx, ecx
mov word [esi + ebx*2], cx
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov edi, 0x671784
mov dword [ebp - 0x24], edi
mov ecx, 1
sub ecx, dword [esi - 4]
sub edi, esi
lea ebx, [edx + 2]
sub eax, ebx
sar edi, 1
or eax, ecx
mov dword [ebp - 0x2c], edx
jge 0x4ce766
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
cmp edi, edx
ja 0x4ce770
lea eax, [esi + edi*2]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push 4
push ecx
lea edx, [esi + edx*2]
push 4
push edx
call fcn.0060fbd3
add esp, 0x10
test ebx, ebx
js 0x4ce880
cmp ebx, dword [esi - 8]
jg 0x4ce880
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ce7c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x30]
jb 0x4ce1a0
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4ce848
lea ecx, [eax + eax + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ce848
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi - 4], 1
mov dword [ebp - 0x30], eax
jle 0x4ce80d
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4ce814
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ce86b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004011d0
int3