Function at 0x40e3a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4167e0
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.0040e370
test eax, eax
mov dword [esp + 0x14], eax
jl 0x40e664
mov al, byte [esp + 0x28]
test al, al
je 0x40e4f0
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 0x40e595
mov ecx, dword [ebx + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x40e595
mov eax, dword [esp + 0x10]
mov esi, 0x41d8c8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e463
test cl, cl
je 0x40e45f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e463
add eax, 2
add esi, 2
test cl, cl
jne 0x40e43f
xor eax, eax
jmp 0x40e468
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e477
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 0x40e4d3
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.0040f9d0
test esi, esi
jle 0x40e4ae
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.0041547e
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 0x40e481
mov edx, dword [ebx + 0x20]
push 2
push edi
push 0x100c
push edx
call ebp
mov edi, eax
test edi, edi
jge 0x40e436
jmp 0x40e595
xor edi, edi
mov eax, dword [esp + 0x10]
mov esi, 0x41d8c8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e51f
test cl, cl
je 0x40e51b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e51f
add eax, 2
add esi, 2
test cl, cl
jne 0x40e4fb
xor eax, eax
jmp 0x40e524
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e533
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 0x40e58b
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.0040f9d0
test esi, esi
jle 0x40e56a
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.0041547e
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, ebp
jl 0x40e53d
inc edi
cmp edi, 0xa
jl 0x40e4f2
mov eax, dword [esp + 0x10]
mov esi, 0x41d8c8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e5c2
test cl, cl
je 0x40e5be
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e5c2
add eax, 2
add esi, 2
test cl, cl
jne 0x40e59e
xor eax, eax
jmp 0x40e5c7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e664
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40e664
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 0x40e689
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