Function at 0x3006f946
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.30047fcd
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x3006fb96
push esi
push edi
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
jne 0x3006f9e6
movzx eax, word [0x30096818]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, ebx
je 0x3006f9e6
push edi
call esi
push dword [ebp - 0x18]
mov ebx, eax
call esi
mov ecx, dword [ebx + 0x48]
cmp ecx, dword [eax + 0x1e0]
je 0x3006f9c6
mov dword [ebp - 0xc], 1
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
push edi
call ebx
cmp dword [ebp - 0xc], 0
je 0x3006f9dc
xor edi, edi
and dword [ebp - 0xc], 0
test edi, edi
jne 0x3006f9fd
xor ebx, ebx
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, ebx
je 0x3006fa26
mov dword [ebp - 0x14], 1
jmp 0x3006fa07
movzx eax, word [0x30096818]
mov dword [ebp - 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
call ebx
cmp eax, 0x7d00
jbe 0x3006fab6
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x2714
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x3006fb94
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x3006fb39
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x10], eax
call fcn.30067a6d
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x3006fb78
push ebx
call esi
push dword [ebp - 0x10]
mov ebx, eax
call esi
xor edi, edi
cmp dword [ebp - 8], edi
mov esi, eax
jne 0x3006fa93
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x3006fa93
mov eax, dword [ebp + 8]
cmp eax, 0xa
jle 0x3006fa93
mov dword [ebp - 8], eax
xor edx, edx
cmp dword [ebp - 8], edx
jle 0x3006fb27
mov al, byte [edx + ebx]
movsx ecx, al
sub ecx, 9
je 0x3006fb18
dec ecx
je 0x3006fb1d
sub ecx, 3
je 0x3006fb13
mov byte [edi + esi], al
jmp 0x3006fb1c
push edi
call ebx
cmp dword [ebp - 0x14], 1
mov dword [ebp + 8], eax
jne 0x3006fad2
mov eax, 0x4e20
cmp dword [ebp + 8], eax
jle 0x3006fad2
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
push dword [ebp + 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x3006fa1f
push edi
call esi
push dword [ebp - 4]
mov ebx, eax
call esi
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
push dword [ebp - 4]
call edi
jmp 0x3006fa26
mov dword [ebp - 8], edx
jmp 0x3006fb1d
mov byte [edi + esi], 0x20
inc edi
inc edx
cmp edx, dword [ebp - 8]
jl 0x3006fa9e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
jg 0x3006fb5b
or edi, 0xffffffff
jmp 0x3006fb57
cmp ax, word [0x30096818]
jne 0x3006fb51
xor edi, edi
and dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x10], ebx
call esi
mov esi, eax
jmp 0x3006fb57
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
test edi, edi
jl 0x3006fb6f
push 0
push 0xa03
push edi
push esi
push dword [ebp + 0xc]
call fcn.3006eceb
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x3006fb89
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x10], 0
je 0x3006fb94
push dword [ebp - 0x10]
call esi
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8