Function at 0x401ddc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, esp
mov dword [eax], 0
call sub.USER32.DLL_OpenClipboard
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xd
mov dword [ebp - 0x28], eax
call sub.USER32.DLL_GetClipboardData
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401e24
mov dword [ebp - 8], 0
jmp 0x40202e
mov eax, dword [ebp - 0x10]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GlobalLock
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GlobalSize
sub esp, 4
lea ecx, str.0000shell:_data_local_tmp_copyclip_
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004093c8
mov ecx, dword [ebp - 0xc]
mov dword [esp], ecx
mov dword [ebp - 0x2c], eax
call fcn.00409414
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
shr ecx, 1
cmp eax, ecx
jae 0x401fc3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x16], dx
movzx eax, word [ebp - 0x16]
cmp eax, 0
je 0x401eaa
movzx eax, word [ebp - 0x16]
cmp eax, 0xd
jne 0x401eaf
jmp 0x401fb1
movzx eax, word [ebp - 0x16]
cmp eax, 0x27
jne 0x401ed9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [str.]
mov dword [eax + ecx], edx
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x401faf
movzx eax, word [ebp - 0x16]
cmp eax, 0x80
jge 0x401f04
mov ax, word [ebp - 0x16]
mov cl, al
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
mov byte [esi + edx], cl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x401fad
movzx eax, word [ebp - 0x16]
cmp eax, 0x800
jge 0x401f52
movzx eax, word [ebp - 0x16]
sar eax, 6
and eax, 0x3f
or eax, 0xc0
mov cl, al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax], cl
movzx eax, word [ebp - 0x16]
and eax, 0x3f
or eax, 0x80
mov cl, al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax + 1], cl
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x401fab
movzx eax, word [ebp - 0x16]
sar eax, 0xc
or eax, 0xe0
mov cl, al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax], cl
movzx eax, word [ebp - 0x16]
sar eax, 6
and eax, 0x3f
or eax, 0x80
mov cl, al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax + 1], cl
movzx eax, word [ebp - 0x16]
and eax, 0x3f
or eax, 0x80
mov cl, al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx + eax + 2], cl
mov eax, dword [ebp - 0x24]
add eax, 3
mov dword [ebp - 0x24], eax
jmp 0x401fad
jmp 0x401faf
jmp 0x401fb1
jmp 0x401fb3
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x401e75
lea eax, [0x413076]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004093c8
lea ecx, str._04X
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x24]
sub esi, 4
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [ebp - 0x30], eax
call fcn.0040aaf4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 4], 0x73
mov ecx, dword [ebp - 0x10]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0x34], eax
call sub.KERNEL32.DLL_GlobalUnlock
sub esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
add esp, 0x40
pop esi
pop ebp
ret