Function at 0x40a2c856
Capabilities:
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
call fcn.40a24a94
test eax, eax
jne 0x40a2c870
push 0x12
pop eax
jmp 0x40a2ca7b
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call fcn.40a22ed3
test eax, eax
je 0x40a2c88d
push edi
push dword [ebp + 0xc]
call fcn.40a22ed3
test eax, eax
jne 0x40a2c895
push 0x10
pop eax
jmp 0x40a2ca7a
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
inc ebx
push ebx
push esi
call fcn.40a22ed3
test eax, eax
je 0x40a2c8b5
push edi
push dword [ebp + 0x14]
call fcn.40a22ed3
test eax, eax
jne 0x40a2c8bc
push 0x10
jmp 0x40a2ca10
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x40a2c8cb
push 0x1d
jmp 0x40a2ca10
mov dword [esi], edi
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
or edi, 0xffffffff
push edi
push 0x40a21d4c
push edi
push dword [ebp + 8]
push ebx
push 0x7f
call esi
test eax, eax
je 0x40a2c97f
cmp eax, 2
jne 0x40a2c96b
cmp dword [ebp + 0x1c], 0
jne 0x40a2c8ff
push 0xe
jmp 0x40a2ca10
cmp dword [ebp + 0x1c], 2
mov edi, dword [ebp + 0x20]
jne 0x40a2c920
cmp di, 3
je 0x40a2c920
cmp di, 8
je 0x40a2c920
cmp di, 2
je 0x40a2c920
cmp di, 0xe
jne 0x40a2c946
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 3
call esi
test eax, eax
jne 0x40a2c94d
push 8
call esi
test eax, eax
jne 0x40a2c94d
push 2
call esi
test eax, eax
jne 0x40a2c94d
push 0xe
call esi
test eax, eax
jne 0x40a2c94d
push 0xc
jmp 0x40a2ca10
push 3
push 0
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.40a2aece
jmp 0x40a2ca78
push edi
push 0x40a21d3c
push edi
push dword [ebp + 8]
push ebx
push 0x7f
call esi
cmp eax, 2
je 0x40a2c986
push 0xf
jmp 0x40a2ca10
movzx eax, word [0x40a33038]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40a2c9b6
push 2
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.40a2b3f8
jmp 0x40a2ca78
movzx eax, word [0x40a33024]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [0x40a33d38], eax
test eax, eax
je 0x40a2ca0e
mov esi, dword [sym.imp.USER32.dll_EnumClipboardFormats]
push 0
jmp 0x40a2c9e4
cmp ax, word [0x40a33024]
je 0x40a2c9fb
movzx eax, ax
push eax
call esi
movzx eax, ax
cmp ax, word [0x40a33030]
jne 0x40a2c9d7
mov dword [ebp - 4], 2
jmp 0x40a2c9fe
mov dword [ebp - 4], ebx
push dword [0x40a33d38]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40a2ca13
push 0xb
pop eax
jmp 0x40a2ca78
push eax
call fcn.40a2b0bc
push dword [0x40a33d38]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
cmp ebx, edi
jne 0x40a2ca4a
call sym.OLECLI32.dll_DefCreateFromClip
jmp 0x40a2ca71
mov esi, ebx
imul esi, esi, 0x2c
mov edi, dword [esi + 0x40a33408]
call dword [esi + 0x40a33410]
cmp eax, 1
jle 0x40a2ca69
dec edi
mov dword [esi + 0x40a33408], edi
jmp 0x40a2ca71
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mov dword [ecx + 0x20], ebx
and dword [0x40a33d38], 0
pop esi
pop ebx
pop edi
leave
ret 0x1c