Function at 0x40e890
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x416830
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.0040e860
test eax, eax
mov dword [esp + 0x14], eax
jl 0x40eb54
mov al, byte [esp + 0x28]
test al, al
je 0x40e9e0
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 0x40ea85
mov ecx, dword [ebx + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x40ea85
mov eax, dword [esp + 0x10]
mov esi, 0x41e8f0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e953
test cl, cl
je 0x40e94f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e953
add eax, 2
add esi, 2
test cl, cl
jne 0x40e92f
xor eax, eax
jmp 0x40e958
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e967
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 0x40e9c3
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.0040fec0
test esi, esi
jle 0x40e99e
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.004154ce
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 0x40e971
mov edx, dword [ebx + 0x20]
push 2
push edi
push 0x100c
push edx
call ebp
mov edi, eax
test edi, edi
jge 0x40e926
jmp 0x40ea85
xor edi, edi
mov eax, dword [esp + 0x10]
mov esi, 0x41e8f0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ea0f
test cl, cl
je 0x40ea0b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ea0f
add eax, 2
add esi, 2
test cl, cl
jne 0x40e9eb
xor eax, eax
jmp 0x40ea14
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ea23
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 0x40ea7b
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.0040fec0
test esi, esi
jle 0x40ea5a
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.004154ce
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, ebp
jl 0x40ea2d
inc edi
cmp edi, 0xa
jl 0x40e9e2
mov eax, dword [esp + 0x10]
mov esi, 0x41e8f0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40eab2
test cl, cl
je 0x40eaae
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40eab2
add eax, 2
add esi, 2
test cl, cl
jne 0x40ea8e
xor eax, eax
jmp 0x40eab7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40eb54
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40eb54
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 0x40eb79
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