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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427e92
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
test byte [0x436680], 1
jne 0x409e84
or dword [0x436680], 1
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov esi, 0x20
lea edi, [esp + 0x30]
mov eax, 0x436684
call fcn.00404a00
xor ebx, ebx
mov dword [esp + 0xa8], ebx
test byte [0x436680], 1
jne 0x409ec2
or dword [0x436680], 1
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov esi, 0x167
lea edi, [esp + 0x28]
mov eax, 0x436684
call fcn.00404a00
mov byte [esp + 0xa8], 1
test byte [0x436680], 1
mov esi, 1
jne 0x409f03
or dword [0x436680], esi
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push esi
lea eax, [esp + 0x38]
push eax
mov ecx, 0x436684
call fcn.00404a30
mov byte [esp + 0xa8], 2
test byte [0x436680], 1
jne 0x409f3c
or dword [0x436680], esi
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push 2
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x436684
call fcn.00404a30
mov byte [esp + 0xa8], 3
test byte [0x436680], 1
jne 0x409f76
or dword [0x436680], esi
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push 0x436684
lea esi, [esp + 0x3c]
call fcn.004053e0
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jne 0x40a075
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x40a08e
mov dword [esp + 0x18], ebx
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x40a0a7
mov dword [esp + 0x10], ebx
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x40a0c0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xa8], 8
mov ebx, dword [esp + 0x38]
xor edi, edi
cmp ebx, edi
jne 0x40a0d9
mov dword [esp + 0x14], edi
mov edx, dword [ebp + 8]
mov byte [esp + 0xa8], 9
mov eax, dword [edx + 4]
push 0x3f2
push eax
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 esi, eax
cmp esi, edi
jne 0x40a0f2
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
mov byte [esp + 0xa8], 3
lea eax, [ebx - 0x10]
jmp 0x40a55b
push eax
call esi
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x409fa2
push 0x8007000e
call fcn.004018a0
push eax
call esi
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x409fba
push 0x8007000e
call fcn.004018a0
push eax
call esi
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x409fd2
push 0x8007000e
call fcn.004018a0
push eax
call esi
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x409fea
push 0x8007000e
call fcn.004018a0
push ebx
call esi
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x40a004
push 0x8007000e
call fcn.004018a0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40a25c
nop
push 0x30
lea ecx, [esp + 0x70]
push 0
push ecx
call fcn.00425b9e
add esp, 0xc
lea edx, [esp + 0x68]
push edx
push 0
push 0x104b
push esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 4
call ebx
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x40a21b
lea eax, [esp + 0x24]
push eax
call fcn.00405e20
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a17f
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a19e
mov dword [esp + 0x44], 1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a1bd
mov dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a1dc
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a1fb
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a21b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push edi
push 0x100c
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a110
cmp dword [esp + 0x3c], 0
jne 0x40a2ca
cmp dword [esp + 0x4c], 0
jne 0x40a2ca
cmp dword [esp + 0x40], 0
jne 0x40a2ca
cmp dword [esp + 0x48], 0
jne 0x40a2ca
cmp dword [esp + 0x44], 0
jne 0x40a2ca
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
lea eax, [esp + 0x38]
call fcn.00407b90
lea eax, [esp + 0x2c]
call fcn.00407b90
lea eax, [esp + 0x34]
call fcn.00407b90
lea eax, [esp + 0x28]
call fcn.00407b90
lea eax, [esp + 0x30]
call fcn.00407b90
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
xor ebx, ebx
push str.Preferred_DropEffect
mov dword [esp + 0x58], ebx
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x50], edi
jne 0x40a314
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
push 0x42d798
call fcn.00419910
add esp, 0xc
jmp 0x40a4fc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
mov ebx, eax
call esi
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x5c], eax
call esi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x60], eax
call esi
add eax, dword [esp + 0x5c]
add eax, dword [esp + 0x64]
add eax, ebx
add eax, dword [esp + 0x58]
lea eax, [eax + eax + 0x30]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40a3a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
push 0x42d798
call fcn.00419910
add esp, 0xc
jmp 0x40a4fc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
cmp dword [esp + 0x3c], 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
lea edi, [eax + 0x14]
je 0x40a3ee
mov edx, dword [esp + 0x20]
push edx
call esi
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax + 2]
push eax
push ecx
push edi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x44], 0
je 0x40a41a
mov eax, dword [esp + 0x18]
push eax
call esi
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax + 2]
push ecx
push edx
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x4c], 0
je 0x40a446
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push eax
push edi
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x40], 0
je 0x40a472
mov edx, dword [esp + 0x1c]
push edx
call esi
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax + 2]
push eax
push ecx
push edi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [esp + 0x48], 0
je 0x40a49a
mov eax, dword [esp + 0x14]
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax + 2]
push ecx
push edx
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40a4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
push 0x42d798
call fcn.00419910
add esp, 0xc
jmp 0x40a4f8
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push 0xf
call esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x54], 1
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
push esi
push str.On_Copy__d
push 0x42d798
call fcn.00419910
add esp, 0xc
test esi, esi
jne 0x40a523
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
push edi
call esi
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
mov eax, dword [esp + 0x20]
push eax
call edi
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a59c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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