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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f30a1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1f0
mov eax, dword [0x10285040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1fc], edx
mov eax, ecx
mov dword [ebp - 0x1e4], eax
lea ecx, [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
imul eax, eax, 0xeef0
lea edi, [eax + 0x10769360]
mov eax, dword [0x10b33e60]
add eax, 0x7a4232c8
mov dword [ebp - 0x1f8], edi
xor eax, 0xfcb4fca8
cmp dword [eax + 0x154], 0
je 0x1015bc59
mov ecx, dword [eax + 0x14c]
mov dword [ebp - 0x1f0], ecx
test ecx, ecx
je 0x1015bc59
mov eax, dword [0x1031e914]
test al, 1
jne 0x1015b563
or eax, 1
mov dword [0x1031e914], eax
mov dword [ebp - 4], 0
mov eax, dword [0x1031cd80]
mov dword [ebp - 0x1d8], eax
cmp eax, dword [0x1031cd84]
je 0x1015b445
nop word [eax + eax]
mov ecx, dword [eax]
mov dword [ebp - 0x1e0], ecx
test ecx, ecx
je 0x1015b434
mov esi, dword [ecx + 0xc]
mov eax, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x1015b3f6
xor edx, edx
test ecx, ecx
je 0x1015b42e
mov edi, eax
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1015b405
mov dword [ebp - 0x1d4], edi
cmp dword [ebp - 0x1d4], 0x4e9f1122
mov edi, dword [ebp - 0x1f8]
je 0x1015b45e
mov eax, dword [ebp - 0x1d8]
add eax, 4
mov dword [ebp - 0x1d8], eax
cmp eax, dword [0x1031cd84]
jne 0x1015b3e0
mov ecx, dword [ebp - 0x1f0]
xor eax, eax
mov dword [0x1031e918], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b568
mov eax, dword [ebp - 0x1e0]
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1e8], edx
cmp dword [eax + 4], edx
jle 0x1015b52a
xor ecx, ecx
mov dword [ebp - 0x1ec], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0x1f4], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1015b4b8
cmp dword [ecx + 4], 0
jle 0x1015b4b8
push 0
mov edx, 0x1c93bcf0
call fcn.1012b660
add esp, 4
test eax, eax
je 0x1015b4b8
mov ecx, dword [esi + 0x2c]
add ecx, eax
add dword [ebp - 0x1d4], ecx
mov esi, dword [esi]
mov eax, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x1015b4c1
xor edx, edx
test ecx, ecx
je 0x1015b4f9
mov edi, eax
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1015b4d0
mov dword [ebp - 0x1d8], edi
cmp dword [ebp - 0x1d8], 0x1c93bcf0
mov edi, dword [ebp - 0x1f8]
je 0x1015b540
mov edx, dword [ebp - 0x1e8]
mov eax, dword [ebp - 0x1e0]
inc edx
mov ecx, dword [ebp - 0x1ec]
add ecx, 0x3c
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1ec], ecx
cmp edx, dword [eax + 4]
jl 0x1015b483
mov edx, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1f0]
mov eax, edx
mov dword [0x1031e918], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b568
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1f0]
mov eax, dword [eax + 0x2c]
add eax, dword [ebp - 0x1d4]
mov dword [0x1031e918], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b568
mov eax, dword [0x1031e918]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x1dc], eax
mov eax, dword [0x1032022c]
test al, 1
jne 0x1015b723
or eax, 1
mov dword [0x1032022c], eax
mov dword [ebp - 4], 1
mov eax, dword [0x1031cd80]
mov dword [ebp - 0x1d4], eax
cmp eax, dword [0x1031cd84]
je 0x1015b605
mov ecx, dword [eax]
mov dword [ebp - 0x1e8], ecx
test ecx, ecx
je 0x1015b5f4
mov esi, dword [ecx + 0xc]
mov eax, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1015b5b6
xor edx, edx
test ecx, ecx
je 0x1015b5ee
mov edi, eax
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1015b5c5
mov dword [ebp - 0x1d8], edi
cmp dword [ebp - 0x1d8], 0x72e242a1
mov edi, dword [ebp - 0x1f8]
je 0x1015b61e
mov eax, dword [ebp - 0x1d4]
add eax, 4
mov dword [ebp - 0x1d4], eax
cmp eax, dword [0x1031cd84]
jne 0x1015b5a0
mov ecx, dword [ebp - 0x1f0]
xor eax, eax
mov dword [0x103201ec], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b728
mov eax, dword [ebp - 0x1e8]
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1e0], edx
cmp dword [eax + 4], edx
jle 0x1015b6ea
xor ecx, ecx
mov dword [ebp - 0x1ec], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0x1f4], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1015b678
cmp dword [ecx + 4], 0
jle 0x1015b678
push 0
mov edx, 0x84cdad2
call fcn.1012b660
add esp, 4
test eax, eax
je 0x1015b678
mov ecx, dword [esi + 0x2c]
add ecx, eax
add dword [ebp - 0x1d4], ecx
mov esi, dword [esi]
mov eax, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [esi + ecx], 0
jne 0x1015b681
xor edx, edx
test ecx, ecx
je 0x1015b6b9
mov edi, eax
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1015b690
mov dword [ebp - 0x1d8], edi
cmp dword [ebp - 0x1d8], 0x84cdad2
mov edi, dword [ebp - 0x1f8]
je 0x1015b700
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1e8]
inc edx
mov ecx, dword [ebp - 0x1ec]
add ecx, 0x3c
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1ec], ecx
cmp edx, dword [eax + 4]
jl 0x1015b643
mov edx, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1f0]
mov eax, edx
mov dword [0x103201ec], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b728
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1f0]
mov eax, dword [eax + 0x2c]
add eax, dword [ebp - 0x1d4]
mov dword [0x103201ec], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1015b728
mov eax, dword [0x103201ec]
cmp dword [ebp - 0x1dc], 2
je 0x1015bc59
cmp dword [ecx + eax], 0
jle 0x1015bc59
push 0x158
lea eax, [ebp - 0x1d0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x10b33e60]
add esp, 0xc
mov ecx, dword [ebp - 0x1e4]
add eax, 0x7a4232c8
xor eax, 0xfcb4fca8
mov esi, dword [eax + 0xc4]
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 0x28]
call eax
xor edx, edx
lea ecx, [ebp - 0x1d0]
test esi, esi
push ecx
cmovne edx, esi
mov ecx, esi
push eax
mov edx, dword [edx]
mov edx, dword [edx + 0x20]
call edx
cmp byte [ebp - 0x94], 0
jne 0x1015bc59
cmp byte [0x10304f83], 0
je 0x1015bc59
mov ecx, dword [ebp - 0x1e4]
cmp dword [ecx + 0x9960], 0
je 0x1015bc59
mov eax, dword [0x10b33e70]
test eax, eax
je 0x1015b7cc
add eax, 2
mov eax, dword [eax]
cmp dword [eax + ecx + 4], 0
je 0x1015bc65
mov edx, dword [ebp - 0x1fc]
cmp dword [edx + 0x18], 2
jge 0x1015b7fc
mov eax, dword [edi + 8]
cmp eax, 3
jge 0x1015b7f3
inc eax
mov dword [edi + 8], eax
jmp 0x1015b811
mov dword [edi + 0xc], 0
jmp 0x1015b811
mov eax, dword [edi + 0xc]
cmp eax, 3
jge 0x1015b80a
inc eax
mov dword [edi + 0xc], eax
jmp 0x1015b811
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
jle 0x1015b86b
lea eax, [ebp - 0x2c]
mov byte [edi], 0
push eax
mov ecx, 0x10319690
call fcn.1004c760
add edi, 0x10
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x1015b85e
mov ecx, edi
call fcn.10029c40
movups xmm0, xmmword [ebp - 0x2c]
mov byte [ebp - 0x2c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
call fcn.10029c40
jmp 0x1015bc65
mov ecx, dword [edi + 0x330]
and ecx, 0x80000007
jns 0x1015b87e
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [edx + 0x94]
xorps xmm3, xmm3
mov dword [edi + ecx*4 + 0x310], eax
xor ecx, ecx
mov eax, dword [edi + 0x330]
cmp eax, 9
lea edx, [eax + 1]
cmovl ecx, edx
mov edx, 7
mov dword [edi + 0x330], ecx
lea ecx, [edi + 0x314]
movss xmm2, dword [0x10271ad0]
movss xmm1, dword [0x10271110]
movss xmm0, dword [ecx - 4]
subss xmm0, dword [ecx]
andps xmm0, xmm2
comiss xmm3, xmm0
jb 0x1015b8f1
mov eax, dword [edi + 0x338]
cmp eax, 5
jge 0x1015b8e5
inc eax
mov dword [edi + 0x338], eax
jmp 0x1015b914
mov dword [edi + 0x334], 1
jmp 0x1015b914
comiss xmm0, xmm1
jb 0x1015b914
mov eax, dword [edi + 0x334]
cmp eax, 5
jge 0x1015b90a
inc eax
mov dword [edi + 0x334], eax
jmp 0x1015b914
mov dword [edi + 0x338], 1
add ecx, 4
sub edx, 1
jne 0x1015b8c0
mov esi, dword [edi + 0x338]
mov edx, dword [edi + 0x334]
cmp edx, esi
mov ecx, dword [ebp - 0x1e4]
setg al
add ecx, 8
mov byte [edi + 0x300], al
cmp edx, esi
mov eax, dword [ebp - 0x1e4]
mov esi, dword [0x10335008]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
jle 0x1015bb65
add esi, 0x9b31f5a8
xor esi, 0x82b71aa9
call eax
cmp dword [esi + eax*4 + 0x63d6c], 0
jle 0x1015b978
mov eax, 0x539
jmp 0x1015bb10
movss xmm1, dword [edi + 0x32c]
movss xmm4, dword [0x102713f4]
comiss xmm4, xmm1
movss xmm0, dword [0x102712cc]
jbe 0x1015b99e
addss xmm1, xmm0
comiss xmm4, xmm1
ja 0x1015b995
movss xmm3, dword [0x10271280]
comiss xmm1, xmm3
jbe 0x1015b9b9
nop dword [eax + eax]
subss xmm1, xmm0
comiss xmm1, xmm3
ja 0x1015b9b0
movss xmm2, dword [edi + 0x328]
comiss xmm4, xmm2
jbe 0x1015b9cf
addss xmm2, xmm0
comiss xmm4, xmm2
ja 0x1015b9c6
comiss xmm2, xmm3
jbe 0x1015b9dd
subss xmm2, xmm0
comiss xmm2, xmm3
ja 0x1015b9d4
mulss xmm2, dword [0x10270eec]
mulss xmm1, dword [0x10270eec]
movaps xmm0, xmm2
movss dword [ebp - 0x1f4], xmm2
movss dword [ebp - 0x1f0], xmm1
call fcn.1002de80
movss dword [ebp - 0x1dc], xmm0
movss xmm0, dword [ebp - 0x1f0]
call fcn.1002de80
movss xmm1, dword [ebp - 0x1dc]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x1f4]
mulss xmm1, dword [0x10270fb4]
movss dword [ebp - 0x1e0], xmm1
call fcn.1002de60
movss dword [ebp - 0x1dc], xmm0
movss xmm0, dword [ebp - 0x1f0]
call fcn.1002de60
movss xmm1, dword [ebp - 0x1dc]
fld dword [ebp - 0x1e0]
addss xmm1, xmm0
movss xmm4, dword [0x102713f4]
movss xmm2, dword [0x102712cc]
mulss xmm1, dword [0x10270fb4]
movss dword [ebp - 0x1dc], xmm1
fld dword [ebp - 0x1dc]
fpatan
fstp dword [ebp - 0x1dc]
movss xmm1, dword [ebp - 0x1dc]
mulss xmm1, dword [0x102711d4]
comiss xmm4, xmm1
jbe 0x1015bab9
nop dword [eax]
addss xmm1, xmm2
comiss xmm4, xmm1
ja 0x1015bab0
movss xmm3, dword [0x10271280]
comiss xmm1, xmm3
jbe 0x1015bacf
subss xmm1, xmm2
comiss xmm1, xmm3
ja 0x1015bac6
mov eax, dword [ebp - 0x1fc]
movss xmm0, dword [eax + 0x94]
subss xmm0, xmm1
comiss xmm4, xmm0
jbe 0x1015baef
addss xmm0, xmm2
comiss xmm4, xmm0
ja 0x1015bae6
comiss xmm0, xmm3
jbe 0x1015bafd
subss xmm0, xmm2
comiss xmm0, xmm3
ja 0x1015baf4
xor eax, eax
comiss xmm0, dword [0x10270e70]
setbe al
lea eax, [eax*2 - 1]
mov dword [edi + 4], eax
mov ecx, 0x10319678
lea eax, [ebp - 0x44]
mov byte [edi], 1
push eax
call fcn.10040370
add edi, 0x10
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x1015bb58
mov ecx, edi
call fcn.10029c40
movups xmm0, xmmword [ebp - 0x44]
mov byte [ebp - 0x44], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
call fcn.10029c40
jmp 0x1015bc65
add esi, 0x9b31f5a8
xor esi, 0x82b71aa9
call eax
lea eax, [esi + eax*4]
mov eax, dword [eax + 0x63d6c]
test eax, eax
jle 0x1015bc03
cdq
mov ecx, 3
idiv ecx
sub edx, 0
je 0x1015bbad
sub edx, 1
je 0x1015bba4
sub edx, 1
jne 0x1015bbb4
mov dword [edi + 4], 1
jmp 0x1015bbb4
mov dword [edi + 4], 0xffffffff
jmp 0x1015bbb4
mov dword [edi + 4], 0
lea eax, [ebp - 0x5c]
mov byte [edi], 1
push eax
mov ecx, 0x103196c0
call fcn.1004caa0
add edi, 0x10
lea eax, [ebp - 0x5c]
cmp edi, eax
je 0x1015bbf9
mov ecx, edi
call fcn.10029c40
movups xmm0, xmmword [ebp - 0x5c]
mov byte [ebp - 0x5c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
lea ecx, [ebp - 0x5c]
call fcn.10029c40
jmp 0x1015bc65
lea eax, [ebp - 0x74]
mov dword [edi + 4], 0
push eax
mov ecx, 0x103196a8
call fcn.10040370
lea esi, [edi + 0x10]
lea eax, [ebp - 0x74]
cmp esi, eax
je 0x1015bc4c
mov ecx, esi
call fcn.10029c40
movups xmm0, xmmword [ebp - 0x74]
mov byte [ebp - 0x74], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
lea ecx, [ebp - 0x74]
call fcn.10029c40
mov byte [edi], 1
jmp 0x1015bc65
cmp byte [edi], 0
je 0x1015bc65
mov ecx, edi
call fcn.1015b220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101e0e46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret