Function at 0x47bdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [ecx + 0x8c]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x94]
push edi
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
call fcn.0047b3b0
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, edx
mov ecx, dword [esp + 8]
xor edi, esi
and edi, 1
mov dword [esp + 0xc], eax
movd xmm0, esi
movd xmm2, edx
cvtdq2ps xmm2, xmm2
shl edi, 8
lea esi, [ecx + 0x64]
cmp byte [ecx + 0x9c], 2
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x24], xmm0
je 0x47c17a
addss xmm0, dword [0x526968]
addss xmm2, dword [0x526968]
lea eax, [esp + 0x2c]
push eax
sub esp, 8
movss dword [esp + 4], xmm0
movss dword [esp], xmm2
push esi
call dword [esp + 0x24]
movss xmm0, dword [esp + 0x3c]
add esp, 0x10
movss xmm2, dword [0x526af0]
mov ecx, dword [esp + 8]
mulss xmm0, xmm2
cmp byte [ecx + 0x9c], 1
cvttss2si edx, xmm0
jne 0x47befb
movss xmm0, dword [esi + 0x18]
movsd xmm1, qword [0x526c80]
movss xmm3, dword [0x526904]
cvtps2pd xmm0, xmm0
andps xmm0, xmm1
cvtpd2ps xmm0, xmm0
comiss xmm3, xmm0
jbe 0x47bef5
movss xmm4, dword [esi + 0x1c]
cvtps2pd xmm0, xmm4
andps xmm0, xmm1
cvtpd2ps xmm0, xmm0
comiss xmm3, xmm0
jbe 0x47bedc
movss xmm0, dword [esi + 0x20]
subss xmm0, dword [0x526990]
cvtps2pd xmm0, xmm0
andps xmm0, xmm1
cvtpd2ps xmm0, xmm0
comiss xmm3, xmm0
ja 0x47befb
movss xmm1, dword [esp + 0x24]
movss xmm0, dword [esi]
mulss xmm1, xmm4
addss xmm1, dword [esi + 0x20]
divss xmm0, xmm1
jmp 0x47beff
mov esi, dword [esp + 0x28]
jmp 0x47bf07
movss xmm0, dword [esi]
mulss xmm0, xmm2
cvttss2si esi, xmm0
mov ecx, esi
mov dword [esp + 8], esi
sar ecx, 0x1f
mov eax, ecx
xor eax, esi
sub eax, ecx
cmp eax, 0x10
jge 0x47bf44
push edx
call dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add esp, 4
shr eax, 8
push dword [ebp + 0x14]
push dword [esi + eax*4]
push dword [ebp + 0x10]
call dword [0x53fa04]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
cmp eax, 0x47a900
jne 0x47c0ed
sub esp, 8
lea ecx, [esp + 0x3c]
push dword [ebp + 0x14]
push esi
push edx
call fcn.00490b50
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x47bf9d
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0xc]
push eax
mov eax, edi
xor eax, 0x100
lea edx, [ecx + edi]
mov edx, dword [esi + edx*4]
add eax, ecx
push dword [esi + eax*4]
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.0047a8b0
mov eax, dword [esp + 0x3c]
add esp, 8
lea ecx, [esi + eax*4]
jmp 0x47bfa0
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x47c0b7
mov edx, dword [esp + 0x40]
mov esi, eax
sar esi, 3
mov dword [esp + 0x10], esi
test esi, esi
mov esi, dword [esp + 0xc]
jle 0x47c08e
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 4], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 8], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 0xc], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 0x10], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 0x14], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 0x18], eax
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx + 0x1c], eax
add ecx, 0x20
sub dword [esp + 0x10], 1
jne 0x47bfc5
mov eax, dword [esp + 0x38]
and eax, 7
mov dword [esp + 0x10], eax
jbe 0x47c0b7
mov eax, edx
add edx, dword [esp + 8]
sar eax, 8
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx], eax
add ecx, 4
sub dword [esp + 0x10], 1
jne 0x47c097
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x47c205
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
push eax
mov eax, edi
xor eax, 0x100
add eax, edx
add edx, edi
push dword [esi + eax*4]
mov edx, dword [esi + edx*4]
call fcn.0047a8b0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esp + 0xc]
cmp eax, 0x47a930
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
jne 0x47c143
mov ecx, edx
add edx, dword [esp + 8]
sar ecx, 8
mov eax, ecx
shl eax, 0x17
sar eax, 0x1f
xor eax, ecx
mov ecx, dword [esp + 0x10]
movzx eax, al
add eax, edi
xor edi, 0x100
mov eax, dword [esi + eax*4]
mov dword [ecx], eax
add ecx, 4
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ecx
jne 0x47c106
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 8]
mov eax, edx
add edx, ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x10], 4
sar eax, 8
movzx eax, al
add eax, edi
xor edi, 0x100
sub dword [esp + 0x14], 1
mov eax, dword [esi + eax*4]
mov dword [ecx], eax
mov ecx, dword [esp + 8]
jne 0x47c147
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
nop dword [eax]
lea eax, [esp + 0x2c]
push eax
sub esp, 8
lea eax, [ecx + 0x64]
movss dword [esp + 4], xmm0
movss dword [esp], xmm2
push eax
call dword [esp + 0x24]
movss xmm0, dword [esp + 0x3c]
mulss xmm0, dword [0x526af0]
cvttss2si eax, xmm0
push eax
call dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
movss xmm2, dword [esp + 0x1c]
addss xmm2, dword [0x526990]
movss xmm0, dword [esp + 0x24]
shr eax, 8
add eax, edi
xor edi, 0x100
movss dword [esp + 0x1c], xmm2
mov eax, dword [esi + eax*4]
mov dword [ecx], eax
add ecx, 4
sub dword [esp + 0x20], 1
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
jne 0x47c190
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10