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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, dword [esp + 0x4c]
mov eax, dword [0x1017f528]
xor eax, esp
mov dword [esp + 0x34], eax
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x10066a2a
mov ebp, dword [edi + 0x10]
test ebp, ebp
jle 0x10066a2a
mov eax, dword [ecx + 0x3c]
test al, 1
je 0x100668a9
mov edx, dword [ebx + 4]
cmp dword [edx + 0x18], 3
jl 0x100668a9
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x24], 3
jl 0x10066a2d
test al, 2
je 0x10066956
mov eax, dword [0x1017f5e0]
mov esi, dword [eax + 0x10]
test esi, esi
mov dword [esp + 0x14], ecx
je 0x1006692c
mov edx, dword [eax + 0xc]
add esi, edx
dec esi
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
and eax, esi
mov edx, dword [edx + eax*4]
cmp dword [edx + 0x2c], 0
jne 0x1006692c
mov eax, dword [edx + 0xc]
cmp eax, dword [ebx]
jne 0x1006692c
mov dword [esp + 4], edx
mov esi, dword [edx + 0x28]
sub esi, dword [esp + 0x50]
mov edx, esi
neg edx
cmovs edx, esi
cmp edx, 0x96
ja 0x1006692c
mov ebp, dword [eax]
mov eax, dword [0x1017f71c]
test al, 1
je 0x10066cde
mov esi, dword [0x1017f718]
mov ecx, dword [esp + 4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ebp]
mov edi, dword [ebx + 0x1c]
mov ebp, dword [edi + 0x10]
sub eax, dword [ecx + 0x1c]
jle 0x1006692c
cmp ebp, eax
jg 0x10066a2d
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [0x1017f71c]
test al, 1
je 0x10066a44
mov esi, dword [0x1017f718]
mov eax, dword [esi + 4]
cmp ebp, dword [eax + ecx]
jge 0x10066a2d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
test al, 4
je 0x10066a12
mov eax, dword [0x1017f5c8]
mov edx, dword [eax + 0x2c]
and edx, 0xfffffffe
cmp edx, 2
jne 0x10066a12
cmp dword [eax + 0x24], 0
je 0x1006699f
mov ebp, dword [edi + 0x10]
add ebp, ebp
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x1017f71c]
test al, 1
je 0x10066b87
mov eax, dword [0x1017f718]
mov eax, dword [eax + 4]
cmp ebp, dword [eax + edx]
jge 0x10066a2d
mov eax, dword [0x1017f5e0]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x10066a12
mov edx, dword [eax + 0xc]
add esi, edx
dec esi
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
and eax, esi
mov eax, dword [edx + eax*4]
cmp dword [eax + 0x2c], 0
jne 0x10066a12
cmp dword [eax + 0x24], 0
je 0x10066a12
mov edi, dword [eax + 0xc]
cmp edi, dword [ebx]
jne 0x10066a12
mov edx, dword [eax + 0x28]
sub edx, dword [esp + 0x50]
mov esi, edx
neg esi
cmovs esi, edx
cmp esi, 0x96
ja 0x10066a12
mov ebp, ecx
mov edx, edi
mov edi, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x1c]
add ecx, dword [edi + 0x10]
mov edx, dword [edx]
mov eax, dword [0x1017f71c]
test al, 1
je 0x10066d49
mov esi, dword [0x1017f718]
mov eax, dword [esi + 4]
cmp ecx, dword [eax + edx]
mov ecx, ebp
jge 0x10066a2d
test byte [ecx + 0x3c], 8
mov eax, dword [ebx + 0x18]
je 0x10066a26
mov ecx, dword [eax + 0x24]
mov edi, dword [ebx + 0x1c]
cmp ecx, dword [edi + 0x24]
jl 0x10066a2d
mov edi, eax
jmp 0x10066a2d
mov edi, dword [ebx + 0x18]
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d7fe0
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0x10], ecx
or eax, 1
mov dword [0x1017f71c], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x1c]
mov dword [esp], ecx
push str.CBasePlayer__m_iHealth
call fcn.10005ce0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
cmp dword [esp + 0x30], 0x10
jb 0x10066a80
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
cmp dword [esp + 4], 0
je 0x10066aa3
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
and eax, 3
mov dword [esp + 8], eax
cmp ecx, 3
jae 0x10066aaa
mov ecx, 0x811c9dc5
xor edx, edx
jmp 0x10066af5
mov ecx, 0x811c9dc5
jmp 0x10066b14
mov esi, dword [esp + 4]
and esi, 0xfffffffc
mov ecx, 0x811c9dc5
xor edx, edx
mov eax, dword [esp]
movzx edi, byte [eax + edx]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 1]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 2]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 3]
xor edi, ecx
imul ecx, edi, 0x1000193
add edx, 4
cmp esi, edx
jne 0x10066abb
cmp dword [esp + 8], 0
je 0x10066b14
add edx, dword [esp]
xor esi, esi
movzx edi, byte [edx + esi]
xor edi, ecx
imul ecx, edi, 0x1000193
inc esi
cmp dword [esp + 8], esi
jne 0x10066b01
mov edx, dword [esp + 0xc]
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov esi, dword [eax + ecx*8 + 4]
cmp esi, dword [edx + 4]
je 0x10066f6c
add ecx, ecx
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 4]
cmp eax, dword [esi + 0x18]
jne 0x10066b5c
cmp dword [esi + 0x1c], 0x10
jb 0x10066b44
mov eax, dword [esi + 8]
jmp 0x10066b47
lea eax, [esi + 8]
push dword [esp + 4]
push eax
push dword [esp + 8]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10066b69
cmp esi, edi
je 0x10066f6c
mov esi, dword [esi + 4]
jmp 0x10066b30
add esi, 0x20
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov dword [0x1017f718], esi
mov edi, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x10066943
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
or eax, 1
mov dword [0x1017f71c], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x1c]
mov dword [esp], ecx
push str.CBasePlayer__m_iHealth
call fcn.10005ce0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
cmp dword [esp + 0x30], 0x10
jb 0x10066bc7
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
cmp dword [esp + 4], 0
je 0x10066bea
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
and eax, 3
mov dword [esp + 8], eax
cmp ecx, 3
jae 0x10066bf1
mov ecx, 0x811c9dc5
xor edx, edx
jmp 0x10066c3c
mov ecx, 0x811c9dc5
jmp 0x10066c5b
mov esi, dword [esp + 4]
and esi, 0xfffffffc
mov ecx, 0x811c9dc5
xor edx, edx
mov eax, dword [esp]
movzx edi, byte [eax + edx]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 1]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 2]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 3]
xor edi, ecx
imul ecx, edi, 0x1000193
add edx, 4
cmp esi, edx
jne 0x10066c02
cmp dword [esp + 8], 0
je 0x10066c5b
add edx, dword [esp]
xor esi, esi
movzx edi, byte [edx + esi]
xor edi, ecx
imul ecx, edi, 0x1000193
inc esi
cmp dword [esp + 8], esi
jne 0x10066c48
mov edx, dword [esp + 0xc]
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov esi, dword [eax + ecx*8 + 4]
cmp esi, dword [edx + 4]
je 0x10066f6c
add ecx, ecx
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 4]
cmp eax, dword [esi + 0x18]
jne 0x10066ca3
cmp dword [esi + 0x1c], 0x10
jb 0x10066c8b
mov eax, dword [esi + 8]
jmp 0x10066c8e
lea eax, [esi + 8]
push dword [esp + 4]
push eax
push dword [esp + 8]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10066cb0
cmp esi, edi
je 0x10066f6c
mov esi, dword [esi + 4]
jmp 0x10066c77
lea edi, [esi + 0x20]
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov dword [0x1017f718], edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
cmp ebp, dword [eax + ecx]
mov ecx, dword [esp + 0x14]
jl 0x1006699f
mov edi, dword [ebx + 0x1c]
jmp 0x10066a2d
or eax, 1
mov dword [0x1017f71c], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 8], ecx
push str.CBasePlayer__m_iHealth
call fcn.10005ce0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
cmp dword [esp + 0x30], 0x10
jb 0x10066d17
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
cmp dword [esp], 0
je 0x10066d3f
mov eax, dword [esp]
lea ecx, [eax - 1]
and eax, 3
mov dword [esp + 0xc], eax
cmp ecx, 3
jae 0x10066db7
mov ecx, 0x811c9dc5
xor edx, edx
jmp 0x10066e02
mov ecx, 0x811c9dc5
jmp 0x10066e22
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
or eax, 1
mov dword [0x1017f71c], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x1c]
mov dword [esp], ecx
push str.CBasePlayer__m_iHealth
call fcn.10005ce0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
cmp dword [esp + 0x30], 0x10
jb 0x10066d89
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
cmp dword [esp + 4], 0
je 0x10066e8c
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
and eax, 3
mov dword [esp + 8], eax
cmp ecx, 3
jae 0x10066e93
mov ecx, 0x811c9dc5
xor edx, edx
jmp 0x10066ede
mov esi, dword [esp]
and esi, 0xfffffffc
mov ecx, 0x811c9dc5
xor edx, edx
mov eax, dword [esp + 8]
movzx edi, byte [eax + edx]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 1]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 2]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 3]
xor edi, ecx
imul ecx, edi, 0x1000193
add edx, 4
cmp esi, edx
jne 0x10066dc8
cmp dword [esp + 0xc], 0
je 0x10066e22
add edx, dword [esp + 8]
xor esi, esi
movzx edi, byte [edx + esi]
xor edi, ecx
imul ecx, edi, 0x1000193
inc esi
cmp dword [esp + 0xc], esi
jne 0x10066e0f
mov edx, dword [esp + 0x10]
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov esi, dword [eax + ecx*8 + 4]
cmp esi, dword [edx + 4]
je 0x10066f6c
add ecx, ecx
mov edi, dword [eax + ecx*4]
mov eax, dword [esp]
cmp eax, dword [esi + 0x18]
jne 0x10066e68
cmp dword [esi + 0x1c], 0x10
jb 0x10066e51
mov eax, dword [esi + 8]
jmp 0x10066e54
lea eax, [esi + 8]
push dword [esp]
push eax
push dword [esp + 0x10]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10066e75
cmp esi, edi
je 0x10066f6c
mov esi, dword [esi + 4]
jmp 0x10066e3e
add esi, 0x20
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov dword [0x1017f718], esi
jmp 0x1006690f
mov ecx, 0x811c9dc5
jmp 0x10066efd
mov esi, dword [esp + 4]
and esi, 0xfffffffc
mov ecx, 0x811c9dc5
xor edx, edx
mov eax, dword [esp]
movzx edi, byte [eax + edx]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 1]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 2]
xor edi, ecx
imul ecx, edi, 0x1000193
movzx edi, byte [eax + edx + 3]
xor edi, ecx
imul ecx, edi, 0x1000193
add edx, 4
cmp esi, edx
jne 0x10066ea4
cmp dword [esp + 8], 0
je 0x10066efd
add edx, dword [esp]
xor esi, esi
movzx edi, byte [edx + esi]
xor edi, ecx
imul ecx, edi, 0x1000193
inc esi
cmp dword [esp + 8], esi
jne 0x10066eea
mov edx, dword [esp + 0xc]
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov esi, dword [eax + ecx*8 + 4]
cmp esi, dword [edx + 4]
je 0x10066f6c
add ecx, ecx
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 4]
cmp eax, dword [esi + 0x18]
jne 0x10066f41
cmp dword [esi + 0x1c], 0x10
jb 0x10066f29
mov eax, dword [esi + 8]
jmp 0x10066f2c
lea eax, [esi + 8]
push dword [esp + 4]
push eax
push dword [esp + 8]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10066f4a
cmp esi, edi
je 0x10066f6c
mov esi, dword [esi + 4]
jmp 0x10066f15
add esi, 0x20
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov dword [0x1017f718], esi
mov edi, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
jmp 0x10066a08
push 0x1016ba76
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
int3