Function at 0x30003bf8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [edi + 0x50]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x10]
xor edx, edx
cmp ecx, esi
mov dword [ebp - 0x18], esi
jle 0x30003c4a
add eax, 0x18
test byte [eax + 0x70], 1
je 0x30003c37
cmp dword [eax], 7
jne 0x30003c43
inc edx
add eax, 0xd0
cmp edx, ecx
jl 0x30003c2c
jmp 0x30003c4a
mov dword [ebp - 0x18], 1
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x18], esi
jne 0x30003c5f
xor eax, eax
jmp 0x30004102
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30003cfa
movzx eax, word [0x30096378]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x30003cb1
cmp dword [ebp + 0x14], esi
je 0x30003cc0
push 8
push dword [ebp + 0xc]
call fcn.30050b60
mov ebx, eax
cmp ebx, esi
mov dword [0x30097124], esi
jne 0x3000410b
push dword [0x30097120]
call fcn.3003c26b
jmp 0x30003ce0
cmp dword [ebp + 0x14], esi
je 0x30003cc0
push dword [ebp + 0xc]
call fcn.30050b1b
mov ebx, eax
cmp ebx, esi
mov dword [0x30097124], esi
jne 0x3000410b
push dword [0x30097120]
call fcn.3003c1c3
mov dword [ebp - 8], 1
mov ebx, eax
cmp ebx, esi
jne 0x30003cec
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp ebx, esi
jne 0x3000410b
call fcn.3000292b
mov ebx, eax
cmp ebx, esi
jne 0x3000410b
cmp dword [ebp - 8], esi
je 0x30003d19
push dword [0x30097120]
call fcn.3003c26b
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push 0x72
push 0x64
pop edi
push edi
push dword [eax + 0x26]
call fcn.3003a5eb
test eax, eax
jne 0x30003d47
push dword [ebp - 0x14]
push 0x72
push edi
call fcn.300029f8
mov ebx, eax
cmp ebx, esi
jne 0x3000410b
mov eax, dword [ebp + 0xc]
push dword [eax + 0x1c6]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalSize]
call esi
lea ecx, [ebp - 0x14]
push ecx
add eax, 0x10
push eax
push 0x69
push edi
push dword [0x30097120]
call fcn.30039632
mov ebx, eax
test ebx, ebx
jne 0x30004109
push dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
push dword [ebx + 0x1c6]
call fcn.3003bbb3
push dword [ebx + 0xb6]
call esi
lea ecx, [ebp - 0x20]
push ecx
add eax, 0x10
push eax
push 0x6f
push edi
push dword [0x30097120]
call fcn.30039632
mov ebx, eax
test ebx, ebx
jne 0x30004109
push dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
push dword [eax + 0xb6]
call fcn.3003bbb3
mov esi, dword [ebp + 0x10]
push dword [esi + 0x50]
push 0x6c
push edi
call fcn.300029f8
mov ebx, eax
test ebx, ebx
jne 0x30004109
push dword [esi + 0x58]
push 0x6d
push edi
call fcn.300029f8
mov ebx, eax
test ebx, ebx
jne 0x30004109
lea eax, [ebp - 0xc]
push eax
push 0x6c
push edi
push dword [0x30097120]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30004109
lea eax, [ebp - 0x10]
push eax
push 0x6d
push edi
push dword [0x30097120]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30004109
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call esi
mov edi, eax
mov eax, dword [edi + 0x10]
dec eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], eax
js 0x3000407b
lea eax, [edi + eax*4 + 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov edx, ecx
imul edx, edx, 0xd0
lea esi, [edx + eax]
test byte [esi + 0x88], 1
mov dword [ebp + 0x14], ecx
je 0x30003e78
cmp dword [esi + 0x18], 7
jne 0x30003ef1
mov eax, dword [eax + 0x10]
sub eax, ecx
dec eax
imul eax, eax, 0xd0
test eax, eax
je 0x30003e9d
push eax
lea eax, [esi + 0xe4]
push eax
add esi, 0x14
push esi
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
mov eax, dword [ebp - 0x18]
dec dword [eax + 0x10]
mov eax, dword [edi + 0x10]
sub eax, dword [ebp - 8]
lea eax, [eax*4 - 4]
test eax, eax
je 0x30003ec6
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 4]
push ecx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
dec dword [edi + 0x10]
mov eax, dword [edi + 0x10]
xor edx, edx
test eax, eax
jle 0x3000406a
lea eax, [edi + 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x14]
jle 0x30003ee3
dec ecx
mov dword [eax], ecx
inc edx
add eax, 4
cmp edx, dword [edi + 0x10]
jl 0x30003ed9
jmp 0x3000406a
cmp dword [esi + 0x80], 0
jl 0x3000406a
and dword [ebp + 0x14], 0
cmp dword [esi + 0x84], 0
jle 0x3000406a
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi + 0x80]
add eax, dword [ebp + 0x14]
push eax
push dword [esi + 0x7c]
push dword [edi + 0x26]
call fcn.3003a5eb
mov ebx, eax
test ebx, ebx
jne 0x30004067
cmp dword [ebp - 4], eax
jne 0x30004036
mov eax, dword [esi + 0x18]
cmp eax, 6
jne 0x30003f5c
push dword [esi + 0x80]
push dword [esi + 0x7c]
push dword [edi + 0x26]
call fcn.3003298d
jmp 0x30003fde
cmp eax, 8
jne 0x30004036
mov eax, dword [esi + 0x7c]
sub eax, 0x6d
je 0x30003fe7
dec eax
jne 0x30004036
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x84]
push dword [esi + 0x80]
push 0x6e
push dword [edi + 0x26]
call fcn.30030988
test eax, eax
jne 0x30004036
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30003fc8
push dword [ebp - 0x1c]
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x30003fc2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [esi + 0x84]
push dword [esi + 0x80]
push 0x6e
push dword [edi + 0x26]
call fcn.30033a9d
mov dword [ebp - 4], 1
jmp 0x30004036
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30004036
movsx eax, word [esi + 0x90]
mov dword [ebp - 0x30], eax
movsx eax, word [esi + 0x92]
mov dword [ebp - 0x2c], eax
push dword [esi + 0x84]
lea eax, [ebp - 0x30]
push dword [esi + 0x80]
push eax
push 0x6d
push dword [edi + 0x26]
call fcn.3005f2ea
test eax, eax
jne 0x30004030
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esi + 0x80]
push dword [ebp - 0x24]
add eax, dword [ebp + 0x14]
push eax
push dword [esi + 0x7c]
call fcn.300029f8
mov ebx, eax
test ebx, ebx
jne 0x30004109
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0x84]
jl 0x30003f0f
mov edi, dword [ebp - 0x28]
dec dword [ebp - 8]
sub dword [ebp + 0x10], 4
cmp dword [ebp - 8], 0
jge 0x30003e53
mov eax, dword [ebp - 0x18]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [eax + 0x10]
call esi
push dword [ebp - 0x10]
call esi
test ebx, ebx
jne 0x30004109
mov eax, edi
imul eax, eax, 0xd0
add eax, 0x14
push eax
push dword [ebp - 0xc]
call fcn.3003978a
lea eax, [edi*4 + 0x14]
push eax
push dword [ebp - 0x10]
call fcn.3003978a
push dword [0x300967d0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30004100
cmp dword [ebp - 4], ebx
jne 0x300040d4
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 2
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
movzx eax, word [0x30096378]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x300040fa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
xor esi, esi
push esi
push dword [0x30097120]
call fcn.3003c2cb
jmp 0x30004100