Function at 0x485270
Capabilities:
Open clipboard
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 0x497073
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x4be034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov byte [ebp - 0x45], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x485576
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00412b59
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x48535a
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x485326
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48531c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485597
push edx
push ecx
call fcn.004272b3
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x48538e
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x485384
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485597
push edx
push ecx
call fcn.004272b3
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
cmp ecx, 0x10
jae 0x4853cd
movups xmm0, xmmword [eax]
mov edi, 0xf
movups xmmword [esi], xmm0
jmp 0x485436
mov edi, ecx
mov eax, SysReAllocString
or edi, 0xf
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x48540d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x48559c
push ecx
call fcn.004272e4
add esp, 4
test eax, eax
je 0x4855a1
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x485420
test eax, eax
je 0x48541e
push eax
call fcn.004272e4
add esp, 4
mov ecx, eax
jmp 0x485420
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [esi], ecx
push eax
push dword [ebp - 0x50]
push ecx
call fcn.00428c80
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0x44]
mov dword [esi + 0x14], edi
call fcn.004117c8
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4854b8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x485484
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48547a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4855a1
push edx
push ecx
call fcn.004272b3
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4854ec
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4854e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4855a1
push edx
push ecx
call fcn.004272b3
add esp, 8
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 0x485540
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x485526
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.00428c80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov byte [ebp - 0x45], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x485576
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48556c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4855a6
push edx
push ecx
call fcn.004272b3
add esp, 8
mov al, byte [ebp - 0x45]
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.004272a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004324bf
call fcn.004021c5
call fcn.004324bf
call fcn.004324bf
int3