Function at 0x7cdfb18b
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 1
pop esi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
movzx eax, word [0x7ce4fd48]
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
call fcn.7cdfadb5
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
lea eax, [ebp - 0x30]
push esi
push eax
push dword [ebp - 0xc]
call fcn.7ce05d1f
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x7cdfb1f4
mov dword [ebp - 0x18], ebx
movzx eax, word [0x7ce4fd4c]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x7cdfb213
mov edi, 0x800401d3
jmp 0x7cdfb376
lea eax, [ebp - 0x30]
push eax
call sym.ole32.dll_CoIsOle1Class
test eax, eax
jne 0x7cdfb2b8
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
call sym.ole32.dll_CreateILockBytesOnHGlobal
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
push dword [ebp - 8]
call sym.ole32.dll_StgIsStorageILockBytes
mov edi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, ebx
mov dword [ebp - 8], ebx
jne 0x7cdfb2b8
push 0x2002
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
call fcn.7ce064ec
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x7cdfb276
mov edi, 0x8007000e
jmp 0x7cdfb376
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x18]
push eax
call sym.ole32.dll_CreateILockBytesOnHGlobal
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 0x12
push ebx
push dword [ebp - 8]
call sym.ole32.dll_StgOpenStorageOnILockBytes
mov edi, eax
cmp edi, ebx
jl 0x7cdfb376
push 2
push 2
push ebx
push dword [ebp - 4]
call fcn.7ce0779d
cmp dword [ebp - 0x20], 1
jne 0x7cdfb331
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.7cdae0d4
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
push dword [ebp - 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
push dword [ebp - 4]
call sym.ole32.dll_WriteFmtUserTypeStg
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.7ce062c7
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x7cdfb331
cmp byte [eax], bl
je 0x7cdfb331
push eax
push dword [ebp - 4]
call fcn.7ce06342
mov eax, dword [ebp - 4]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, eax
cmp edi, ebx
jne 0x7cdfb376
cmp dword [esi], 8
jne 0x7cdfb354
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov dword [esi + 4], eax
jmp 0x7cdfb376
add esi, 4
push esi
push dword [ebp - 8]
call sym.ole32.dll_GetHGlobalFromILockBytes
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], ebx
je 0x7cdfb383
push dword [ebp - 0xc]
call sym.ole32.dll_CoTaskMemFree
cmp dword [ebp - 0x14], ebx
je 0x7cdfb390
push dword [ebp - 0x14]
call sym.ole32.dll_CoTaskMemFree
cmp edi, ebx
je 0x7cdfb3a7
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x7cdfb3a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], ebx
cmp dword [ebp - 8], ebx
je 0x7cdfb3ca
cmp edi, ebx
jge 0x7cdfb3c1
cmp dword [ebp - 0x18], ebx
jne 0x7cdfb3c1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call sym.ole32.dll_GetHGlobalFromILockBytes
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x10], ebx
je 0x7cdfb3d8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4