Function at 0x4af8c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543838
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 edi, ecx
cmp byte [edi + 0x11], 0
je 0x4af909
mov eax, 1
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
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0xc]
mov byte [edi + 0x11], 1
mov esi, dword [ecx]
mov eax, dword [ebx]
cmp esi, eax
je 0x4af92d
mov dword [ecx], eax
call fcn.00402104
test esi, esi
je 0x4af92d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp dword [ebx], 0
jne 0x4af948
xor eax, eax
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
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004ad5b0
add esp, 8
cmp dword [ebp + 8], 0
mov esi, dword [0x59e5e4]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
je 0x4afb27
call dword [eax]
test eax, eax
je 0x4af983
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 0x64]
jmp 0x4af988
mov eax, 0x59e524
mov eax, dword [eax]
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x4af998
xor eax, eax
jmp 0x4af99d
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
js 0x4afbb5
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
js 0x4afba6
mov ecx, dword [ebp + 8]
call fcn.0040151c
lea eax, [eax*2 + 2]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor eax, eax
test ebx, ebx
mov esi, 0x80004005
cmovne esi, eax
test esi, esi
js 0x4afa7b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
test eax, eax
mov esi, 0x80004005
cmovne esi, ecx
mov dword [ebp - 0x14], eax
test esi, esi
js 0x4afa7b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004b0020
push dword [ebp - 0x10]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040150a
push eax
push dword [ebp - 0x14]
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004017bb
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov ecx, dword [ebp + 8]
call fcn.0040151c
inc eax
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor ecx, ecx
test ebx, ebx
mov eax, 0x80004005
cmovne eax, ecx
test eax, eax
js 0x4afb14
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov dword [ebp - 0x10], ecx
test eax, eax
js 0x4afb14
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004092a0
push dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00410a40
push eax
push dword [ebp - 0x10]
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004092e1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
test esi, esi
jne 0x4afb20
test eax, eax
je 0x4afba6
mov esi, 0x80004005
jmp 0x4afba6
call dword [eax]
test eax, eax
je 0x4afb38
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 0x64]
jmp 0x4afb3d
mov eax, 0x59e524
mov eax, dword [eax]
mov ecx, dword [eax + 0x80]
test ecx, ecx
jne 0x4afb4d
xor eax, eax
jmp 0x4afb52
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
js 0x4afbb5
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
js 0x4afba6
push 0
push 0x200
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
call dword [sym.imp.USER32.dll_CloseClipboard]
call dword [sym.imp.USER32.dll_GetClipboardSequenceNumber]
mov dword [edi + 8], eax
mov ecx, dword [ebp + 8]
mov byte [edi + 0x11], 0
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4afbd7
mov edx, dword [ecx + 8]
add ecx, 8
mov edx, dword [edx + 4]
add ecx, edx
mov edx, dword [ecx]
call dword [edx + 0xc]
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