Function at 0x10002960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x124], eax
movups xmm0, xmmword [str.not_a_sc68_file__no_magic_]
mov ax, word [0x10074fcc]
push ebx
push ebp
push esi
mov ebx, ecx
mov word [esp + 0x28], ax
mov al, byte [0x10074fce]
mov byte [esp + 0x2a], al
movups xmmword [esp + 0x10], xmm0
push edi
movq xmm0, qword [0x10074fc4]
mov edi, edx
movq qword [esp + 0x24], xmm0
test ebx, ebx
je 0x10002c0a
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10002c0a
push 8
lea ecx, [esp + 0x34]
push ecx
push ebx
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jle 0x100029fc
test edi, edi
je 0x100029fc
mov ecx, dword [edi]
lea edx, [esp + 0x30]
mov esi, ebp
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
sub esi, 1
jne 0x100029e0
mov dword [edi], ecx
cmp ebp, 8
jne 0x10002c0a
lea ecx, [esp + 0x30]
mov eax, dword [ecx]
cmp eax, dword [str.SC68_Music_file____c___BeN_jamin_Gerard___SasHipA_Dev]
jne 0x10002a67
mov eax, dword [ecx + 4]
cmp eax, dword [0x1003fe34]
jne 0x10002a67
push edi
push 0x38
mov edx, ecx
mov ecx, ebx
push ebp
call fcn.100028d0
add esp, 0xc
test eax, eax
je 0x10002c0a
lea ecx, [esp + 0x30]
mov edx, str.SC68_Music_file____c___BeN_jamin_Gerard___SasHipA_Dev
lea esi, [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002a55
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002a42
jmp 0x10002ab9
lea eax, [esp + 0x14]
push eax
call fcn.10004ba0
add esp, 4
jmp 0x10002c0d
lea ecx, [esp + 0x30]
mov edx, str.SC68_M2
mov esi, 4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002a8a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002a75
xor eax, eax
jmp 0x10002ab1
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10002aac
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10002aac
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10002aac
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10002aac
xor eax, eax
jmp 0x10002ab1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10002b8f
lea eax, [ebx + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10002b80
push 4
lea ecx, [esp + 0x34]
push ecx
push ebx
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jle 0x10002b01
test edi, edi
je 0x10002b01
mov ecx, dword [edi]
lea edx, [esp + 0x30]
mov esi, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
sub esi, 1
jne 0x10002ae5
mov dword [edi], ecx
cmp ebp, 4
jne 0x10002b80
lea eax, [esp + 0x30]
cmp dword [eax], 0x38364353
jne 0x10002b80
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10002b6e
push ebp
lea ecx, [esp + 0x34]
push ecx
push ebx
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jle 0x10002b53
test edi, edi
je 0x10002b53
mov ecx, dword [edi]
lea edx, [esp + 0x30]
mov esi, ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
sub esi, 1
jne 0x10002b37
mov dword [edi], ecx
cmp ebx, 4
jne 0x10002b6e
lea ecx, [esp + 0x30]
call fcn.10002400
cmp eax, 8
jle 0x10002b6e
add eax, 0xfffffff8
jmp 0x10002c0d
push str.file68:_not_sc68_file____weird_base_chunk_size
call fcn.10004ba0
add esp, 4
jmp 0x10002c0d
push str.file68:_not_sc68_file____missing_base_chunk
call fcn.10004ba0
add esp, 4
jmp 0x10002c0d
push edi
push 0x20
push 8
lea edx, [esp + 0x3c]
mov ecx, ebx
call fcn.100028d0
add esp, 0xc
test eax, eax
je 0x10002c0a
mov dl, byte [esp + 0x30]
mov al, byte [esp + 0x32]
mov cl, byte [esp + 0x31]
cmp dl, 0x1f
jne 0x10002bc7
cmp cl, 0x8b
jne 0x10002bc7
cmp al, 8
jne 0x10002bc7
mov eax, 0x98859690
jmp 0x10002c0d
cmp dl, 0x49
jne 0x10002be8
or cl, 0x20
cmp cl, 0x63
jne 0x10002be8
or al, 0x20
cmp al, 0x65
jne 0x10002be8
cmp byte [esp + 0x33], 0x21
jne 0x10002be8
mov eax, 0x969c9adf
jmp 0x10002c0d
push 0
mov edx, 0x20
lea ecx, [esp + 0x34]
call fcn.10002770
add esp, 4
test eax, eax
je 0x10002a55
mov eax, 0xacb1bbb8
jmp 0x10002c0d
or eax, 0xffffffff
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003d20f
add esp, 0x12c
ret