Function at 0x405290
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 0x418ca0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x424140]
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 0x405634
push 0xd
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4053a1
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4053a1
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 0x405379
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405334
sub ecx, esi
sar ecx, 1
cmp ecx, 7
ja 0x405365
lea esi, [ecx + ecx]
mov dword [ebp - 0x4c], ecx
push esi
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d360
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x5c], ax
jmp 0x405372
push edx
push dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00407fb0
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
jmp 0x4053c5
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x41ff2c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00404fa0
push 0x426d58
mov dword [ebp - 4], 0xffffffff
call fcn.0040b222
mov esi, dword [ebp - 0x1c]
add esp, 4
mov edi, dword [ebp - 0x2c]
test esi, esi
je 0x405424
cmp dword [0x426d54], 7
lea edi, [ebp - 0x2c]
mov edx, 0x426d40
cmova edx, dword [0x426d40]
cmp dword [ebp - 0x18], 7
cmova edi, dword [ebp - 0x2c]
cmp esi, dword [0x426d50]
jne 0x40546b
test esi, esi
je 0x405421
sub edi, edx
nop
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x40546b
add edx, 2
sub esi, 1
jne 0x405410
mov edi, dword [ebp - 0x2c]
push 0x426d58
call fcn.0040b23e
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 7
jbe 0x40562e
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x405624
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405652
jmp 0x405624
push 0x426d58
call fcn.0040b23e
add esp, 4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00407200
lea ecx, [ebp - 0x44]
call fcn.004048f0
cmp dword [ebp - 0x18], 7
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x44]
cmova edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 7
mov esi, dword [ebp - 0x34]
cmova eax, edi
cmp esi, dword [ebp - 0x1c]
jne 0x4054dc
test esi, esi
je 0x4055a9
sub eax, edx
mov dword [ebp - 0x60], eax
nop dword [eax]
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x4054dc
mov eax, dword [ebp - 0x60]
add edx, 2
sub esi, 1
jne 0x4054c0
jmp 0x4055a9
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 0x40553b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x405534
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.0040ef87
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x40553b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x426d58
call fcn.0040b214
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
mov eax, dword [0x426d54]
add esp, 4
cmp dword [ebp - 0x30], 7
cmova ecx, dword [ebp - 0x44]
cmp edi, eax
ja 0x40558a
cmp eax, 7
mov dword [0x426d50], edi
lea eax, [edi + edi]
mov esi, 0x426d40
cmova esi, dword [0x426d40]
push eax
push ecx
push esi
call fcn.0040d360
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x405599
push ecx
push dword [ebp - 0x60]
mov ecx, 0x426d40
push edi
call fcn.00407fb0
push 0x426d58
call fcn.0040b230
mov edi, dword [ebp - 0x44]
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, 7
jbe 0x4055e0
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4055d6
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405652
push ecx
push edi
call fcn.0040bf8e
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 0x40562e
mov edx, dword [ebp - 0x2c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405620
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405652
push ecx
push edx
jmp 0x405626
push ecx
push edi
call fcn.0040bf8e
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
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.0040bb05
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040f39f
int3