Function at 0x10021580
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 0x1004129d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1006e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x24], edx
jbe 0x100215da
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10021605
mov esi, dword [ebp - 0x24]
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x100215f0
mov esi, dword [ebp - 0x14]
push edi
push edx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.10020810
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10021627
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x1002178f
cmp dword [esi + 8], 0x3ffffff
je 0x100217a5
lea eax, [esi + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
push 0x40
mov dword [ebp - 0x30], 0
call fcn.1002817b
add esp, 4
mov dword [ebp - 0x30], eax
lea esi, [eax + 8]
push dword [ebp - 0x28]
mov ecx, esi
mov dword [ebp - 0x24], esi
call fcn.10024010
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
call fcn.10024550
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10069d50]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10069d50]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1002173a
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.1003e5b0
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1003fea0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jae 0x1002171b
cmp eax, 0x200
jae 0x10021719
shl eax, 3
cmp eax, ecx
jae 0x1002171b
mov eax, ecx
push eax
mov ecx, esi
call fcn.10020620
mov eax, dword [ebp - 0x30]
mov ecx, esi
push edi
add eax, 8
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10020810
mov ecx, dword [eax]
jmp 0x1002173d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x30]
inc dword [esi + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
and ecx, edi
mov edi, dword [ebp - 0x34]
mov esi, dword [edx + ecx*8]
cmp esi, dword [edi]
jne 0x1002176d
mov dword [edx + ecx*8], eax
jmp 0x10021780
cmp esi, dword [ebp - 0x14]
jne 0x10021777
mov dword [edx + ecx*8], eax
jmp 0x10021784
mov esi, dword [ebp - 0x28]
cmp dword [edx + ecx*8 + 4], esi
jne 0x10021784
mov dword [edx + ecx*8 + 4], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.10026c46
int3