Function at 0x404e40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42930d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
mov byte [ebp - 0x31], 0
xor bl, bl
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404e85
mov byte [ebp - 0x31], 1
mov bl, 1
mov dword [ebp - 4], 0
test bl, bl
je 0x405022
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x31]
call fcn.00403eb0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x404fd8
cmp dword [edi + 0x14], 7
lea eax, [edi + 0x10]
mov dword [ebp - 0x38], eax
mov edx, edi
jbe 0x404ebf
mov edx, dword [edi]
cmp dword [ebp - 0x14], 7
lea ebx, [ebp - 0x28]
cmova ebx, dword [ebp - 0x28]
cmp esi, dword [eax]
jne 0x404ef6
test esi, esi
je 0x404fd8
sub ebx, edx
nop dword [eax + eax]
mov cx, word [edx + ebx]
cmp cx, word [edx]
jne 0x404ef6
add edx, 2
sub esi, 1
jne 0x404ee0
jmp 0x404fd8
xorps xmm0, xmm0
lea ebx, [edi + 0x18]
movlpd qword [ebp - 0x30], xmm0
push ebx
mov dword [ebp - 0x30], ebx
call fcn.00411603
add esp, 4
mov byte [ebp - 0x2c], 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp edi, eax
je 0x404f5e
cmp dword [ebp - 0x14], 7
mov ecx, eax
mov esi, dword [ebp - 0x18]
cmova ecx, dword [ebp - 0x28]
mov eax, dword [edi + 0x14]
cmp esi, eax
ja 0x404f52
cmp eax, 7
jbe 0x404f37
mov edi, dword [edi]
mov eax, dword [ebp - 0x38]
mov dword [eax], esi
lea eax, [esi + esi]
push eax
push ecx
push edi
call fcn.00414020
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x404f5e
push ecx
push dword [ebp - 0x38]
mov ecx, edi
push esi
call fcn.004070f0
push ebx
mov byte [ebp - 4], 1
call fcn.00411611
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00403fd0
cmp byte [ebp - 0x31], 0
je 0x404fd8
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x404fd8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
jne 0x404fae
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x404fd8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
push ecx
call fcn.0041731e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40500e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405004
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40504a
push ecx
push edx
call fcn.00412bd8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp byte [ebp - 0x31], 0
je 0x40502e
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041274a
mov esp, ebp
pop ebp
ret
call fcn.004176b9
int3