Function at 0x4074b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d4b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x14]
call edi
lea ecx, [esi + 0x30]
push ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call edi
mov edx, dword [esi + 4]
push 0x3f2
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
cmp esi, ebx
je 0x407697
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push esi
call edi
cmp eax, 0xffffffff
je 0x407697
cmp eax, ebx
jne 0x40753f
mov dword [ebp - 0x1c], 1
jmp 0x407547
cmp eax, 1
jne 0x407547
mov dword [ebp - 0x20], eax
push 2
push eax
push 0x100c
push esi
call edi
cmp eax, 0xffffffff
jne 0x407532
cmp dword [ebp - 0x1c], ebx
jne 0x407565
cmp dword [ebp - 0x20], ebx
je 0x407697
push str.Preferred_DropEffect
xor esi, esi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x40768b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.Common.dll_public:_unsigned_int___thiscall_CTXBSTR::Length_void_const]
lea ecx, [ebp - 0x10]
call ebx
lea ecx, [ebp - 0x14]
mov esi, eax
call ebx
add esi, eax
lea eax, [esi + esi + 0x1a]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40768b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
mov dword [eax], 0x14
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 1
add eax, 0x14
cmp dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
je 0x407629
lea ecx, [ebp - 0x14]
call ebx
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x14]
call ebx
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x18], eax
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
je 0x407653
lea ecx, [ebp - 0x10]
call ebx
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov edx, dword [ebp - 0x18]
push eax
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x10]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40768b
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call esi
mov edx, dword [ebp - 0x24]
push edi
push edx
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x407697
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4