Function at 0x4f45c6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4f45fd
xor eax, eax
jmp 0x4f4850
push 1
call fcn.0049c470
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xb0]
cmp dword [eax + 0xc4], ecx
jle 0x4f47b1
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004f05e5
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
je 0x4f47a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
add eax, eax
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x18]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4f47a0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x14]
shl ecx, 4
lea ecx, [ecx + ecx*2]
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x14]
add eax, 0x50
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, 0x50
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0
jmp 0x4f46d9
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp dword [eax + 0x14], ecx
jle 0x4f478b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
dec eax
cmp eax, dword [ebp - 0x24]
jle 0x4f4721
mov eax, dword [ebp - 0x24]
inc eax
shl eax, 4
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp - 0x24]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x10]
sub eax, dword [ecx + edx + 0x24]
mov dword [ebp - 0xc], eax
jmp 0x4f473a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x24]
shl ecx, 4
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp - 0x10]
sub eax, dword [ecx + edx + 0x24]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f4786
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00522244
add esp, 0xc
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax - 1]
cmp eax, 0xd
je 0x4f477d
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xd
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xa
inc dword [ebp - 0x18]
jmp 0x4f46d6
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4f47a7
mov dword [ebp - 0x1c], 0x2714
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 8], 0
je 0x4f4841
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f483c
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 8]
push eax
xor eax, eax
mov ax, word [0x5336b8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4f4825
cmp dword [ebp - 0x2c], 0
je 0x4f4820
mov eax, dword [ebp - 0x2c]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4f4820
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4f4836
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x1c], 0x2714
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4f4848
mov dword [ebp - 0x1c], 0x2714
mov eax, dword [ebp - 0x1c]
jmp 0x4f4850
pop edi
pop esi
pop ebx
leave
ret