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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420f26
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x432024]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.004010c5
call fcn.00403ad7
lea eax, [esp + 0x30]
push 0x60
xor edi, edi
push eax
mov dword [esp + 0xc0], edi
call fcn.004010c5
call fcn.00403ad7
lea eax, [esp + 0x3c]
push 0x167
push eax
mov byte [esp + 0xc0], 1
call fcn.004010c5
call fcn.00403ad7
lea eax, [esp + 0x34]
push 1
push eax
mov byte [esp + 0xc0], 2
call fcn.004010c5
mov ebx, eax
call fcn.00403afc
lea eax, [esp + 0x2c]
push 2
push eax
mov byte [esp + 0xc0], 3
call fcn.004010c5
mov ebx, eax
call fcn.00403afc
mov byte [esp + 0xb8], 4
call fcn.004010c5
push eax
lea esi, [esp + 0x44]
call fcn.00403f8e
mov byte [esp + 0xb8], 5
push dword [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.00409e13
mov byte [esp + 0xb8], 6
push dword [esp + 0x2c]
lea esi, [esp + 0x24]
call fcn.00409e13
mov byte [esp + 0xb8], 7
push dword [esp + 0x38]
lea esi, [esp + 0x1c]
call fcn.00409e13
mov byte [esp + 0xb8], 8
push dword [esp + 0x30]
lea esi, [esp + 0x28]
call fcn.00409e13
mov byte [esp + 0xb8], 9
push dword [esp + 0x3c]
lea esi, [esp + 0x20]
call fcn.00409e13
mov byte [esp + 0xb8], 0xa
mov ebx, dword [esp + 0x40]
push ebx
lea esi, [esp + 0x2c]
call fcn.00409e13
mov byte [esp + 0xb8], 0xb
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 8]
push 0x3f2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
jne 0x407ec3
push dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x1c]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x14]
call esi
lea eax, [ebx - 0x10]
jmp 0x4082c6
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 0x408295
push 0x30
lea eax, [esp + 0x80]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [esp + 0x8c], 0
add esp, 0xc
lea eax, [esp + 0x78]
push eax
push 0
push 0x104b
push edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], 4
call esi
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x407fea
lea eax, [esp + 0x10]
push eax
call fcn.004047c9
push dword [esp + 0x34]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407f52
mov dword [esp + 0x44], 1
push dword [esp + 0x2c]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407f6e
mov dword [esp + 0x58], 1
push dword [esp + 0x38]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407f8a
mov dword [esp + 0x50], 1
push dword [esp + 0x30]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407fa6
mov dword [esp + 0x54], 1
push dword [esp + 0x3c]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407fc2
mov dword [esp + 0x48], 1
push dword [esp + 0x40]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407fde
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004016af
push 2
push ebx
push 0x100c
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407ee0
xor eax, eax
cmp dword [esp + 0x44], eax
jne 0x40802a
cmp dword [esp + 0x50], eax
jne 0x40802a
cmp dword [esp + 0x48], eax
jne 0x40802a
cmp dword [esp + 0x4c], eax
jne 0x40802a
cmp dword [esp + 0x58], eax
jne 0x40802a
cmp dword [esp + 0x54], eax
je 0x408295
push str.Preferred_DropEffect
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], 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 + 0x78], eax
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x60], esi
jne 0x408079
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
push 0x42655c
call fcn.0041524e
add esp, 0xc
jmp 0x408266
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 + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
push dword [esp + 0x20]
mov dword [esp + 0x68], eax
call esi
push dword [esp + 0x18]
mov dword [esp + 0x6c], eax
call esi
push dword [esp + 0x1c]
mov dword [esp + 0x70], eax
call esi
push dword [esp + 0x28]
mov dword [esp + 0x78], eax
call esi
push dword [esp + 0x24]
mov dword [esp + 0x14], eax
call esi
add eax, dword [esp + 0x10]
add eax, dword [esp + 0x74]
add eax, dword [esp + 0x6c]
add eax, dword [esp + 0x64]
add eax, dword [esp + 0x68]
lea eax, [eax + eax + 0x34]
push eax
push edi
call ebx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x408102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
jmp 0x408067
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
xor edi, edi
inc edi
cmp dword [esp + 0x44], 0
mov dword [eax], 0x14
mov dword [eax + 0x10], edi
lea ebx, [eax + 0x14]
je 0x40814a
push dword [esp + 0x14]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x18]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x14]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x58], 0
je 0x408173
push dword [esp + 0x20]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x24]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x20]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x50], 0
je 0x40819c
push dword [esp + 0x18]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x1c]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x18]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x48], 0
je 0x4081c5
push dword [esp + 0x1c]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x20]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x1c]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x4c], 0
je 0x4081ee
push dword [esp + 0x28]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x2c]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x28]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x54], 0
je 0x408213
push dword [esp + 0x24]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x28]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [esp + 0x24]
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 0x40823e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
jmp 0x408067
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 + 0x60]
push dword [esp + 0x74]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x5c], edi
push dword [esp + 0x5c]
push str.On_Copy__d
push 0x42655c
call fcn.0041524e
add esp, 0xc
cmp dword [esp + 0x5c], 0
jne 0x408295
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [esp + 0x60]
call esi
push dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x1c]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004016af
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.004016af
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4