Function at 0x4062e2
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f01c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
cmp dword [ebp + 8], 0
je 0x406309
cmp dword [ebp + 0xc], 0
jge 0x40630e
jmp 0x4065a7
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 0x40638f
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x40635c
mov eax, dword [ebp - 0x24]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x40635c
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 0x40638d
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x40637b
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 0x40638d
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 0x406321
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 0x406477
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
cmp eax, 0xd
jne 0x40641e
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x40641e
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 0x406472
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x406456
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 0x406472
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 0x4063b9
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 + 0x43707c]
jle 0x4064f3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x4373fc]
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 + 0x4373fc], edx
mov eax, dword [ebp + 0xc]
add eax, 0x64
mov ecx, dword [ebp + 0x10]
mov dword [ecx*4 + 0x43707c], 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 + 0x4373fc]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x4373fc]
mov edx, dword [ebp + 0xc]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax*4 + 0x437030], ecx
cmp dword [ebp + 0x10], 0
je 0x40658e
call fcn.004041c0
mov edx, dword [eax + 0x58]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x40654d
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
jmp 0x406554
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406584
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 + 0x43704c], 0
jmp 0x40658e
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0x43704c], 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