Function at 0x100328c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x104574f0]
mov dword [esp + 0x48], eax
push esi
push edi
test cl, 1
jne 0x10032959
or ecx, 1
mov dword [0x104574f0], ecx
mov eax, dword [0x1044f5b0]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10032952
nop dword [eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [edi + ecx], 0
jne 0x10032910
xor edx, edx
test ecx, ecx
je 0x10032941
nop dword [eax]
movsx eax, byte [edi + edx]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10032920
mov eax, dword [esp + 0x10]
cmp esi, 0x8cd79213
je 0x10032cf7
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10032900
mov ecx, dword [0x104574f0]
xor eax, eax
mov dword [0x104574e4], eax
test cl, 2
jne 0x100329cf
or ecx, 2
mov dword [0x104574f0], ecx
mov eax, dword [0x1044f5b0]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100329c8
nop word [eax + eax]
mov edi, dword [eax + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10032990
xor edx, edx
test ecx, ecx
je 0x100329bd
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100329a0
mov eax, dword [esp + 0x10]
cmp esi, 0x93050cfd
je 0x100329ca
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10032980
xor eax, eax
mov dword [0x104574ec], eax
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x100331b7
mov ecx, dword [0x1044f5ec]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
test eax, eax
je 0x100331b7
mov ecx, dword [0x10457240]
add ecx, 0xffffffc5
xor ecx, 0xb3877ed9
mov ecx, dword [ecx + esi]
lea edx, [ecx + ecx*2]
mov ecx, dword [eax + 0xb0]
lea edx, [ecx + edx*4]
add edx, eax
je 0x100331b7
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x1c7240]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
add eax, edx
je 0x100331b7
mov eax, dword [0x10457234]
lea ecx, [esp + 0x20]
vmovss xmm2, dword [0x100ea0c8]
vmovss xmm0, dword [0x102bd4f0]
add eax, 0xffffffc8
xor eax, 0xb3877ed6
vcomiss xmm2, xmm0
vxorps xmm1, xmm1, xmm1
vmovss dword [esp + 0x20], xmm2
vcvtsi2ss xmm1, xmm1, dword [eax + esi]
mov esi, dword [ebp + 0xc]
mov eax, 0x102bd4f0
cmovbe ecx, eax
lea eax, [esp + 0x24]
vcomiss xmm0, xmm1
vmovss dword [esp + 0x24], xmm1
cmovbe eax, ecx
vxorpd xmm0, xmm0, xmm0
fld dword [eax]
fstp qword [esp + 0x40]
vroundsd xmm0, xmm0, qword [esp + 0x40], 1
vmovsd qword [esp + 0x40], xmm0
vmovss xmm0, dword [esi]
vmulss xmm0, xmm0, dword [0x100ea01c]
fld qword [esp + 0x40]
fstp dword [esp + 0x40]
vmovss dword [esp + 0x20], xmm0
call fcn.1002e300
vmovss dword [esp + 0x10], xmm0
vmovss xmm0, dword [esp + 0x20]
call fcn.1002e340
vmovss xmm1, dword [esi + 4]
vmovss dword [esp + 0xc], xmm0
vmulss xmm0, xmm1, dword [0x100ea01c]
vmovss dword [esp + 0x20], xmm0
call fcn.1002e300
vmovss dword [esp + 0x1c], xmm0
vmovss xmm0, dword [esp + 0x20]
call fcn.1002e340
vmovss xmm1, dword [esi + 8]
vmovaps xmm3, xmm0
vmulss xmm0, xmm1, dword [0x100ea01c]
vmovss dword [esp + 0x14], xmm3
vmovss dword [esp + 0x20], xmm0
call fcn.1002e300
vmovss dword [esp + 0x24], xmm0
vmovss xmm0, dword [esp + 0x20]
call fcn.1002e340
vmovss xmm2, dword [esp + 0xc]
vxorps xmm3, xmm2, xmmword [0x100ea420]
vmovss xmm7, dword [esp + 0x24]
vmovaps xmm6, xmm0
vmovss xmm0, dword [esp + 0x1c]
vmulss xmm0, xmm0, dword [esp + 0x10]
vmovss dword [esp + 0x58], xmm0
vmovss xmm0, dword [esp + 0x14]
vmulss xmm1, xmm0, dword [esp + 0x10]
vxorps xmm5, xmm0, xmmword [0x100ea420]
vmovss dword [esp + 0x64], xmm1
vmulss xmm2, xmm6, xmm2
vmulss xmm0, xmm2, dword [esp + 0x1c]
vmovss dword [esp + 0x70], xmm3
vmulss xmm3, xmm7, dword [0x100ea298]
vmulss xmm1, xmm5, xmm3
vsubss xmm0, xmm1, xmm0
vmulss xmm1, xmm3, dword [esp + 0x1c]
vmovss dword [esp + 0x54], xmm0
vmulss xmm0, xmm2, dword [esp + 0x14]
vmulss xmm2, xmm7, dword [esp + 0xc]
vsubss xmm0, xmm1, xmm0
vmulss xmm1, xmm2, dword [esp + 0x1c]
vmovss dword [esp + 0x60], xmm0
vmulss xmm0, xmm6, dword [0x100ea298]
vmulss xmm0, xmm0, dword [esp + 0x10]
vmovss dword [esp + 0x6c], xmm0
vmulss xmm0, xmm5, xmm6
vsubss xmm0, xmm1, xmm0
vmulss xmm1, xmm2, dword [esp + 0x14]
vmovss dword [esp + 0x5c], xmm0
vmulss xmm0, xmm6, dword [esp + 0x1c]
vsubss xmm0, xmm1, xmm0
mov ecx, dword [0x10457314]
mov eax, dword [0x1033a74c]
add ecx, 0xffffff90
mov dword [esp + 0x4c], eax
xor ecx, 0xb3877f0e
mov eax, dword [0x1033a748]
vmovss dword [esp + 0x68], xmm0
vmulss xmm0, xmm7, dword [esp + 0x10]
vmovss dword [esp + 0x3c], xmm0
vmovss xmm0, dword [ecx + eax]
mov ecx, dword [0x104574e4]
vmovss dword [esp + 0x24], xmm0
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x10], 0
mov eax, dword [ecx]
vmovss dword [esp + 0x1c], xmm0
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [0x104574ec]
mov edi, eax
mov dword [esp + 0x30], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
call edx
mov dword [esp + 0x20], eax
xor esi, esi
nop dword [eax + eax]
push esi
call dword [0x1044f750]
vmovss xmm0, dword [0x100ea0c8]
mov eax, dword [0x1044f758]
vmovss dword [esp], xmm0
push ecx
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x1c], eax
vmovss dword [esp], xmm0
call dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x4c], 0x1c
fstp dword [esp + 0xc]
jne 0x10032d02
vmovss xmm2, dword [esp + 0x24]
vmovss xmm0, dword [0x100ea124]
vcomiss xmm0, xmm2
jbe 0x10032d02
vmovss xmm1, dword [esp + 0xc]
mov eax, 3
nop dword [eax + eax]
dec eax
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, xmm2
vmulss xmm1, xmm1, xmm1
ja 0x10032cd0
vmovss xmm2, dword [0x100ea0c8]
vsubss xmm0, xmm2, xmm1
vmovss dword [esp + 0xc], xmm0
jmp 0x10032d0a
mov ecx, dword [0x104574f0]
jmp 0x10032954
vmovss xmm2, dword [0x100ea0c8]
test edi, edi
je 0x10032d14
vmovss dword [esp + 0xc], xmm2
vmovss xmm0, dword [0x100ea148]
mov eax, dword [0x1044f758]
sub esp, 8
mov dword [esp + 0x1c], eax
vmovss dword [esp + 4], xmm0
vxorps xmm0, xmm0, xmm0
vmovss dword [esp], xmm0
call dword [esp + 0x1c]
add esp, 8
cmp dword [esp + 0x20], 0
fstp dword [esp + 0x14]
je 0x10032d53
vmovss xmm0, dword [0x100ea0ec]
jmp 0x10032d59
vmovss xmm0, dword [esp + 0x14]
mov ecx, dword [0x1033a748]
vmovss dword [esp + 0x14], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x754]
mov dword [esp + 0x18], eax
call dword [esp + 0x18]
fmul dword [esp + 0xc]
vmovss xmm0, dword [esp + 0x14]
vcvtss2sd xmm0, xmm0, xmm0
fstp dword [esp + 0xc]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
vcvtsd2ss xmm1, xmm0, xmm0
vmulss xmm0, xmm1, dword [esp + 0xc]
vmovss xmm1, dword [esp + 0x14]
vmovss dword [esp + 0x2c], xmm0
vcvtss2sd xmm0, xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [0x1044f758]
sub esp, 8
vcvtsd2ss xmm0, xmm0, xmm0
vmulss xmm0, xmm0, dword [esp + 0x14]
vmovss dword [esp + 0x40], xmm0
vmovss xmm0, dword [0x100ea0c8]
vmovss dword [esp + 4], xmm0
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x20], eax
vmovss dword [esp], xmm0
call dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x4c], 0x1c
fstp dword [esp + 0xc]
jne 0x10032e37
vmovss xmm2, dword [esp + 0x24]
vmovss xmm0, dword [0x100ea124]
vcomiss xmm0, xmm2
jbe 0x10032e37
vmovss xmm1, dword [esp + 0xc]
mov eax, 3
nop
dec eax
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, xmm2
vmulss xmm1, xmm1, xmm1
ja 0x10032e10
vmovss xmm2, dword [0x100ea0c8]
vsubss xmm0, xmm2, xmm1
vmovss dword [esp + 0xc], xmm0
jmp 0x10032e3f
vmovss xmm2, dword [0x100ea0c8]
test edi, edi
je 0x10032e49
vmovss dword [esp + 0xc], xmm2
vmovss xmm0, dword [0x100ea148]
mov eax, dword [0x1044f758]
sub esp, 8
mov dword [esp + 0x20], eax
vmovss dword [esp + 4], xmm0
vxorps xmm0, xmm0, xmm0
vmovss dword [esp], xmm0
call dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x20], 0
fstp dword [esp + 0x18]
je 0x10032e88
vmovss xmm0, dword [0x100ea0ec]
jmp 0x10032e8e
vmovss xmm0, dword [esp + 0x18]
mov ecx, dword [0x1033a748]
vmovss dword [esp + 0x14], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6dc]
mov dword [esp + 0x18], eax
call dword [esp + 0x18]
fmul dword [esp + 0xc]
vmovss xmm0, dword [esp + 0x14]
vcvtss2sd xmm0, xmm0, xmm0
fstp dword [esp + 0xc]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
vcvtsd2ss xmm1, xmm0, xmm0
vmulss xmm1, xmm1, dword [esp + 0xc]
vaddss xmm0, xmm1, dword [esp + 0x2c]
vmovss xmm1, dword [esp + 0x14]
vmovss dword [esp + 0x2c], xmm0
vcvtss2sd xmm0, xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
vmovss xmm3, dword [esp + 0x2c]
vcvtsd2ss xmm0, xmm0, xmm0
vmulss xmm0, xmm0, dword [esp + 0xc]
vaddss xmm2, xmm0, dword [esp + 0x38]
vmulss xmm0, xmm3, dword [esp + 0x54]
vaddss xmm1, xmm0, dword [esp + 0x58]
vmulss xmm0, xmm2, dword [esp + 0x5c]
vaddss xmm5, xmm1, xmm0
vmulss xmm0, xmm3, dword [esp + 0x60]
vaddss xmm1, xmm0, dword [esp + 0x64]
vmulss xmm0, xmm2, dword [esp + 0x68]
vaddss xmm4, xmm1, xmm0
vmulss xmm0, xmm3, dword [esp + 0x6c]
vaddss xmm1, xmm0, dword [esp + 0x70]
vmulss xmm0, xmm2, dword [esp + 0x3c]
vaddss xmm2, xmm1, xmm0
vmulss xmm0, xmm5, xmm5
vmulss xmm1, xmm4, xmm4
vaddss xmm1, xmm1, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vmovss dword [esp + 0x38], xmm5
vmovss dword [esp + 0x2c], xmm4
vmovss dword [esp + 0x18], xmm2
call fcn.1002e360
vaddss xmm2, xmm0, dword [0x100ea008]
mov eax, dword [0x1033a750]
vmovss xmm0, dword [esp + 0x38]
push dword [esp + 0x50]
vdivss xmm0, xmm0, xmm2
vmovss xmm1, dword [eax + 0x104]
mov ecx, dword [0x10457500]
lea eax, [esp + 0x78]
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [0x10338d4c]
vmovss dword [esp + 0x78], xmm0
vmovss xmm0, dword [esp + 0x30]
vdivss xmm0, xmm0, xmm2
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [0x10338d50]
vmovss dword [esp + 0x7c], xmm0
vmovss xmm0, dword [esp + 0x1c]
vdivss xmm0, xmm0, xmm2
push eax
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [0x10338d54]
push 0x10338d4c
lea eax, [esp + 0x8c]
push eax
vmovss dword [esp + 0x8c], xmm0
call fcn.10038d70
mov edi, dword [esp + 0x80]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, edi
vxorps xmm3, xmm3, xmm3
vcomiss xmm0, xmm3
jbe 0x100330d4
mov eax, dword [esp + 0x28]
xor edx, edx
mov eax, dword [eax + 0x1c7240]
cmp eax, 0x13
ja case.default.0x1003302b
movzx eax, byte [eax + 0x100331dc]
jmp dword [eax*4 + 0x100331c4]
mov edx, 1
jmp case.default.0x1003302b
mov edx, 4
jmp case.default.0x1003302b
mov edx, 5
jmp case.default.0x1003302b
mov edx, 2
jmp case.default.0x1003302b
mov edx, 3
jmp case.default.0x1003302b
mov edx, 0x63
mov eax, dword [esp + 0x84]
xor ecx, ecx
cmp eax, 0x13
ja case.default.0x1003306f
movzx eax, byte [eax + 0x10033208]
jmp dword [eax*4 + 0x100331f0]
mov ecx, 1
jmp case.default.0x1003306f
mov ecx, 4
jmp case.default.0x1003306f
mov ecx, 5
jmp case.default.0x1003306f
mov ecx, 2
jmp case.default.0x1003306f
mov ecx, 3
jmp case.default.0x1003306f
mov ecx, 0x63
cmp edx, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
jne 0x100330dc
mov eax, dword [esp + 0x88]
inc ecx
mov dword [esp + 0x10], ecx
cmp eax, dword [edx + 0x1c7244]
jne 0x100330dc
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, edi
vaddss xmm4, xmm0, dword [esp + 0x1c]
vmovss dword [esp + 0x1c], xmm4
jmp 0x100330e2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
vmovss xmm4, dword [esp + 0x1c]
vmovss xmm5, dword [0x100ea22c]
mov edi, dword [esp + 0x30]
inc esi
mov eax, esi
vxorps xmm0, xmm0, xmm0
shr eax, 0x1f
vcvtsi2sd xmm0, xmm0, esi
vaddsd xmm0, xmm0, qword [eax*8 + 0x100ea3e0]
vcvtsd2ss xmm0, xmm0, xmm0
vcomiss xmm5, xmm0
ja 0x10032c70
vmovss xmm2, dword [0x100ea1dc]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
vdivss xmm0, xmm0, xmm5
vmulss xmm0, xmm0, xmm2
vmovss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
lea ecx, [esp + 0x30]
fstp qword [esp + 0x30]
vxorpd xmm0, xmm0, xmm0
vroundsd xmm0, xmm0, qword [esp + 0x30], 1
vmovsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
vdivss xmm0, xmm4, xmm5
vdivss xmm0, xmm0, dword [esp + 0x40]
fstp dword [esp + 0x30]
vcvttss2si eax, dword [esp + 0x30]
vmulss xmm0, xmm0, xmm2
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, eax
vcomiss xmm3, xmm0
lea eax, [esp + 0x40]
cmovbe ecx, eax
lea eax, [esp + 0x3c]
vcomiss xmm0, xmm2
vmovss dword [esp + 0x3c], xmm2
cmovbe eax, ecx
vmovss dword [esp + 0x30], xmm3
vmovss dword [esp + 0x40], xmm0
vmovss dword [edx + 0x1c7250], xmm1
mov eax, dword [eax]
mov dword [edx + 0x1c7254], eax
vcvttss2si eax, xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8