Function at 0x496500
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x560169
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push edi
xor edi, edi
cmp eax, edi
je 0x496615
mov ecx, dword [0x68c8bc]
cmp ecx, 3
je 0x4965b1
cmp ecx, 4
je 0x4965b1
cmp ecx, 5
je 0x4965b1
mov ecx, dword [ebp + 0x14]
add ecx, eax
cmp ecx, 0xec82e0
jbe 0x4965b1
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
push 0x566a
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
push 0x5254
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::FormatMessageA_1]
mov edx, dword [esp + 0x30]
add esp, 0xc
push edi
push 0x10
push edx
call sub.MFC71.DLL_AfxMessageBox
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
call sub.MFC71.DLL_AfxGetThread
cmp eax, edi
je 0x4965c3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov edi, eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x496615
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_GetClipboardOwner]
push eax
call sub.MFC71.DLL_CWnd::FromHandle
cmp eax, edi
jne 0x49660f
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 2
call edi
mov ebx, eax
test ebx, ebx
je 0x49660f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49662c
push eax
push 2
call edi
test eax, eax
mov dword [esp + 0x24], eax
jne 0x49662c
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
jb 0x496641
mov esi, dword [esi + 4]
jmp 0x496644
add esi, 4
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x496699
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 0x14]
jb 0x49667b
mov esi, dword [ebp + 4]
jmp 0x49667e
lea esi, [ebp + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
mov eax, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push ecx
call esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4966ba
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push eax
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc