Function at 0x40e7a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x416740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov ecx, ebx
mov byte [esp + 0x20], 1
call fcn.0040e770
test eax, eax
mov dword [esp + 0x14], eax
jl 0x40ea64
mov al, byte [esp + 0x28]
test al, al
je 0x40e8f0
mov eax, dword [ebx + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push eax
call ebp
test eax, eax
jbe 0x40e995
mov ecx, dword [ebx + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x40e995
mov eax, dword [esp + 0x10]
mov esi, 0x41d88c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e863
test cl, cl
je 0x40e85f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e863
add eax, 2
add esi, 2
test cl, cl
jne 0x40e83f
xor eax, eax
jmp 0x40e868
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e877
push 0xa
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x40e8d3
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x28]
push 0
push eax
push esi
push edi
mov ecx, ebx
mov byte [esp + 0x30], 2
call fcn.0040fdd0
test esi, esi
jle 0x40e8ae
push 9
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.004153de
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x40e881
mov edx, dword [ebx + 0x20]
push 2
push edi
push 0x100c
push edx
call ebp
mov edi, eax
test edi, edi
jge 0x40e836
jmp 0x40e995
xor edi, edi
mov eax, dword [esp + 0x10]
mov esi, 0x41d88c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e91f
test cl, cl
je 0x40e91b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e91f
add eax, 2
add esi, 2
test cl, cl
jne 0x40e8fb
xor eax, eax
jmp 0x40e924
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e933
push 0xa
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov ebp, dword [esp + 0x14]
xor esi, esi
test ebp, ebp
jle 0x40e98b
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x28]
push 0
push eax
push esi
push edi
mov ecx, ebx
mov byte [esp + 0x30], 3
call fcn.0040fdd0
test esi, esi
jle 0x40e96a
push 9
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.004153de
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, ebp
jl 0x40e93d
inc edi
cmp edi, 0xa
jl 0x40e8f2
mov eax, dword [esp + 0x10]
mov esi, 0x41d88c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e9c2
test cl, cl
je 0x40e9be
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e9c2
add eax, 2
add esi, 2
test cl, cl
jne 0x40e99e
xor eax, eax
jmp 0x40e9c7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ea64
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ea64
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esp + 0x10]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x40ea89
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4