Function at 0x30071586
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 4
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x300717f2
push ebx
push esi
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30071613
movzx eax, word [0x3009636c]
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push eax
call esi
test eax, eax
jne 0x30071604
movzx eax, word [0x30096370]
push eax
call esi
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x30071604
movzx eax, word [0x30096378]
push eax
call esi
test eax, eax
jne 0x30071604
movzx eax, word [0x30096374]
push eax
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
je 0x3007160b
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x30071616
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
call ebx
mov esi, eax
cmp dword [esi + 0x32], edi
jne 0x3007164a
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xc8
push dword [esi + 0x1d6]
push dword [ebp + 8]
call fcn.30028208
mov edi, eax
test edi, edi
jne 0x300717d6
mov eax, dword [ebp + 0xc]
sub eax, 0xc9
je 0x300717cc
dec eax
je 0x3007170c
dec eax
je 0x300716a8
dec eax
je 0x3007168e
dec eax
je 0x3007167e
sub eax, 6
jne 0x300717d6
push dword [ebp + 8]
call fcn.300711b0
jmp 0x300717d6
push dword [0x30097120]
push dword [ebp + 8]
call fcn.30004f5d
jmp 0x30071705
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 1
push esi
call fcn.3005097d
test eax, eax
je 0x300717d6
cmp dword [ebp - 4], 0
je 0x300716b8
push 8
push esi
call fcn.30050b60
jmp 0x300716be
push esi
call fcn.30050b1b
mov edi, eax
test edi, edi
jne 0x300717d6
cmp dword [ebp - 8], eax
je 0x300716d6
movzx ecx, word [0x30096370]
jmp 0x300716e2
cmp dword [ebp - 0xc], eax
je 0x300716ea
movzx ecx, word [0x30096374]
mov dword [0x30097124], ecx
jmp 0x300716ef
mov dword [0x30097124], eax
push eax
xor eax, eax
cmp dword [ebp + 0xc], 0xcc
sete al
push eax
push dword [ebp + 8]
call fcn.3000334e
mov edi, eax
jmp 0x300717d6
cmp dword [ebp - 4], 0
je 0x30071716
push 7
jmp 0x30071718
push 0xa
push esi
call fcn.30050b60
mov edi, eax
test edi, edi
jne 0x300717d6
cmp dword [ebp - 8], eax
je 0x30071736
movzx ecx, word [0x30096370]
jmp 0x30071742
cmp dword [ebp - 0xc], eax
je 0x3007174a
movzx ecx, word [0x30096374]
mov dword [0x30097124], ecx
jmp 0x3007174f
mov dword [0x30097124], eax
push eax
push eax
push dword [ebp + 8]
call fcn.3000334e
mov edi, eax
test edi, edi
jne 0x300717d6
push dword [ebp + 8]
call fcn.300041f7
push dword [esi + 0x1d6]
call ebx
mov ebx, eax
cmp dword [ebx + 0x60], edi
je 0x300717ad
push dword [esi + 0x1d6]
call fcn.300396fe
mov edi, eax
test edi, edi
jne 0x300717ad
push dword [ebx + 0x50]
call fcn.300396fe
mov edi, eax
test edi, edi
jne 0x300717ad
push dword [ebx + 0x58]
call fcn.300396fe
mov edi, eax
test edi, edi
jne 0x300717ad
push 1
push ebx
call fcn.300278cf
mov edi, eax
push dword [esi + 0x1d6]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
jne 0x300717d6
push edi
push edi
push dword [ebp + 8]
call fcn.30005e9d
jmp 0x30071705
push 1
push dword [ebp + 8]
call fcn.30001faf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp edi, 0xfffffffb
pop esi
pop ebx
jne 0x300717e8
xor edi, edi
test edi, edi
je 0x300717f2
push edi
call fcn.30050c7b
pop edi
leave
ret 8