Function at 0x7cd95316
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edi
push edx
xor esi, esi
push 1
push eax
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x7cd95722
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x6c]
push ebx
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x7cd95395
mov eax, dword [ebp - 0x68]
inc esi
add edi, 0x20
cmp eax, ebx
je 0x7cd9537b
add edi, dword [eax]
push eax
call sym.ole32.dll_CoTaskMemFree
mov ax, word [0x7ce4fd7c]
cmp ax, word [ebp - 0x6c]
jne 0x7cd9538e
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
jmp 0x7cd95359
cmp dword [ebp - 0x18], ebx
jne 0x7cd9539d
add edi, 0x20
add edi, 0x38
mov dword [ebp - 0x30], edi
call fcn.7cdb9dcf
cmp edi, eax
jae 0x7cd953bf
push edi
push ebx
push dword [0x7ce50ed0]
call dword [0x7ce4df60]
mov dword [ebp - 0x10], eax
jmp 0x7cd953c2
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x7cd95408
call fcn.7cdb9dcf
cmp edi, eax
jae 0x7cd953e1
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
jmp 0x7cd953e4
mov dword [ebp - 8], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0x1c], edx
jne 0x7cd95412
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, 0x8007000e
jmp 0x7cd95722
mov ecx, edi
xor eax, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and dword [ebp - 0xc], 0
and ecx, 3
lea ebx, [edx + 0x18]
shl esi, 5
rep stosb byte es:[edi], al
lea eax, [esi + edx + 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push 0
push ebx
push 1
mov ecx, dword [eax]
pop edi
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x7cd95666
call fcn.7cdbb309
test eax, eax
je 0x7cd95485
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
je 0x7cd95485
mov eax, dword [ebx + 4]
test eax, eax
je 0x7cd95659
push eax
call sym.ole32.dll_CoTaskMemFree
jmp 0x7cd95659
mov esi, dword [ebx + 4]
test esi, esi
je 0x7cd954ba
mov ecx, dword [esi]
mov edi, dword [ebp - 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 4]
call sym.ole32.dll_CoTaskMemFree
mov eax, dword [ebp - 0x14]
push 1
mov ecx, eax
pop edi
sub ecx, dword [ebp - 0x1c]
mov dword [ebx + 4], ecx
add eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ax, word [ebx]
cmp ax, 0x300
jb 0x7cd954cd
cmp ax, 0x3ff
jbe 0x7cd95659
call fcn.7cdbb309
test eax, eax
je 0x7cd954f1
mov ax, word [ebx]
cmp ax, 2
je 0x7cd954e5
cmp ax, 9
jne 0x7cd954f1
cmp dword [ebx + 0x10], edi
jne 0x7cd954f1
mov dword [ebx + 0x10], 0x10
mov ax, word [ebx]
cmp ax, word [0x7ce4fd68]
je 0x7cd95528
cmp ax, word [0x7ce4fd6c]
je 0x7cd95528
cmp ax, word [0x7ce4fd74]
jne 0x7cd95514
mov dword [ebp - 0x2c], edi
jmp 0x7cd9552b
cmp ax, word [0x7ce4fd94]
jne 0x7cd9552b
cmp dword [ebp - 0x20], 0
jne 0x7cd9552b
mov dword [ebp - 0x20], edi
jmp 0x7cd9552b
mov dword [ebp - 0x24], edi
xor esi, esi
cmp dword [ebx + 8], esi
jne 0x7cd95542
call fcn.7cdbb309
test eax, eax
je 0x7cd95542
or dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 8], edi
cmp dword [ebx + 0xc], esi
jne 0x7cd9554b
or dword [ebx + 0xc], 0xffffffff
movzx eax, word [ebx]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x7cd955c9
movzx eax, word [ebx]
push esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push eax
mov dword [ebx + 0x14], edi
call esi
mov ax, word [ebx]
cmp ax, word [0x7ce4fd6c]
jne 0x7cd955c9
cmp dword [ebp - 0x18], 0
jne 0x7cd955c9
mov ax, word [0x7ce4fd7c]
and dword [ebp - 0x54], 0
or dword [ebp - 0x4c], 0xffffffff
mov word [ebp - 0x58], ax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x58]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
call dword [ecx + 0x14]
test eax, eax
jne 0x7cd955c9
push eax
add ebx, 0x20
movzx eax, word [0x7ce4fd7c]
inc dword [ebp - 0xc]
push eax
call esi
push 5
lea esi, [ebp - 0x58]
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 1
mov dword [ebx + 0x14], 1
pop edi
add ebx, 0x20
inc dword [ebp - 0xc]
cmp dword [ebp - 0x24], 0
je 0x7cd95659
cmp dword [ebp - 0x28], 0
jne 0x7cd95659
movzx eax, word [0x7ce4fd7c]
push 0
push 0
push edi
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], edi
push eax
push dword [ebp + 0xc]
call fcn.7cd9572b
test eax, eax
jne 0x7cd95659
push 0x10
mov edi, 0x7cd843e8
pop ecx
lea esi, [ebp - 0x44]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cd95656
push 0x10
mov edi, 0x7cd843c8
pop ecx
lea esi, [ebp - 0x44]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cd95656
push 0x10
mov edi, 0x7cd843d8
pop ecx
lea esi, [ebp - 0x44]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cd95656
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push eax
movzx eax, word [0x7ce4fd4c]
push eax
call esi
movzx eax, word [0x7ce4fd48]
push 0
push eax
call esi
mov eax, dword [ebp - 0x1c]
or dword [eax + 0x10], 1
push 1
pop edi
mov eax, dword [ebp - 4]
push 0
push ebx
mov ecx, dword [eax]
jmp 0x7cd9544b
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esi], ebx
mov dword [esi + 8], edi
mov dword [esi + 4], eax
je 0x7cd95685
or dword [esi + 0x10], 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x2c], ebx
je 0x7cd956d9
movzx eax, word [0x7ce4fd44]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x7cd956d9
lea eax, [ebp - 0x34]
push eax
push ebx
movzx eax, word [0x7ce4fd78]
push edi
push eax
push ebx
push dword [ebp + 0xc]
call fcn.7cd9572b
cmp eax, ebx
jne 0x7cd956d9
test byte [ebp - 0x34], 0x20
je 0x7cd956d9
movzx eax, word [0x7ce4fd44]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
or dword [esi + 0x10], 2
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x10]
mov eax, ecx
push dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx eax, word [0x7ce4fd8c]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x7cd95722
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8