Function at 0x5707f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
imul esi, ebx
xor edx, edx
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], edx
cmp ebx, 4
jl 0x5708f0
mov ebx, dword [ebp + 0xc]
lea edi, [ecx + ecx]
lea edi, [ebx + edi*4 - 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
shr ebx, 2
inc ebx
mov dword [ebp - 0x1c], ebx
add ebx, ebx
add ebx, ebx
mov dword [ebp - 4], ebx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
mov ebx, dword [ebp + 0xc]
movss dword [ebx + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
movss dword [edi], xmm0
add edx, ecx
add esi, ecx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
lea ebx, [ecx*8]
add edi, ebx
mov ebx, dword [ebp + 0xc]
movss dword [ebx + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
movss dword [edi], xmm0
add edx, ecx
add esi, ecx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
lea ebx, [ecx*8]
add edi, ebx
mov ebx, dword [ebp + 0xc]
movss dword [ebx + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
movss dword [edi], xmm0
add edx, ecx
add esi, ecx
movss xmm0, dword [eax + esi*4]
addss xmm0, dword [eax + edx*4]
lea ebx, [ecx*8]
add edi, ebx
mov ebx, dword [ebp + 0xc]
movss dword [ebx + edx*8], xmm0
movss xmm0, dword [eax + edx*4]
subss xmm0, dword [eax + esi*4]
lea ebx, [ecx*8]
movss dword [edi], xmm0
add edx, ecx
add edi, ebx
add esi, ecx
dec dword [ebp - 0x1c]
jne 0x570830
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
jge 0x570960
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx + edx*8]
lea edi, [eax + edx*4]
mov dword [ebp - 0x1c], ebx
lea ebx, [ecx + ecx]
lea edx, [ebx + edx*2]
mov ebx, dword [ebp + 0xc]
lea edx, [ebx + edx*4 - 4]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
sub edx, dword [ebp - 4]
lea esi, [eax + esi*4]
mov dword [ebp - 0x18], edx
lea ecx, [ecx]
movss xmm0, dword [edi]
addss xmm0, dword [esi]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 8]
movss dword [edx], xmm0
movss xmm0, dword [edi]
subss xmm0, dword [esi]
movss dword [ebx], xmm0
lea ebx, [ecx*8]
add dword [ebp - 8], ebx
add edx, ebx
mov dword [ebp - 0x1c], edx
lea edx, [ecx*4]
add edi, edx
add esi, edx
dec dword [ebp - 0x18]
jne 0x570920
mov ebx, dword [ebp + 8]
cmp ecx, 2
jl 0x570b79
je 0x570a83
test ebx, ebx
jle 0x570a6b
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
lea esi, [eax + esi*4]
lea edx, [edx + ecx*8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ebx
cmp ecx, 2
jle 0x570a48
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x10]
add esi, 4
mov dword [ebp - 8], esi
lea esi, [ecx - 3]
shr esi, 1
inc esi
lea esp, [esp]
mov ebx, dword [ebp - 8]
movss xmm0, dword [ebx - 4]
add dword [ebp - 4], 8
mov ebx, dword [ebp - 4]
movss xmm3, dword [ebx - 4]
mov ebx, dword [ebp - 8]
movss xmm2, dword [ebx]
mov ebx, dword [ebp - 4]
movss xmm1, dword [ebx]
add dword [ebp - 0xc], 8
add dword [ebp - 8], 8
movaps xmm5, xmm0
mulss xmm0, dword [ebx]
mov ebx, dword [ebp - 0xc]
add edx, 8
mulss xmm1, xmm2
mulss xmm2, xmm3
subss xmm0, xmm2
movss xmm2, dword [edx]
addss xmm2, xmm0
movss dword [ebx], xmm2
subss xmm0, dword [edx]
sub edi, 8
dec esi
movss dword [edi], xmm0
movss xmm0, dword [edx - 4]
mulss xmm5, xmm3
addss xmm1, xmm5
addss xmm0, xmm1
movss dword [ebx - 4], xmm0
movss xmm0, dword [edx - 4]
subss xmm0, xmm1
movss dword [edi - 4], xmm0
jne 0x5709c0
mov ebx, dword [ebp + 8]
lea edx, [ecx*8]
add dword [ebp - 0x10], edx
add dword [ebp - 0x1c], edx
lea esi, [ecx*4]
add dword [ebp - 0x14], esi
add dword [ebp - 0x18], esi
dec dword [ebp - 0x20]
jne 0x570992
mov edx, ecx
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x570a7a
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
je 0x570b79
movss xmm0, dword [0x5ab340]
lea esi, [ecx - 1]
mov edi, esi
add esi, dword [ebp - 0x24]
mov edx, ecx
mov dword [ebp - 4], 0
cmp ebx, 4
jl 0x570b37
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
shr ebx, 2
inc ebx
mov dword [ebp - 0x24], ebx
add ebx, ebx
add ebx, ebx
mov dword [ebp - 4], ebx
lea esp, [esp]
movss xmm1, dword [eax + esi*4]
mov ebx, dword [ebp + 0xc]
xorps xmm1, xmm0
movss dword [ebx + edx*4], xmm1
fld dword [eax + edi*4]
fstp dword [ebx + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea edx, [edx + ecx*2]
add edi, ecx
xorps xmm1, xmm0
movss dword [ebx + edx*4], xmm1
fld dword [eax + edi*4]
fstp dword [ebx + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea edx, [edx + ecx*2]
add edi, ecx
xorps xmm1, xmm0
movss dword [ebx + edx*4], xmm1
fld dword [eax + edi*4]
fstp dword [ebx + edx*4 - 4]
add esi, ecx
movss xmm1, dword [eax + esi*4]
lea edx, [edx + ecx*2]
add edi, ecx
xorps xmm1, xmm0
movss dword [ebx + edx*4], xmm1
fld dword [eax + edi*4]
add esi, ecx
fstp dword [ebx + edx*4 - 4]
add edi, ecx
dec dword [ebp - 0x24]
lea edx, [edx + ecx*2]
jne 0x570ac0
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
jge 0x570b79
lea ebx, [ecx*8]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 0xc]
add ecx, ecx
lea esi, [eax + esi*4]
lea eax, [eax + edi*4]
mov edi, dword [ebp + 8]
add ecx, ecx
sub edi, dword [ebp - 4]
lea edx, [ebx + edx*4]
mov ebx, dword [ebp - 0x24]
nop
movss xmm1, dword [esi]
xorps xmm1, xmm0
movss dword [edx], xmm1
fld dword [eax]
fstp dword [edx - 4]
add edx, ebx
add esi, ecx
add eax, ecx
dec edi
jne 0x570b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret