Function at 0x4aeca0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543658
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x59dbf0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_GetClipboardSequenceNumber]
cmp dword [esi + 8], eax
je 0x4aeec2
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0x200
call edi
test eax, eax
jne 0x4aeec2
push 0xd
call edi
test eax, eax
push 1
setne bl
call edi
test eax, eax
setne al
mov byte [ebp - 0xd], al
test bl, bl
jne 0x4aed52
test al, al
jne 0x4aed52
mov ebx, dword [esi + 0xc]
mov eax, dword [0x59eaec]
cmp ebx, eax
je 0x4aeec2
mov ecx, eax
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x4aed41
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x10], 0
jne 0x4aed41
lea ecx, [esi + 0xc]
call fcn.0040202b
test ebx, ebx
je 0x4aeec2
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x4aeebf
mov eax, dword [0x59e6f4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4aed87
mov ecx, dword [eax + 8]
add eax, 8
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 4]
mov al, byte [ecx + eax + 0x18]
test al, al
jne 0x4aed87
lea ecx, [ebp - 0x14]
call fcn.004afea0
mov edi, dword [0x59e5e4]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [eax]
test eax, eax
je 0x4aedab
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
call dword [eax + 0x64]
jmp 0x4aedb0
mov eax, 0x59e524
mov eax, dword [eax]
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x4aedc0
xor eax, eax
jmp 0x4aedc5
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
js 0x4aeea4
cmp byte [ebp - 0xd], 0
mov eax, 0xd
mov ebx, 1
cmovne ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4aee89
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp ebx, 0xd
jne 0x4aee3f
test eax, eax
je 0x4aee89
push eax
lea ecx, [ebp - 0x24]
call fcn.0040301a
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004aeb30
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004ae4f0
mov byte [ebp - 4], 1
jmp 0x4aee6e
test eax, eax
je 0x4aee89
push eax
lea ecx, [ebp - 0x24]
call fcn.004091d4
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.004aeb30
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004ae4f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004ae2c0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004017bb
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x14]
lea ecx, [esi + 0xc]
push eax
call fcn.004ad460
call dword [sym.imp.USER32.dll_GetClipboardSequenceNumber]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4aeec2
mov ecx, dword [eax + 8]
add eax, 8
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
test ecx, ecx
je 0x4aeee2
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi]
cmp byte [ecx + 0x10], 0
jne 0x4aeee2
mov ecx, esi
call fcn.0040202b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4