Function at 0x405cd0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425a40
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x433180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40607c
push 0xd
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x405d53
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
push 0x42e1e4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.00405850
jmp 0x405deb
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 7
xor eax, eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x5c], ax
test edx, edx
je 0x405dc5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d80
sub ecx, esi
sar ecx, 1
cmp ecx, 7
ja 0x405db1
lea esi, [ecx + ecx]
mov dword [ebp - 0x4c], ecx
push esi
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.004105e0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x5c], ax
jmp 0x405dbe
push edx
push dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00408ad0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
movups xmm0, xmmword [ebp - 0x5c]
xor eax, eax
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x4364d4
call fcn.0040ddf6
mov esi, dword [ebp - 0x1c]
add esp, 4
mov edi, dword [ebp - 0x2c]
test esi, esi
je 0x405e54
cmp dword [0x4364d0], 7
lea edi, [ebp - 0x2c]
mov edx, 0x4364bc
cmova edx, dword [0x4364bc]
cmp dword [ebp - 0x18], 7
cmova edi, dword [ebp - 0x2c]
cmp esi, dword [0x4364cc]
jne 0x405e9b
test esi, esi
je 0x405e51
sub edi, edx
nop dword [eax + eax]
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x405e9b
add edx, 2
sub esi, 1
jne 0x405e40
mov edi, dword [ebp - 0x2c]
push 0x4364d4
call fcn.0040de23
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 7
jbe 0x40607c
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x406072
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40609a
jmp 0x406072
push 0x4364d4
call fcn.0040de23
add esp, 4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00407720
lea ecx, [ebp - 0x44]
call fcn.004052c0
cmp dword [ebp - 0x18], 7
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
lea edi, [ebp - 0x44]
cmova edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 7
cmova edi, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x1c]
jne 0x405efa
test esi, esi
je 0x405f8d
sub edi, edx
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x405efa
add edx, 2
sub esi, 1
jne 0x405ee4
jmp 0x405f8d
mov esi, dword [sym.imp.USER32.dll_OpenClipboard]
push 0
call esi
test eax, eax
je 0x405f8d
push 0
call esi
test eax, eax
je 0x405f85
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x34]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f7b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x405f74
cmp dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmova ecx, dword [ebp - 0x44]
inc eax
push ecx
push eax
push edx
call fcn.004139a4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, dword [sym.imp.USER32.dll_CloseClipboard]
call esi
jmp 0x405f8b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.USER32.dll_CloseClipboard]
call esi
jmp 0x405f8b
mov esi, dword [sym.imp.USER32.dll_CloseClipboard]
call esi
push 0x4364d4
call fcn.0040dde8
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
mov eax, dword [0x4364d0]
add esp, 4
cmp dword [ebp - 0x30], 7
cmova ecx, dword [ebp - 0x44]
cmp edi, eax
ja 0x405fdc
cmp eax, 7
mov dword [0x4364cc], edi
lea eax, [edi + edi]
mov esi, 0x4364bc
cmova esi, dword [0x4364bc]
push eax
push ecx
push esi
call fcn.004105e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x405feb
push ecx
push dword [ebp - 0x60]
mov ecx, 0x4364bc
push edi
call fcn.00408ad0
push 0x4364d4
call fcn.0040de15
mov ecx, dword [ebp - 0x30]
add esp, 4
cmp ecx, 7
jbe 0x40602e
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406024
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40609a
push ecx
push edx
call fcn.0040f19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], 7
cmp eax, 7
jbe 0x40607c
mov edx, dword [ebp - 0x2c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40606e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40609a
push ecx
push edx
jmp 0x406074
push ecx
push edi
call fcn.0040f19d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ed0f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00413d3f
int3