Function at 0x40a90a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x20
mov eax, 0x422cb7
call fcn.00421412
mov edi, ecx
mov dword [ebp - 0x28], edi
mov eax, dword [edi + 0x43]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ebx, ebx
cmp eax, ebx
jne 0x40a93c
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x47]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x40a950
mov dword [ebp - 0x10], ebx
jmp 0x40a95a
push eax
call esi
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40a92d
push 0x8007000e
call fcn.00401000
push eax
call esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40a946
push 0x3f2
push dword [edi + 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40aae3
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
mov edi, 0x100c
push edi
push ebx
call esi
cmp eax, 0xffffffff
je 0x40aae3
test eax, eax
jne 0x40a9a1
mov dword [ebp - 0x1c], 1
jmp 0x40a9a9
cmp eax, 1
jne 0x40a9a9
mov dword [ebp - 0x20], eax
push 2
push eax
push edi
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40a994
xor eax, eax
cmp dword [ebp - 0x1c], eax
jne 0x40a9c5
cmp dword [ebp - 0x20], eax
je 0x40aae3
push 0x428954
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [ebp - 0x2c], eax
call ebx
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x40aad3
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push esi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call esi
add eax, dword [ebp - 0x18]
lea eax, [eax + eax + 0x1a]
push eax
push 0x2042
call ebx
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x40aad3
push eax
call edi
mov dword [eax], 0x14
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 1
lea edi, [eax + 0x14]
cmp dword [ebp - 0x1c], ebx
je 0x40aa77
push dword [ebp - 0x14]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x14]
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push dword [ebp - 0x14]
call esi
lea edi, [edi + eax*2 + 2]
cmp dword [ebp - 0x20], ebx
je 0x40aa97
push dword [ebp - 0x10]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x10]
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40aad3
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call esi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40aae3
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x14]
call esi
call fcn.004214ea
ret