Function at 0x660cd959
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.6601f44f
test eax, eax
je 0x660cd991
push esi
call fcn.660ce6d7
mov esi, eax
cmp esi, ebx
je 0x660cdade
mov dword [ebp - 0xc], 1
push esi
call fcn.6601f3f5
mov edi, eax
cmp di, bx
jne 0x660cd9dd
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x660cda7f
cmp eax, 2
je 0x660cda7f
cmp eax, 8
je 0x660cda7f
cmp eax, 9
je 0x660cda7f
cmp eax, 0xe
je 0x660cda7f
cmp eax, 3
je 0x660cda7f
mov edi, 0x800a01cd
jmp 0x660cd9f2
call fcn.660143aa
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x660cda11
mov edi, 0x800a0209
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0xc], 0
je 0x660cda08
test esi, esi
je 0x660cda08
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
movsx eax, di
dec eax
je 0x660cdb2a
dec eax
je 0x660cda90
dec eax
je 0x660cda86
dec eax
jne 0x660cda86
cmp dword [ebp + 0xc], 0
push 0xe
pop ebx
je 0x660cda38
cmp dword [ebp + 0xc], 3
je 0x660cda38
cmp dword [ebp + 0xc], ebx
jne 0x660cd9d6
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push esi
call dword [eax + 0xc]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CopyEnhMetaFileA]
test eax, eax
je 0x660cdade
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
je 0x660cda6e
push dword [ebp - 4]
push ebx
call edi
test eax, eax
je 0x660cdade
cmp dword [ebp - 8], 0
je 0x660cda7f
push dword [ebp - 8]
push 9
call edi
test eax, eax
je 0x660cdade
xor edi, edi
jmp 0x660cd9f2
mov edi, 0x800a01cc
jmp 0x660cd9f2
cmp dword [ebp + 0xc], 0
push 3
pop ebx
je 0x660cdaa8
cmp dword [ebp + 0xc], ebx
je 0x660cdaa8
cmp dword [ebp + 0xc], 0xe
jne 0x660cd9d6
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x660cdade
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push esi
call dword [eax + 0xc]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CopyMetaFileA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x660cdae8
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 0x8007000e
jmp 0x660cd9f2
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
push ecx
push esi
mov dword [edi], 8
call dword [eax + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x660cda58
mov ebx, dword [ebp + 0xc]
mov eax, ebx
sub eax, 0
je 0x660cdb94
dec eax
dec eax
je 0x660cdb97
sub eax, 6
je 0x660cdb65
dec eax
jne 0x660cd9d6
cmp dword [0x6610f5e8], 0
je 0x660cda58
push esi
call fcn.660ce771
push eax
call fcn.660ced9c
mov dword [ebp - 8], eax
jmp 0x660cda58
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0xc]
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push esi
call dword [eax + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.660cee22
test eax, eax
mov dword [ebp - 4], eax
je 0x660cdade
jmp 0x660cda58
push 2
pop ebx
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push esi
call dword [eax + 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.660cf074
mov edi, eax
test edi, edi
jge 0x660cda58
jmp 0x660cd9f2