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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f2f3
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x457068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0xe4], edi
nop dword [eax]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x64
mov dword [ebp - 0x104], 0
call fcn.00408700
mov dword [ebp - 4], 1
or edi, 4
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0xe4], edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406357
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x406351
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x406351
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xe0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406333
sub ecx, dword [ebp - 0xe0]
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407880
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [0x457a58], 0x10
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov ecx, 0x457a44
cmovae ecx, dword [0x457a44]
cmp dword [ebp - 0x18], 0x10
cmovae edx, dword [ebp - 0x2c]
cmp esi, dword [0x457a54]
jne 0x4063d9
sub esi, 4
jb 0x406396
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40639b
add edx, 4
add ecx, 4
sub esi, 4
jae 0x406385
cmp esi, 0xfffffffc
je 0x4063cf
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4063c8
cmp esi, 0xfffffffd
je 0x4063cf
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4063c8
cmp esi, 0xfffffffe
je 0x4063cf
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x4063c8
cmp esi, 0xffffffff
je 0x4063cf
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4063cf
sbb eax, eax
or eax, 1
jmp 0x4063d1
xor eax, eax
test eax, eax
je 0x406c4b
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x3c]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xe0], eax
push 1
mov byte [ebp - 4], 2
call fcn.00411ac1
add esp, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00407c40
mov byte [ebp - 4], 4
mov esi, 0x45a29c
mov ecx, dword [0x45a2b0]
mov edx, 0x45a29c
push dword [ebp - 0xe0]
mov eax, dword [0x45a2ac]
cmp ecx, 0x10
push ecx
cmovae esi, dword [0x45a29c]
lea ecx, [ebp - 0x40]
cmovae edx, dword [0x45a29c]
add eax, esi
push eax
push edx
call fcn.00409550
push 0x48
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0042c3b0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x2c]
xorps xmm0, xmm0
add eax, edx
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x84], eax
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
push edx
push 0
push eax
push edx
mov edx, ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78]
call fcn.00408900
mov ecx, dword [ebp - 0x80]
xor edx, edx
add esp, 0x1c
test al, al
cmove ecx, edx
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 7
nop dword [eax]
test ecx, ecx
je 0x406a1c
push 0x38
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.0042c3b0
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc0], eax
add esp, 0xc
mov al, byte [ebp - 0x74]
mov byte [ebp - 0xbc], al
lea eax, [ebp - 0x70]
push eax
call fcn.00406fa0
movq xmm0, qword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
movq qword [ebp - 0xac], xmm0
movq xmm0, qword [ebp - 0x58]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x50]
movq qword [ebp - 0xa0], xmm0
movq xmm0, qword [ebp - 0x4c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x44]
movq qword [ebp - 0x94], xmm0
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 8
cmp byte [0x45a22c], 0
jne 0x4065a3
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4065a3
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.004054d0
test al, al
jne 0x4065c4
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406090
add esp, 4
mov byte [0x45a22c], 1
jmp 0x406996
mov ecx, dword [ebp - 0xb4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0xb8]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebp - 0x94]
cmovne edx, dword [ebp - 0xb8]
cmp byte [edx + 8], 0
je 0x4065fa
mov ecx, dword [edx]
mov eax, dword [edx + 4]
jmp 0x4065fe
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0xf
mov byte [ebp - 0x100], 0
cmp ecx, eax
je 0x40662c
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x100]
call fcn.00407880
or edi, 0x38
mov dword [ebp - 0xe4], edi
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.004055b0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xec]
cmp edx, 0x10
jb 0x406689
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40667f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40667f
call fcn.0042ef0f
push edx
push ecx
call fcn.00413bdb
add esp, 8
cmp dword [ebp - 0xc8], 0
jne 0x406712
mov ecx, dword [ebp - 0xb4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0xb8]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebp - 0x94]
cmovne edx, dword [ebp - 0xb8]
cmp byte [edx + 8], 0
je 0x4066cc
mov ecx, dword [edx]
mov eax, dword [edx + 4]
jmp 0x4066d0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
cmp ecx, eax
je 0x4066fe
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x120]
call fcn.00407880
lea eax, [ebp - 0x120]
or edi, 0x1c1
mov dword [ebp - 0xe0], eax
jmp 0x40672d
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00407750
mov dword [ebp - 0xe0], eax
or edi, 2
mov dword [ebp - 4], 0xe
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
or edi, 0x200
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x1c]
cmovae edx, ecx
mov dword [ebp - 0xf0], 0
add eax, edx
mov dword [ebp - 0xec], 0xf
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push ecx
push dword [ebp - 0xe0]
cmovae edx, ecx
mov byte [ebp - 0x100], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xe8], edi
push ecx
push eax
lea eax, [ebp - 0x100]
mov dword [ebp - 0xe4], edi
push eax
lea ecx, [ebp - 0x124]
call fcn.0040b1e0
mov edx, dword [ebp - 0x18]
add esp, 0x14
cmp edx, 0x10
jb 0x4067d3
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4067c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4067c9
call fcn.0042ef0f
push edx
push ecx
call fcn.00413bdb
add esp, 8
movups xmm0, xmmword [ebp - 0x100]
mov eax, dword [ebp - 0xe8]
and eax, 0xfffffdff
mov byte [ebp - 0x100], 0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0xf0]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 4], 0xc
test al, 2
je 0x406893
mov edx, dword [ebp - 0x128]
and eax, 0xfffffffd
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
cmp edx, 0x10
jb 0x406878
mov ecx, dword [ebp - 0x13c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406868
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406868
call fcn.0042ef0f
push edx
push ecx
call fcn.00413bdb
mov eax, dword [ebp - 0xe8]
add esp, 8
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0xf
mov byte [ebp - 0x13c], 0
mov dword [ebp - 4], 0xb
test al, 1
je 0x4068e8
mov edx, dword [ebp - 0x10c]
and eax, 0xfffffffe
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
cmp edx, 0x10
jb 0x4068e8
mov ecx, dword [ebp - 0x120]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4068de
call fcn.0042ef0f
push edx
push ecx
call fcn.00413bdb
add esp, 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40694a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406944
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x406944
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
inc eax
push eax
push ecx
push edx
call fcn.0042a8a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xc4]
mov byte [0x45a22c], 0
cmp edx, 0x10
jb 0x406990
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406986
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406986
call fcn.0042ef0f
push edx
push ecx
call fcn.00413bdb
add esp, 8
mov edi, dword [ebp - 0xe8]
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x406a09
mov ecx, dword [ebp - 0xb0]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x4069e1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4069e1
call fcn.0042ef0f
push ecx
push esi
call fcn.00413bdb
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0x88]
call fcn.00407420
mov ecx, dword [ebp - 0x80]
jmp 0x406500
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x406a80
mov ecx, dword [ebp - 0x68]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x406a61
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406a61
call fcn.0042ef0f
push ecx
push esi
call fcn.00413bdb
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 0xf
xor esi, esi
or edi, 0x400
mov dword [ebp - 0xf0], esi
push esi
mov dword [ebp - 0xec], 0xf
mov byte [ebp - 0x100], 0
mov dword [ebp - 0xe4], edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406b06
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x406b00
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x406b00
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406ad8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x100]
call fcn.00407880
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp - 0xf0]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0x100]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0xec], 0x10
mov dword [ebp - 0xe0], eax
cmovae edx, eax
cmp esi, dword [ebp - 0x1c]
jne 0x406b8e
sub esi, 4
jb 0x406b48
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x406b4d
add edx, 4
add ecx, 4
sub esi, 4
jae 0x406b37
cmp esi, 0xfffffffc
je 0x406b81
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x406b7a
cmp esi, 0xfffffffd
je 0x406b81
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x406b7a
cmp esi, 0xfffffffe
je 0x406b81
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x406b7a
cmp esi, 0xffffffff
je 0x406b81
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x406b81
sbb eax, eax
or eax, 1
jmp 0x406b83
xor eax, eax
mov byte [ebp - 0xd9], 1
test eax, eax
je 0x406b95
mov byte [ebp - 0xd9], 0
and edi, 0xfffffbff
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xe4], edi
cmp eax, 0x10
jb 0x406be2
mov edx, dword [ebp - 0xe0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x406bd8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406bd8
call fcn.0042ef0f
push ecx
push edx
call fcn.00413bdb
add esp, 8
cmp byte [ebp - 0xd9], 0
je 0x406c0b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
mov ecx, 0x457a44
push eax
call fcn.00407880
mov byte [0x45a22c], 0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x406c26
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x406c26
mov ecx, dword [ebp - 0x40]
xor edx, edx
call fcn.00404eb0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x406c4b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x406c4b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 0
and edi, 0xfffffffb
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4062c0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406c81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406c81
call fcn.0042ef0f
push edx
push ecx
call fcn.00413bdb
add esp, 8
jmp 0x4062c0