Function at 0x4ebaf0
Capabilities:
Open clipboard

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 0x5a6057
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
sub esp, 0xf8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x31], 0
mov byte [ebp - 4], 1
mov esi, dword [ecx + 4]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ec40c
mov byte [ebp - 0x31], 1
call dword [sym.imp.USER32.dll_EmptyClipboard]
xor eax, eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x2b4]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ecx
cmp ecx, eax
jae 0x4ebc47
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax + 0x114]
call eax
test al, al
je 0x4ebc38
mov ecx, dword [ebp - 0x20]
push 0x18
mov eax, dword [ecx + 0x2b4]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
mov eax, dword [eax]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x38], eax
call fcn.00592716
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x38]
lea edi, [ecx + 4]
mov dword [edi], 0
mov dword [ebp - 0x3c], ecx
mov dword [ecx], 0x5cd158
mov edx, dword [eax]
mov dword [ecx + 8], edx
mov eax, dword [eax + 4]
mov dword [ecx + 0xc], eax
test edx, edx
je 0x4ebbf4
lock inc dword [edx + 4]
mov dword [ecx], 0x5cd230
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
lock inc dword [edi]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ecx + 0x10], esi
mov dword [ebp - 0x68], eax
mov dword [ecx + 0x14], 0
test esi, esi
jne 0x4ebc25
lea esi, [ebp - 0x70]
jmp 0x4ebc28
add esi, 0x14
mov dword [esi], ecx
mov esi, ecx
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
inc ecx
mov eax, dword [ebp - 0x28]
jmp 0x4ebb89
mov eax, dword [edx + 0x2b4]
add eax, 0x24
mov dword [ebp - 0x54], 0x5c7574
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 0x40]
push 0x609f88
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.004a3c60
mov esi, edi
mov dword [ebp - 0x1c], esi
test edi, edi
je 0x4ebc99
lock inc dword [edi + 4]
nop dword [eax]
test esi, esi
je 0x4ebf01
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xcc], eax
test ecx, ecx
je 0x4ebcc8
lock inc dword [ecx + 4]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x24]
push 0x609f88
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
push 4
push ecx
lea ecx, [ebp - 0x54]
call dword [eax]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0xfc], 0x5c77bc
mov dword [ebp - 0xf8], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebd04
sub ecx, edx
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0xfc]
call fcn.00408c70
mov ecx, eax
mov dword [ebp - 0x20], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebd26
mov eax, dword [ebp - 0x54]
sub ecx, edx
push 0x609f88
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push 4
push ecx
lea ecx, [ebp - 0x54]
call dword [eax]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
push 0x609f88
push dword [ebp - 0x38]
push dword [ebp - 0x20]
call dword [eax]
xor eax, eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0xbc]
jae 0x4ebe9f
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
test eax, eax
je 0x4ebd99
mov ecx, dword [eax + 8]
lea edx, [eax + 8]
cmp ecx, dword [ebp - 0x20]
jae 0x4ebd85
mov eax, dword [eax + 0x18]
jmp 0x4ebd8a
jbe 0x4ebd90
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4ebd75
jmp 0x4ebd99
test edx, edx
je 0x4ebd99
add edx, 4
jne 0x4ebd9f
mov edx, dword [ebp - 0x30]
add edx, 0x1c
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x28]
push 0x609f88
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
push 4
push ecx
lea ecx, [ebp - 0x54]
call dword [eax]
xor eax, eax
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0xc0]
jae 0x4ebe96
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
test eax, eax
je 0x4ebe06
nop dword [eax + eax]
mov ecx, dword [eax + 8]
lea edx, [eax + 8]
cmp ecx, dword [ebp - 0x20]
jae 0x4ebdf0
mov eax, dword [eax + 0x18]
jmp 0x4ebdf5
jbe 0x4ebdfb
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4ebde0
jmp 0x4ebe06
test edx, edx
je 0x4ebe06
lea eax, [edx + 4]
test eax, eax
jne 0x4ebe0c
mov eax, dword [ebp - 0x30]
add eax, 0x1c
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax]
lea ecx, [ecx + ecx*2]
mov ecx, dword [eax + ecx*8 + 4]
mov dword [ebp - 0x108], 0x5c77bc
mov dword [ebp - 0x104], ecx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebe30
sub ecx, edx
mov dword [ebp - 0x100], ecx
lea ecx, [ebp - 0x108]
call fcn.00408c70
mov ecx, eax
mov dword [ebp - 0x44], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ebe52
mov eax, dword [ebp - 0x54]
sub ecx, edx
push 0x609f88
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push 4
push ecx
lea ecx, [ebp - 0x54]
call dword [eax]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
push 0x609f88
push dword [ebp - 0xc4]
push dword [ebp - 0x44]
call dword [eax]
mov eax, dword [ebp - 0x38]
inc eax
jmp 0x4ebdc0
mov eax, dword [ebp - 0x20]
inc eax
jmp 0x4ebd5d
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], 0
test ecx, ecx
je 0x4ebecb
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ebecb
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 8]
call eax
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4ebee4
lock inc dword [esi + 4]
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ebca0
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4ebca0
mov byte [ebp - 4], 3
test esi, esi
je 0x4ebf1c
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
dec eax
jne 0x4ebf1c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x61609c]
test eax, eax
jne 0x4ebf4d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.9E67E09D_115C_43d1_8359_6A4B0C1DAFE4
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x4ec411
mov dword [0x61609c], eax
mov edx, dword [ebp - 0x1c]
mov ecx, eax
push esi
call fcn.0055aca6
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
push 0
mov dword [ebp - 0x4c], 0
call fcn.0041e960
cmp dword [ebp - 0x40], 1
mov dword [ebp - 0xb8], 0x5b57a8
seta byte [ebp - 0x32]
mov dword [ebp - 0xb4], 0x5b57c4
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0x88], 0x5b57a8
mov dword [ebp - 0x84], 0x5b57c4
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0xf0], 0x5b57a8
mov dword [ebp - 0xec], 0x5b57c4
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xdc], 0
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x44], edi
test edi, edi
je 0x4ec026
lock inc dword [edi + 4]
test edi, edi
je 0x4ec204
mov esi, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xd4], eax
test esi, esi
je 0x4ec04b
lock inc dword [esi + 4]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.00537406
cmp byte [ebp - 0x32], 0
je 0x4ec0ba
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
mov eax, dword [eax + 4]
call eax
xor edx, edx
mov cl, byte [eax]
test cl, cl
je 0x4ec0ba
nop dword [eax]
cmp cl, 0xa
je 0x4ec095
cmp cl, 0xd
je 0x4ec095
mov cl, byte [eax + 1]
inc eax
inc edx
test cl, cl
jne 0x4ec080
jmp 0x4ec0ba
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
push edx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
push 0xffffffffffffffff
push str.__..._
call dword [eax]
cmp byte [ebp - 0x21], 0
je 0x4ec0c6
mov byte [ebp - 0x21], 0
jmp 0x4ec0db
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb8]
push 2
push 0x5bec18
call dword [eax]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
push dword [eax + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.00537db4
mov byte [ebp - 4], 0xc
mov edx, dword [eax + 4]
mov ecx, edx
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ec108
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0xf0]
call dword [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push dword [ebp - 0x50]
call dword [0x5b46d4]
mov eax, dword [ebp - 0xb8]
add esp, 4
mov edx, dword [ebp - 0xec]
mov ecx, edx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ec146
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0xb8]
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb8]
push 3
push 0x5b5874
call dword [eax]
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x84]
mov ecx, edx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ec190
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0xb8]
call dword [ebp - 0x2c]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd8], 0
test esi, esi
je 0x4ec1d0
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
dec eax
jne 0x4ec1d0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
mov esi, edi
mov eax, dword [eax + 8]
call eax
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
je 0x4ec1e8
lock inc dword [edi + 4]
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
dec eax
jne 0x4ec026
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x4ec026
mov eax, dword [ebp - 0xb4]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], esi
or edx, 0xffffffff
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.0058f330
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4ec23e
push eax
lea ecx, [ebp - 0x64]
call fcn.004103b0
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x60], esi
mov edx, dword [ebp - 0x1c]
mov ecx, edi
call fcn.0058f120
mov edx, 0x5b5d98
mov byte [ebp - 4], 0xe
test esi, esi
mov ecx, edx
cmovne ecx, edi
xor eax, eax
nop word [eax + eax]
cmp word [ecx + eax*2], 0
je 0x4ec270
inc eax
cmp eax, 0xffffffff
jb 0x4ec260
or eax, 0xffffffff
test esi, esi
lea eax, [eax*2 + 2]
push eax
cmovne edx, edi
mov ecx, 0xd
call fcn.0055aca6
add esp, 4
mov byte [ebp - 4], 0xf
test esi, esi
je 0x4ec2a3
push 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], 0
call fcn.004103b0
push dword [ebp - 0xe4]
mov esi, dword [0x5b46d4]
call esi
add esp, 4
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
push dword [ebp - 0x7c]
call esi
add esp, 4
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
push dword [ebp - 0xac]
call esi
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.00483780
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054c6d1
call fcn.0054c6d1
int3