Function at 0x4067a0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x4ea66c], 0
push ebx
push esi
push edi
jne 0x40681b
mov edi, dword [ebp + 8]
test edi, edi
je 0x4068d8
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x4067df
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4067d0
sub esi, ecx
sar esi, 1
test esi, esi
je 0x4068d8
lea ebx, [esi + 1]
test ebx, ebx
je 0x40681b
lea eax, [ebx + ebx]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [0x4ea664], eax
test eax, eax
jne 0x406826
push dword [0x4e9dfc]
mov ecx, 0x4e9f30
push eax
push eax
push eax
push 0x4d27a0
call fcn.0040c830
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [0x4ea66c], eax
test eax, eax
jne 0x4068ae
push dword [0x4ea664]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov dword [0x4ea664], eax
mov eax, dword [0x4e47f8]
cmp dword [eax + 0x34], 0
jne 0x406889
cmp dword [0x4ea5ac], 0
jne 0x406889
cmp byte [0x4e9ec6], 0
jne 0x406889
push 0
push 0
push 0x4ceea8
push 0
push 0x4d0d58
mov ecx, 0x4e9f30
call fcn.0040d460
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0x4ceea8
push 0x4d0d58
mov ecx, 0x4e9f30
call fcn.0040c280
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
mov dword [0x4ea674], ebx
mov word [eax], cx
mov ebx, dword [0x4ea66c]
test ebx, ebx
je 0x40681b
push esi
push edi
push ebx
call fcn.004aa484
add esp, 0xc
xor eax, eax
mov word [ebx + esi*2], ax
cmp dword [0x4ea678], 0
jne 0x4068fd
call fcn.00406d40
test eax, eax
jne 0x4068fd
push 0x4d0da0
call fcn.00406a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40695a
cmp dword [0x4ea678], eax
je 0x406947
cmp dword [0x4ea668], eax
je 0x40692d
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
push 0x4d0de4
call fcn.00406a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4ea664]
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test eax, eax
je 0x4069a7
mov ecx, dword [0x4ea66c]
test ecx, ecx
je 0x4069f8
movzx esi, word [ecx]
push eax
call edi
mov dword [0x4ea66c], 0
mov dword [0x4ea674], 0
test si, si
jne 0x4069f3
push dword [0x4ea664]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov dword [0x4ea664], eax
cmp dword [0x4ea678], 0
je 0x4069e5
cmp dword [0x4ea668], 0
je 0x4069cb
push dword [0x4ea660]
call edi
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4ea664]
push eax
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x406a11
mov dword [0x4ea664], 0
jmp 0x4069a7
cmp dword [0x4ea678], 0
je 0x406a4f
cmp dword [0x4ea668], 0
je 0x406a35
push dword [0x4ea660]
call edi
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
push 0x4d0e04
call fcn.00406a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8