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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4237c5
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x435024]
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.00403cb5
lea eax, [esp + 0x30]
push 0x60
xor edi, edi
push eax
mov dword [esp + 0xc0], edi
call fcn.004010c5
call fcn.00403cb5
lea eax, [esp + 0x3c]
push 0x167
push eax
mov byte [esp + 0xc0], 1
call fcn.004010c5
call fcn.00403cb5
lea eax, [esp + 0x34]
push 1
push eax
mov byte [esp + 0xc0], 2
call fcn.004010c5
mov ebx, eax
call fcn.00403cda
lea eax, [esp + 0x2c]
push 2
push eax
mov byte [esp + 0xc0], 3
call fcn.004010c5
mov ebx, eax
call fcn.00403cda
mov byte [esp + 0xb8], 4
call fcn.004010c5
push eax
lea esi, [esp + 0x44]
call fcn.0040416f
mov byte [esp + 0xb8], 5
push dword [esp + 0x34]
lea esi, [esp + 0x18]
call fcn.00409f1b
mov byte [esp + 0xb8], 6
push dword [esp + 0x2c]
lea esi, [esp + 0x24]
call fcn.00409f1b
mov byte [esp + 0xb8], 7
push dword [esp + 0x38]
lea esi, [esp + 0x1c]
call fcn.00409f1b
mov byte [esp + 0xb8], 8
push dword [esp + 0x30]
lea esi, [esp + 0x28]
call fcn.00409f1b
mov byte [esp + 0xb8], 9
push dword [esp + 0x3c]
lea esi, [esp + 0x20]
call fcn.00409f1b
mov byte [esp + 0xb8], 0xa
mov ebx, dword [esp + 0x40]
push ebx
lea esi, [esp + 0x2c]
call fcn.00409f1b
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 0x407f50
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 0x408353
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 0x408322
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 0x408077
lea eax, [esp + 0x10]
push eax
call fcn.00404a23
push dword [esp + 0x34]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x407fdf
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 0x407ffb
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 0x408017
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 0x408033
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 0x40804f
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 0x40806b
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040167f
push 2
push ebx
push 0x100c
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407f6d
xor eax, eax
cmp dword [esp + 0x44], eax
jne 0x4080b7
cmp dword [esp + 0x50], eax
jne 0x4080b7
cmp dword [esp + 0x48], eax
jne 0x4080b7
cmp dword [esp + 0x4c], eax
jne 0x4080b7
cmp dword [esp + 0x58], eax
jne 0x4080b7
cmp dword [esp + 0x54], eax
je 0x408322
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 0x408106
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
push 0x429590
call fcn.00417869
add esp, 0xc
jmp 0x4082f3
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 0x40818f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
jmp 0x4080f4
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 0x4081d7
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 0x408200
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 0x408229
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 0x408252
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 0x40827b
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 0x4082a0
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 0x4082cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
jmp 0x4080f4
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 0x429590
call fcn.00417869
add esp, 0xc
cmp dword [esp + 0x5c], 0
jne 0x408322
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.0040167f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.0040167f
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