Function at 0x409fae
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x90
mov eax, 0x42415a
call fcn.0042318c
mov esi, ecx
mov dword [ebp - 0x64], esi
call fcn.0040117a
push 0x20
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.00405304
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040117a
push 0x860
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00405304
xor eax, eax
inc eax
mov byte [ebp - 4], al
call fcn.0040117a
push 0x967
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.00405304
mov byte [ebp - 4], 2
call fcn.0040117a
xor ecx, ecx
inc ecx
push ecx
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00405323
mov byte [ebp - 4], 3
call fcn.0040117a
push 2
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00405323
mov byte [ebp - 4], 4
call fcn.0040117a
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.00405516
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push dword [ebp - 0x50]
call fcn.0040bbaa
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
push dword [ebp - 0x4c]
call fcn.0040bbaa
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x5c]
call fcn.0040bbaa
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x58]
call fcn.0040bbaa
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
push dword [ebp - 0x54]
call fcn.0040bbaa
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.0040bbaa
push 0x3f2
mov byte [ebp - 4], 0xb
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a4c3
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x40a4c3
mov esi, dword [ebp - 0x48]
mov edi, eax
push 0x34
lea eax, [ebp - 0x9c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], edi
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x9c], 4
push eax
push ebx
push 0x104b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x7c], 0
je 0x40a1f2
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x10]
call fcn.0040655d
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
push dword [ebp - 0x50]
call fcn.0040b85e
mov ecx, dword [ebp - 0x28]
test eax, eax
push 1
pop eax
push dword [ebp - 0x4c]
cmove ecx, eax
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x10]
call fcn.0040b85e
mov ecx, dword [ebp - 0x2c]
test eax, eax
push 1
pop eax
push dword [ebp - 0x5c]
cmove ecx, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x10]
call fcn.0040b85e
mov ecx, dword [ebp - 0x30]
test eax, eax
push 1
pop eax
push dword [ebp - 0x58]
cmove ecx, eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x10]
call fcn.0040b85e
mov ecx, dword [ebp - 0x3c]
test eax, eax
push 1
pop eax
push dword [ebp - 0x54]
cmove ecx, eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x10]
call fcn.0040b85e
mov ecx, dword [ebp - 0x34]
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x10]
push esi
call fcn.0040b85e
mov ecx, dword [ebp - 0x38]
test eax, eax
push 1
pop eax
cmove ecx, eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040188c
push 2
push edi
push 0x100c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a0f8
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
jne 0x40a23c
cmp dword [ebp - 0x30], 0
jne 0x40a23c
cmp dword [ebp - 0x34], 0
jne 0x40a23c
cmp dword [ebp - 0x38], 0
jne 0x40a23c
cmp dword [ebp - 0x2c], 0
jne 0x40a23c
cmp dword [ebp - 0x3c], 0
je 0x40a4c3
push str.Preferred_DropEffect
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40a27f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
push 0x426954
call fcn.00419776
add esp, 0xc
jmp 0x40a49c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x14]
xor ecx, ecx
inc ecx
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x24]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
call ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
call ebx
push edi
mov dword [ebp - 0x44], eax
call ebx
push esi
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add eax, ebx
add eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x60]
lea eax, [eax*2 + 0x34]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40a30e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
push 0x426954
call fcn.00419776
add esp, 0xc
xor ebx, ebx
jmp 0x40a49c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
mov dword [eax + 4], ecx
lea ebx, [eax + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
inc ecx
cmp dword [ebp - 0x28], 0
mov dword [eax], 0x14
mov dword [eax + 0x10], ecx
je 0x40a360
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp dword [ebp - 0x2c], 0
je 0x40a393
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp dword [ebp - 0x30], 0
je 0x40a3c6
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp dword [ebp - 0x34], 0
je 0x40a3f9
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp dword [ebp - 0x38], 0
je 0x40a426
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push edi
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp dword [ebp - 0x3c], 0
je 0x40a44d
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push esi
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x64]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40a478
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
jmp 0x40a2fa
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call ebx
push dword [ebp - 0x14]
push dword [ebp - 0x68]
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
lea ebx, [eax + 1]
push ebx
push str.On_Copy__d
push 0x426954
call fcn.00419776
add esp, 0xc
test ebx, ebx
jne 0x40a4c3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
push dword [ebp - 0x14]
call ebx
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x18]
call edi
push esi
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x24]
call edi
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
call fcn.00423155
ret