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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2d2943
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x2ec068]
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.0029ae60
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 0x297197
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x297191
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x297191
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xe0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x297173
sub ecx, dword [ebp - 0xe0]
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0029a020
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [0x2eca58], 0x10
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov ecx, 0x2eca44
cmovae ecx, dword [0x2eca44]
cmp dword [ebp - 0x18], 0x10
cmovae edx, dword [ebp - 0x2c]
cmp esi, dword [0x2eca54]
jne 0x297219
sub esi, 4
jb 0x2971d6
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x2971db
add edx, 4
add ecx, 4
sub esi, 4
jae 0x2971c5
cmp esi, 0xfffffffc
je 0x29720f
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x297208
cmp esi, 0xfffffffd
je 0x29720f
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x297208
cmp esi, 0xfffffffe
je 0x29720f
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x297208
cmp esi, 0xffffffff
je 0x29720f
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x29720f
sbb eax, eax
or eax, 1
jmp 0x297211
xor eax, eax
test eax, eax
je 0x297a8b
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.002a4d23
add esp, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0029a510
mov byte [ebp - 4], 4
mov esi, 0x2ef568
mov ecx, dword [0x2ef57c]
mov edx, 0x2ef568
push dword [ebp - 0xe0]
mov eax, dword [0x2ef578]
cmp ecx, 0x10
push ecx
cmovae esi, dword [0x2ef568]
lea ecx, [ebp - 0x40]
cmovae edx, dword [0x2ef568]
add eax, esi
push eax
push edx
call fcn.0029c490
push 0x48
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.002be930
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.0029b350
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 0x29785c
push 0x38
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.002be930
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.00298420
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 [0x2ef4f8], 0
jne 0x2973e3
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x2973e3
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.00296240
test al, al
jne 0x297404
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00296f30
add esp, 4
mov byte [0x2ef4f8], 1
jmp 0x2977d6
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 0x29743a
mov ecx, dword [edx]
mov eax, dword [edx + 4]
jmp 0x29743e
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 0x29746c
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x100]
call fcn.0029a020
or edi, 0x38
mov dword [ebp - 0xe4], edi
lea edx, [ebp - 0x100]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.00296320
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xec]
cmp edx, 0x10
jb 0x2974c9
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x2974bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x2974bf
call fcn.002c243f
push edx
push ecx
call fcn.002a70f2
add esp, 8
cmp dword [ebp - 0xc8], 0
jne 0x297552
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 0x29750c
mov ecx, dword [edx]
mov eax, dword [edx + 4]
jmp 0x297510
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 0x29753e
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x120]
call fcn.0029a020
lea eax, [ebp - 0x120]
or edi, 0x1c1
mov dword [ebp - 0xe0], eax
jmp 0x29756d
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00298d70
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.0029e510
mov edx, dword [ebp - 0x18]
add esp, 0x14
cmp edx, 0x10
jb 0x297613
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x297609
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x297609
call fcn.002c243f
push edx
push ecx
call fcn.002a70f2
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 0x2976d3
mov edx, dword [ebp - 0x128]
and eax, 0xfffffffd
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
cmp edx, 0x10
jb 0x2976b8
mov ecx, dword [ebp - 0x13c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x2976a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x2976a8
call fcn.002c243f
push edx
push ecx
call fcn.002a70f2
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 0x297728
mov edx, dword [ebp - 0x10c]
and eax, 0xfffffffe
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
cmp edx, 0x10
jb 0x297728
mov ecx, dword [ebp - 0x120]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x29771e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x29771e
call fcn.002c243f
push edx
push ecx
call fcn.002a70f2
add esp, 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x29778a
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 0x297784
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x297784
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.002bddc0
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 [0x2ef4f8], 0
cmp edx, 0x10
jb 0x2977d0
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x2977c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x2977c6
call fcn.002c243f
push edx
push ecx
call fcn.002a70f2
add esp, 8
mov edi, dword [ebp - 0xe8]
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x297849
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 0x297821
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x297821
call fcn.002c243f
push ecx
push esi
call fcn.002a70f2
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0x88]
call fcn.002988a0
mov ecx, dword [ebp - 0x80]
jmp 0x297340
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x2978c0
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 0x2978a1
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x2978a1
call fcn.002c243f
push ecx
push esi
call fcn.002a70f2
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 0x297946
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x297940
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x297940
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x297918
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x100]
call fcn.0029a020
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 0x2979ce
sub esi, 4
jb 0x297988
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x29798d
add edx, 4
add ecx, 4
sub esi, 4
jae 0x297977
cmp esi, 0xfffffffc
je 0x2979c1
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x2979ba
cmp esi, 0xfffffffd
je 0x2979c1
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x2979ba
cmp esi, 0xfffffffe
je 0x2979c1
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x2979ba
cmp esi, 0xffffffff
je 0x2979c1
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x2979c1
sbb eax, eax
or eax, 1
jmp 0x2979c3
xor eax, eax
mov byte [ebp - 0xd9], 1
test eax, eax
je 0x2979d5
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 0x297a22
mov edx, dword [ebp - 0xe0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x297a18
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x297a18
call fcn.002c243f
push ecx
push edx
call fcn.002a70f2
add esp, 8
cmp byte [ebp - 0xd9], 0
je 0x297a4b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
mov ecx, 0x2eca44
push eax
call fcn.0029a020
mov byte [0x2ef4f8], 0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x297a66
or eax, 0xffffffff
lock xadd dword [ecx + 0x20], eax
jne 0x297a66
mov ecx, dword [ebp - 0x40]
xor edx, edx
call fcn.00295c20
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x297a8b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x297a8b
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 0x297100
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x297ac1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x297ac1
call fcn.002c243f
push edx
push ecx
call fcn.002a70f2
add esp, 8
jmp 0x297100