Function at 0x40e0d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x5c
mov eax, dword [eax + 0x84]
movzx ebx, word [eax + 0x1c]
movzx ecx, word [eax + 0x1e]
movsx esi, word [eax + 0x18]
mov word [ebp - 0x1c], bx
movsx ebx, word [eax + 0x1a]
mov eax, dword [edi + 0xa8]
mov word [ebp - 0x20], cx
mov dword [esp], eax
call sym._OpenClipboard_4
sub esp, 4
test eax, eax
jne 0x40e120
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movsx eax, word [ebp - 0x1c]
sub esi, eax
mov eax, esi
neg eax
cmovns esi, eax
movsx eax, word [ebp - 0x20]
sub ebx, eax
mov eax, ebx
neg eax
cmovns ebx, eax
call sym._EmptyClipboard_0
lea eax, [esi + 2]
add ebx, 1
imul eax, ebx
mov dword [ebp - 0x3c], eax
add eax, eax
mov dword [esp + 4], eax
mov dword [esp], 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x44], eax
sub esp, 8
test eax, eax
je 0x40e2c6
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov dword [ebp - 0x40], eax
sub esp, 4
test eax, eax
je 0x40e2c6
mov ecx, dword [edi + 0x84]
movzx edx, word [ecx + 0x1c]
movzx eax, word [ecx + 0x18]
cmp dx, ax
cmovle eax, edx
movzx edx, word [ecx + 0x1e]
movzx ecx, word [ecx + 0x1a]
cmp dx, cx
cmovg edx, ecx
movsx ecx, dx
lea edx, [ecx + ebx]
mov dword [ebp - 0x2c], edx
cmp ecx, edx
jae 0x40e337
movsx ebx, ax
add esi, 1
sub edx, 1
lea eax, [esi + ebx]
mov dword [ebp - 0x34], edx
add esi, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ebx]
mov edx, eax
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x40]
neg edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
mov esi, ebx
mov ebx, edi
mov edi, ecx
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
add eax, ecx
mov ecx, esi
mov dword [ebp - 0x20], eax
mov eax, esi
cmp esi, edx
jae 0x40e238
mov dword [ebp - 0x28], esi
lea esi, [esi]
lea esi, [esi]
mov edx, dword [ebx + 8]
mov esi, dword [edx + 0xc]
mov edx, dword [edx + 0x30]
imul esi, edi
add eax, esi
mov esi, dword [ebp - 0x20]
movzx eax, word [edx + eax*4]
mov edx, dword [ebp - 0x1c]
mov word [esi + ecx*2], ax
add ecx, 1
mov eax, ecx
cmp ecx, edx
jb 0x40e210
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
cmp ecx, eax
jb 0x40e259
jmp 0x40e260
lea edx, [eax - 2]
cmp ecx, edx
jae 0x40e265
mov eax, edx
cmp word [eax - 2], 0x20
je 0x40e250
mov edx, eax
add eax, 2
mov ecx, dword [ebp - 0x34]
cmp edi, ecx
jae 0x40e2d8
mov ecx, 0xa
add edi, 1
mov word [edx], cx
mov ecx, dword [ebp - 0x2c]
cmp edi, ecx
jae 0x40e2e7
mov dword [ebp - 0x24], eax
jmp 0x40e1f0
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalReAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40e300
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call sym._SetClipboardData_8
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._CloseClipboard_0
xor ecx, ecx
add edi, 1
mov word [edx], cx
mov ecx, dword [ebp - 0x2c]
cmp edi, ecx
jb 0x40e27e
mov edi, dword [ebp - 0x40]
sub eax, edi
mov esi, eax
mov ebx, eax
sar esi, 1
test byte [0x415080], 8
jne 0x40e305
cmp dword [ebp - 0x3c], esi
jne 0x40e286
mov ebx, dword [ebp - 0x44]
jmp 0x40e2a7
mov eax, dword [ebp - 0x40]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x416ec6
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.copy_selection
mov dword [esp + 4], 0x415080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40e2fb
xor esi, esi
xor ebx, ebx
jmp 0x40e2f2