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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1005d83f
cmp dword [eax + 0x10], 1
jl 0x1005d83f
call fcn.10056230
test al, 1
je 0x1005d358
mov eax, dword [esi + 4]
cmp dword [eax + 0x1c], 2
jle 0x1005d358
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x28], 3
jge 0x1005d358
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10056230
test al, 2
je 0x1005d5aa
mov edx, dword [0x1018bff4]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x1005d4b8
mov eax, dword [edx + 0xc]
dec eax
add ecx, eax
mov eax, dword [edx + 8]
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x2c], 0
jne 0x1005d4b8
mov ecx, dword [edi + 0xc]
cmp ecx, dword [esi]
jne 0x1005d4b8
mov eax, dword [edi + 0x28]
sub eax, dword [ebp + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x96
jg 0x1005d4b8
mov eax, dword [ecx]
mov ecx, dword [0x1018bb6c]
mov dword [ebp - 0x10], eax
test cl, 1
jne 0x1005d492
mov eax, dword [0x1018bfd0]
or ecx, 1
push 0x16
mov dword [0x1018bb6c], ecx
lea ecx, [ebp - 0x28]
vpxor xmm0, xmm0, xmm0
push str.CBasePlayer__m_iHealth
mov dword [ebp - 0xc], eax
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
cmova eax, ebx
xor edx, edx
cmp dword [ebp - 0x18], edx
jbe 0x1005d435
mov esi, eax
nop dword [eax]
movzx eax, byte [esi + edx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, dword [ebp - 0x18]
jb 0x1005d420
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10008e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x1005d84b
add eax, 0x20
mov dword [0x1018bb5c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1005d48c
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x1005d482
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d7ee
push ecx
push ebx
call fcn.10112642
add esp, 8
mov ecx, dword [0x1018bb6c]
mov eax, dword [0x1018bb5c]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edx, dword [eax + edx]
sub edx, dword [edi + 0x1c]
test edx, edx
jle 0x1005d4be
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], edx
jle 0x1005d4be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x1018bb6c]
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test cl, 1
jne 0x1005d589
mov eax, dword [0x1018bfd0]
or ecx, 1
push 0x16
mov dword [0x1018bb6c], ecx
lea ecx, [ebp - 0x28]
vpxor xmm0, xmm0, xmm0
push str.CBasePlayer__m_iHealth
mov dword [ebp - 0x10], eax
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea ebx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
cmova ebx, edi
xor edx, edx
cmp dword [ebp - 0x18], edx
jbe 0x1005d532
nop
movzx eax, byte [edx + ebx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, dword [ebp - 0x18]
jb 0x1005d520
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10008e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x1005d84b
add eax, 0x20
mov dword [0x1018bb5c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1005d589
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1005d57f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d7ee
push ecx
push edi
call fcn.10112642
add esp, 8
mov eax, dword [0x1018bb5c]
mov edx, dword [esi + 0x1c]
mov edi, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0x10]
cmp eax, dword [edi + ecx]
jl 0x1005d5aa
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10056230
test al, 4
je 0x1005d81b
mov eax, dword [0x1018bff0]
mov ecx, dword [eax + 0x38]
cmp ecx, 2
je 0x1005d5cd
cmp ecx, 3
jne 0x1005d81b
cmp dword [eax + 0x30], 0
mov ebx, dword [0x1018bb6c]
je 0x1005d6d2
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test bl, 1
jne 0x1005d6af
mov eax, dword [0x1018bfd0]
lea ecx, [ebp - 0x28]
push 0x16
vpxor xmm0, xmm0, xmm0
or ebx, 1
mov dword [ebp - 0x10], eax
push str.CBasePlayer__m_iHealth
mov dword [0x1018bb6c], ebx
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea ebx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
cmova ebx, edi
xor edx, edx
cmp dword [ebp - 0x18], edx
jbe 0x1005d652
nop dword [eax]
movzx eax, byte [ebx + edx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, dword [ebp - 0x18]
jb 0x1005d640
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10008e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x1005d84b
add eax, 0x20
mov dword [0x1018bb5c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1005d6a9
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1005d69f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d7ee
push ecx
push edi
call fcn.10112642
add esp, 8
mov ebx, dword [0x1018bb6c]
mov eax, dword [0x1018bb5c]
mov edi, dword [esi + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x10]
add ecx, ecx
cmp ecx, dword [eax + edx]
jl 0x1005d6d2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x1018bff4]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x1005d81b
mov eax, dword [edx + 0xc]
dec eax
add ecx, eax
mov eax, dword [edx + 8]
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x2c], 0
jne 0x1005d81b
cmp dword [edi + 0x24], 0
je 0x1005d81b
mov ecx, dword [esi]
cmp dword [edi + 0xc], ecx
jne 0x1005d81b
mov eax, dword [edi + 0x28]
sub eax, dword [ebp + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x96
jg 0x1005d81b
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
test bl, 1
jne 0x1005d7fe
mov eax, dword [0x1018bfd0]
lea ecx, [ebp - 0x28]
push 0x16
vpxor xmm0, xmm0, xmm0
or ebx, 1
mov dword [ebp - 0x10], eax
push str.CBasePlayer__m_iHealth
mov dword [0x1018bb6c], ebx
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
cmova eax, ebx
xor edx, edx
cmp dword [ebp - 0x18], edx
jbe 0x1005d7a5
mov esi, eax
nop word [eax + eax]
movzx eax, byte [esi + edx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, dword [ebp - 0x18]
jb 0x1005d790
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10008e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x1005d84b
add eax, 0x20
mov dword [0x1018bb5c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1005d7fe
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x1005d7f4
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d7f4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.10112642
add esp, 8
mov edx, dword [esi + 0x1c]
mov eax, dword [0x1018bb5c]
mov ecx, dword [edx + 0x10]
add ecx, dword [edi + 0x1c]
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0xc]
cmp ecx, dword [edi + eax]
jge 0x1005d59f
call fcn.10056230
test al, 5
jne 0x1005d34c
call fcn.10056230
test al, 8
je 0x1005d83f
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [eax + 0x28]
jl 0x1005d842
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
int3