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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
cmp eax, 0x10000001
jae 0x10218599
mov ebx, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor esi, esi
inc esi
shl esi, cl
lea eax, [ebx + 0xc]
mov edi, dword [ebx + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push edi
push edx
call fcn.10217f20
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x28], edi
cmp eax, edi
je 0x1021858f
mov edi, eax
mov dword [ebp - 0x18], ebx
mov eax, edi
cmp dword [edi + 0x1c], 0x10
jb 0x1021843b
mov edi, dword [eax + 8]
jmp 0x1021843e
lea edi, [eax + 8]
mov dword [ebp - 0x10], eax
mov esi, dword [eax + 0x18]
mov eax, 0x811c9dc5
test esi, esi
je 0x10218460
xor ecx, ecx
movzx edx, byte [edi + ecx]
xor edx, eax
imul eax, edx, 0x1000193
inc ecx
cmp esi, ecx
jne 0x1021844f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
and eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
lea ebx, [eax + eax]
mov dword [ebp - 0x24], ebx
lea ebx, [eax + eax]
inc ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [edx + eax*8]
cmp eax, dword [ebp - 0x28]
je 0x1021849f
mov ecx, dword [ebp - 0x20]
mov ebx, dword [edx + ecx*4]
cmp esi, dword [ebx + 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], eax
jne 0x102184cf
cmp dword [ebx + 0x1c], 0x10
jb 0x102184b3
mov eax, dword [ebx + 8]
jmp 0x102184b6
mov eax, dword [ebp - 0x24]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
mov edi, dword [ebp - 0x14]
jmp 0x10218546
lea eax, [ebx + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
je 0x10218554
cmp eax, ebx
je 0x1021851f
mov ebx, dword [ebx + 4]
cmp esi, dword [ebx + 0x18]
jne 0x102184cf
cmp dword [ebx + 0x1c], 0x10
jb 0x102184e6
mov eax, dword [ebx + 8]
jmp 0x102184e9
lea eax, [ebx + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x2c]
jne 0x102184cf
mov eax, dword [ebx]
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov esi, dword [eax + 4]
mov dword [esi], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], ecx
mov dword [edi + 4], esi
mov edi, ebx
jmp 0x10218546
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 4]
mov edi, dword [ebp - 0x14]
mov dword [ebx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov dword [eax + 4], ecx
mov dword [edi + 4], ebx
mov dword [esi + 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], esi
mov ebx, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x28]
jne 0x1021842e
jmp 0x1021858f
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov edi, dword [ebp - 0x14]
je 0x10218587
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov edx, dword [edi + 4]
mov dword [edx], eax
mov esi, dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov dword [esi], edi
mov edi, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov dword [edx + eax*4], ecx
jmp 0x10218546
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3