Function at 0x40d7b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0xc], 0x7d1
jne 0x40d7d5
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x2c]
cmp eax, dword [ecx + 0x60]
je 0x40d7d5
jmp 0x40dab7
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.0040bec0
test eax, eax
je 0x40d801
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.COMCTL32.dll_DPA_Destroy]
jmp 0x40dab7
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0xc], 0
jne 0x40d81e
mov dword [ebp - 0x44], 0
jmp 0x40d826
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
jmp 0x40d831
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x44]
jge 0x40d909
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 8]
jae 0x40d89e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx + 4]
jae 0x40d89e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0x4c]
lea eax, [ecx + edx*8 + 8]
mov dword [ebp - 0x34], eax
jmp 0x40d8a5
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x40d8bf
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x28]
lea edx, [ecx + edx*2]
mov dword [ebp - 0x50], edx
jmp 0x40d8c8
mov eax, dword [ebp - 0x14]
add eax, 0x2c
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 2
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x18]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 0x18], 2
cmp word [ebp - 2], 0
jne 0x40d8d7
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x68]
sar edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x38], edx
jmp 0x40d828
mov eax, dword [ebp - 0x38]
shl eax, 1
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
push 0x2042
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40da61
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0xc], 0
jne 0x40d950
mov dword [ebp - 0x54], 0
jmp 0x40d958
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
jmp 0x40d963
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jge 0x40da57
cmp dword [ebp - 0x1c], 0
jle 0x40d99d
mov ecx, 0xd
mov edx, dword [ebp - 8]
mov word [edx], cx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, 0xa
mov edx, dword [ebp - 8]
mov word [edx], cx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 8]
jae 0x40d9fe
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [eax + 4]
jae 0x40d9fe
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x5c]
lea ecx, [edx + eax*8 + 8]
mov dword [ebp - 0x40], ecx
jmp 0x40da05
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
je 0x40da1f
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x28]
lea eax, [edx + eax*2]
mov dword [ebp - 0x24], eax
jmp 0x40da28
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
test eax, eax
je 0x40da52
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x40da28
jmp 0x40d95a
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp dword [ebp - 0x10], 0
je 0x40daa7
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40da97
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [ebp - 0x10]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x60], 0
jne 0x40daa7
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.COMCTL32.dll_DPA_Destroy]
mov esp, ebp
pop ebp
ret 8