Function at 0x4653a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x4655b7
cmp byte [ebp], 0
je 0x4655b7
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, 5
jle 0x4654d6
push ebp
call fcn.00452500
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4655b7
push edi
call fcn.00452760
add esp, 4
mov esi, eax
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x465440
lea eax, [esi + esi + 2]
mov dword [esp + 0x10], 0xd
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4654cb
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call fcn.004527c0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call fcn.00416560
add esp, 4
jmp 0x46552a
lea edi, [esi + esi*2 + 1]
mov ecx, 0x4afb50
push edi
mov dword [esp + 0x14], 1
call fcn.00416190
mov ebp, eax
test ebp, ebp
je 0x4654c3
mov ecx, dword [esp + 0x1c]
push 0
push 0
push edi
push ebp
push esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0x2002
mov byte [eax + ebp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4654b8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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
mov ecx, 0x4afb50
call fcn.004161f0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push edi
call fcn.00416560
add esp, 4
jmp 0x46552a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 1
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x46555a
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
test ebx, ebx
je 0x46555a
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4655b7
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8