Function at 0x4ff3a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x589410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebx + 0x20]
push edi
push edi
push 0x442
push eax
call esi
test al, 2
je 0x4ff7d2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
mov esi, 0x593514
mov dword [esp + 0x6c], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
push 1
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, ebx
mov byte [esp + 0x7c], 1
call fcn.004fe3e0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x5f3788
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4ff7bf
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x58]
mov byte [esp + 0x6c], 2
cmp eax, edi
mov esi, eax
jne 0x4ff473
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
jmp 0x4ff49a
lea edx, [eax*4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
push esi
push eax
call fcn.004ac580
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], 0x5b661c
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
cmp eax, edi
mov byte [esp + 0x6c], 3
mov esi, eax
jne 0x4ff4c7
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
jmp 0x4ff4ea
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x40], eax
push esi
push eax
call fcn.004ac580
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
xor ebp, ebp
xor esi, esi
cmp eax, edi
jle 0x4ff561
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov eax, dword [edx + esi*4]
push eax
call fcn.004fe840
cmp dword [esp + 0x18], edi
jne 0x4ff54a
cmp eax, edi
je 0x4ff54a
push 0x18
push edi
push eax
call fcn.0049fac0
mov ecx, dword [esp + 0x40]
cmp eax, edi
mov dword [ecx + esi*4], eax
je 0x4ff541
mov edx, dword [esp + 0x2c]
push eax
lea ebx, [edx + esi*4]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebx], eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
add ebp, dword [eax + esi*4]
jmp 0x4ff558
mov ecx, dword [esp + 0x2c]
mov dword [ecx + esi*4], edi
jmp 0x4ff558
mov edx, dword [esp + 0x2c]
mov dword [edx + esi*4], edi
mov eax, dword [esp + 0x40]
mov dword [eax + esi*4], edi
mov eax, dword [esp + 0x58]
inc esi
cmp esi, eax
jl 0x4ff4f2
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx - 8]
mov dword [esp + 0x1c], ebx
lea edx, [ebx + eax*8]
mov eax, dword [esp + 0x14]
inc ebx
mov ecx, dword [eax + 0x20]
lea esi, [edx + ebp + 9]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, edi
jne 0x4ff5d4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], 0x5b661c
cmp eax, edi
je 0x4ff59f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
mov esi, 0x5916e0
mov ebx, 0x593514
cmp eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ebx
je 0x4ff5c2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], esi
cmp eax, edi
mov dword [esp + 0x50], ebx
je 0x4ff64d
jmp 0x4ff644
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esp + 0x24], eax
jne 0x4ff675
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], 0x5b661c
cmp eax, edi
je 0x4ff611
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
mov esi, 0x5916e0
mov ebx, 0x593514
cmp eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ebx
je 0x4ff634
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], esi
cmp eax, edi
mov dword [esp + 0x50], ebx
je 0x4ff64d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [esp + 0x18], eax
mov dword [eax], ebx
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
push edi
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], al
mov ecx, ebx
mov ebx, dword [esp + 0x18]
mov eax, ecx
mov esi, ebp
lea edi, [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov ecx, eax
add esp, 4
lea ebp, [edx + 5]
mov dword [esp + 0x20], ecx
mov dword [ebx + ebp], eax
add ebp, 4
xor ebx, ebx
test ecx, ecx
jle 0x4ff784
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
add ebp, 4
mov edx, dword [eax + ebx*4]
mov dword [edi + ebp - 4], edx
mov eax, dword [esp + 0x2c]
add ebp, 4
mov edx, dword [eax + ebx*4]
mov dword [edi + ebp - 4], edx
mov eax, dword [esp + 0x2c]
cmp dword [eax + ebx*4], 0
jbe 0x4ff77b
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x4ff77b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x2c]
mov esi, eax
add edi, ebp
mov ecx, dword [ecx + ebx*4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + ebx*4]
add ebp, edx
mov edx, dword [ecx + ebx*4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + ebx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x20]
inc ebx
cmp ebx, ecx
jl 0x4ff6fd
mov esi, dword [esp + 0x24]
mov edx, dword [0x5f42d0]
push esi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 2
call fcn.00501770
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.00436530
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.00436530
jmp 0x4ff651
mov eax, dword [ebx + 0x20]
push edi
push edi
push 0x301
push eax
call esi
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret