Function at 0x4064a2
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ec8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
cmp dword [ebp + 8], 0
je 0x4064c9
cmp dword [ebp + 0xc], 0
jge 0x4064ce
jmp 0x406767
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
test edx, edx
je 0x40654f
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x40651c
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x40651c
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x40654d
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x40653b
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x40654d
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4064e1
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x406637
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x4065de
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x4065de
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x406632
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x406616
mov eax, dword [ebp - 0x28]
mov byte [eax], 0xd
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x406632
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x406579
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov edx, dword [ebp + 0x10]
cmp ecx, dword [edx*4 + 0x441e24]
jle 0x4066b3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x4421a4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp + 0xc]
add eax, 0x64
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx*4 + 0x4421a4], edx
mov eax, dword [ebp + 0xc]
add eax, 0x64
mov ecx, dword [ebp + 0x10]
mov dword [ecx*4 + 0x441e24], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx*4 + 0x4421a4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x4421a4]
mov edx, dword [ebp + 0xc]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax*4 + 0x441dd8], ecx
cmp dword [ebp + 0x10], 0
je 0x40674e
call fcn.00404380
mov edx, dword [eax + 0x58]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x40670d
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
jmp 0x406714
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406744
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x441df4], 0
jmp 0x40674e
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0x441df4], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret