Function at 0x406eef
Capabilities:
Open clipboard
Resolve function by parsing pe exports
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41b719
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x428024]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push 0x20
push eax
call fcn.004010c5
call fcn.004038fb
lea eax, [esp + 0x2c]
push 0x167
xor edi, edi
push eax
mov dword [esp + 0xb0], edi
call fcn.004010c5
call fcn.004038fb
lea eax, [esp + 0x34]
push 1
push eax
mov byte [esp + 0xb0], 1
call fcn.004010c5
mov ebx, eax
call fcn.00403920
lea eax, [esp + 0x28]
push 2
push eax
mov byte [esp + 0xb0], 2
call fcn.004010c5
mov ebx, eax
call fcn.00403920
mov byte [esp + 0xa8], 3
call fcn.004010c5
push eax
lea esi, [esp + 0x3c]
call fcn.00403dbe
mov byte [esp + 0xa8], 4
push dword [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.004088a9
mov byte [esp + 0xa8], 5
push dword [esp + 0x28]
lea esi, [esp + 0x1c]
call fcn.004088a9
mov byte [esp + 0xa8], 6
push dword [esp + 0x30]
lea esi, [esp + 0x24]
call fcn.004088a9
mov byte [esp + 0xa8], 7
push dword [esp + 0x2c]
lea esi, [esp + 0x28]
call fcn.004088a9
mov byte [esp + 0xa8], 8
mov ebx, dword [esp + 0x38]
push ebx
lea esi, [esp + 0x18]
call fcn.004088a9
mov eax, dword [ebp + 8]
push 0x3f2
mov byte [esp + 0xac], 9
push dword [eax + 4]
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
jne 0x407065
push dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call esi
lea eax, [ebx - 0x10]
jmp 0x4073fd
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4073d2
push 0x30
lea eax, [esp + 0x70]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [esp + 0x7c], 0
add esp, 0xc
lea eax, [esp + 0x68]
push eax
push 0
push 0x104b
push edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], 4
call esi
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x407164
lea eax, [esp + 0x10]
push eax
call fcn.0040453a
push dword [esp + 0x34]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4070e8
mov dword [esp + 0x3c], 1
push dword [esp + 0x28]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407104
mov dword [esp + 0x44], 1
push dword [esp + 0x30]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407120
mov dword [esp + 0x4c], 1
push dword [esp + 0x2c]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x40713c
mov dword [esp + 0x40], 1
push dword [esp + 0x38]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407158
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004016a7
push 2
push ebx
push 0x100c
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407082
xor eax, eax
cmp dword [esp + 0x3c], eax
jne 0x40719e
cmp dword [esp + 0x4c], eax
jne 0x40719e
cmp dword [esp + 0x40], eax
jne 0x40719e
cmp dword [esp + 0x48], eax
jne 0x40719e
cmp dword [esp + 0x44], eax
je 0x4073d2
push str.Preferred_DropEffect
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
mov edi, 0x2042
push edi
mov dword [esp + 0x68], eax
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x54], esi
jne 0x4071ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
push 0x420414
call fcn.00411e0e
add esp, 0xc
jmp 0x4073a3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
push dword [esp + 0x18]
mov dword [esp + 0x68], eax
call esi
push dword [esp + 0x20]
mov dword [esp + 0x5c], eax
call esi
push dword [esp + 0x24]
mov dword [esp + 0x60], eax
call esi
push dword [esp + 0x14]
mov dword [esp + 0x14], eax
call esi
add eax, dword [esp + 0x10]
add eax, dword [esp + 0x5c]
add eax, dword [esp + 0x64]
add eax, dword [esp + 0x58]
lea eax, [eax + eax + 0x30]
push eax
push edi
call ebx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x407268
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
jmp 0x4071db
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ebx, ebx
inc ebx
cmp dword [esp + 0x3c], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], 0x14
mov dword [eax + 0x10], ebx
lea edi, [eax + 0x14]
je 0x4072b0
push dword [esp + 0x1c]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x20]
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x1c]
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x44], 0
je 0x4072d9
push dword [esp + 0x18]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x1c]
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x18]
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x4c], 0
je 0x407302
push dword [esp + 0x20]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x24]
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x20]
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x40], 0
je 0x40732b
push dword [esp + 0x24]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x28]
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x24]
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x48], 0
je 0x407350
push dword [esp + 0x14]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x18]
push edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40737b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
jmp 0x4071db
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call esi
push dword [esp + 0x54]
push dword [esp + 0x64]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x50], ebx
push dword [esp + 0x50]
push str.On_Copy__d
push 0x420414
call fcn.00411e0e
add esp, 0xc
cmp dword [esp + 0x50], 0
jne 0x4073d2
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [esp + 0x54]
call esi
push dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call esi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004016a7
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4