Function at 0x10005da0
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
test ebx, ebx
je 0x10005e53
mov eax, dword [0x1017f704]
test al, 1
je 0x10005e6c
mov ebp, dword [0x1017f700]
mov ecx, dword [ebp + 4]
movzx ebp, word [ecx + ebx]
mov edx, dword [0x1017f5c0]
mov esi, dword [edx + 0x40]
mov edx, dword [esi]
mov edi, dword [edx + 8]
test al, 1
je 0x10005ec9
add ecx, ebx
movzx eax, word [ecx]
mov ecx, esi
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x31]
cmp ax, 0xfff9
ja 0x10005e4f
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x30]
test al, 1
jne 0x10005e4f
test eax, 0x800
je 0x10005e53
mov eax, dword [0x1017f70c]
test al, 1
je 0x10006152
mov edi, dword [0x1017f708]
mov eax, dword [edi + 4]
vmovss xmm0, dword [eax + ebx]
mov eax, dword [0x1017f610]
vucomiss xmm0, dword [eax + 0x10]
jae 0x10005e53
cmp bp, 0x40
je 0x10005e4f
test esi, esi
je 0x10005e53
cmp dword [esi + 0xcc], 1
jne 0x10005e53
mov bl, 1
jmp 0x10005e55
xor ebx, ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d7fe0
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 8
or eax, 1
mov dword [0x1017f704], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 4], eax
lea ecx, [esp + 0x1c]
mov dword [esp], ecx
push str.CBaseAttributableItem__m_iItemDefinitionIndex
call fcn.10005ce0
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x30], 0x10
jb 0x10005ea0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
test edi, edi
je 0x10005f30
lea ecx, [edi - 1]
mov eax, edi
and eax, 3
mov dword [esp + 8], eax
cmp ecx, 3
jae 0x10005f44
mov ecx, 0x811c9dc5
xor edx, edx
jmp 0x10005f8d
or eax, 1
mov dword [0x1017f704], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push str.CBaseAttributableItem__m_iItemDefinitionIndex
call fcn.10005ce0
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
cmp dword [esp + 0x30], 0x10
jb 0x10005f03
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
cmp dword [esp + 8], 0
je 0x10005f37
mov ecx, dword [esp + 8]
lea eax, [ecx - 1]
and ecx, 3
mov dword [esp + 0x10], ecx
cmp eax, 3
jae 0x10006019
mov dword [esp + 4], 0x811c9dc5
xor edx, edx
jmp 0x10006086
mov ecx, 0x811c9dc5
jmp 0x10005fac
mov dword [esp + 4], 0x811c9dc5
jmp 0x100060ac
mov esi, edi
and esi, 0xfffffffc
mov ecx, 0x811c9dc5
xor edx, edx
mov eax, dword [esp]
movzx ebp, byte [eax + edx]
xor ebp, ecx
imul ecx, ebp, 0x1000193
movzx ebp, byte [eax + edx + 1]
xor ebp, ecx
imul ecx, ebp, 0x1000193
movzx ebp, byte [eax + edx + 2]
xor ebp, ecx
imul ecx, ebp, 0x1000193
movzx ebp, byte [eax + edx + 3]
xor ebp, ecx
imul ecx, ebp, 0x1000193
add edx, 4
cmp esi, edx
jne 0x10005f53
cmp dword [esp + 8], 0
je 0x10005fac
add edx, dword [esp]
xor esi, esi
movzx ebp, byte [edx + esi]
xor ebp, ecx
imul ecx, ebp, 0x1000193
inc esi
cmp dword [esp + 8], esi
jne 0x10005f99
mov edx, dword [esp + 4]
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov ebp, dword [eax + ecx*8 + 4]
cmp ebp, dword [edx + 4]
je 0x1000628c
add ecx, ecx
mov esi, dword [eax + ecx*4]
cmp edi, dword [ebp + 0x18]
je 0x10005fdd
cmp ebp, esi
je 0x1000628c
mov ebp, dword [ebp + 4]
cmp edi, dword [ebp + 0x18]
jne 0x10005fcd
cmp dword [ebp + 0x1c], 0x10
jb 0x10005fe8
mov eax, dword [ebp + 8]
jmp 0x10005feb
lea eax, [ebp + 8]
push edi
push eax
push dword [esp + 8]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10005fcd
add ebp, 0x20
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov dword [0x1017f700], ebp
mov eax, dword [0x1017f704]
jmp 0x10005dd1
mov eax, dword [esp + 8]
and eax, 0xfffffffc
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x811c9dc5
xor edx, edx
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + edx]
xor eax, dword [esp + 4]
imul eax, eax, 0x1000193
mov dword [esp], eax
mov eax, ecx
mov dword [esp + 0xc], ecx
movzx ecx, byte [ecx + edx + 1]
xor ecx, dword [esp]
imul ecx, ecx, 0x1000193
mov dword [esp], ecx
movzx ecx, byte [eax + edx + 2]
xor ecx, dword [esp]
imul eax, ecx, 0x1000193
mov ecx, dword [esp + 0xc]
movzx ecx, byte [ecx + edx + 3]
xor ecx, eax
imul eax, ecx, 0x1000193
mov dword [esp + 4], eax
add edx, 4
cmp dword [esp + 0x18], edx
jne 0x1000602e
cmp dword [esp + 0x10], 0
je 0x100060ac
add edx, dword [esp + 0xc]
xor eax, eax
movzx ecx, byte [edx + eax]
xor ecx, dword [esp + 4]
imul ecx, ecx, 0x1000193
mov dword [esp + 4], ecx
inc eax
cmp dword [esp + 0x10], eax
jne 0x10006093
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
and edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0xc]
mov dword [esp + 4], edx
mov edx, dword [eax + edx*8 + 4]
mov dword [esp], edx
cmp edx, dword [ecx + 4]
je 0x1000628c
mov ecx, dword [esp + 4]
add ecx, ecx
mov eax, dword [eax + ecx*4]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp]
cmp eax, dword [ecx + 0x18]
jne 0x10006113
mov eax, dword [esp]
cmp dword [eax + 0x1c], 0x10
jb 0x100060f8
mov eax, dword [esp]
mov eax, dword [eax + 8]
jmp 0x100060fe
mov eax, dword [esp]
add eax, 8
push dword [esp + 8]
push eax
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1000612b
mov eax, dword [esp + 4]
cmp dword [esp], eax
je 0x1000628c
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [esp], eax
jmp 0x100060db
mov eax, dword [esp]
add eax, 0x20
mov dword [esp + 8], eax
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov eax, dword [esp + 8]
mov dword [0x1017f700], eax
mov eax, dword [esp]
mov ecx, dword [eax + 0x24]
jmp 0x10005dee
or eax, 1
mov dword [0x1017f70c], eax
mov eax, dword [0x1017f5c4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 4], ecx
push str.CBaseCombatWeapon__m_flNextSecondaryAttack
call fcn.10005ce0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
cmp dword [esp + 0x30], 0x10
jb 0x1000618b
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
cmp dword [esp], 0
je 0x100061ac
mov eax, dword [esp]
lea ecx, [eax - 1]
and eax, 3
mov dword [esp + 8], eax
cmp ecx, 3
jae 0x100061b3
mov ecx, 0x811c9dc5
xor edx, edx
jmp 0x10006204
mov ecx, 0x811c9dc5
jmp 0x10006224
mov eax, dword [esp]
and eax, 0xfffffffc
mov dword [esp + 0xc], eax
mov ecx, 0x811c9dc5
xor edx, edx
mov edi, dword [esp + 4]
movzx eax, byte [edi + edx]
xor eax, ecx
imul eax, eax, 0x1000193
movzx ecx, byte [edi + edx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
movzx ecx, byte [edi + edx + 2]
xor ecx, eax
imul eax, ecx, 0x1000193
movzx ecx, byte [edi + edx + 3]
xor ecx, eax
imul ecx, ecx, 0x1000193
add edx, 4
cmp dword [esp + 0xc], edx
jne 0x100061c8
cmp dword [esp + 8], 0
je 0x10006224
add edx, dword [esp + 4]
xor edi, edi
movzx eax, byte [edx + edi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edi
cmp dword [esp + 8], edi
jne 0x10006211
mov edx, dword [esp + 0x10]
and ecx, dword [edx + 0x18]
mov eax, dword [edx + 0xc]
mov edi, dword [eax + ecx*8 + 4]
cmp edi, dword [edx + 4]
je 0x1000628c
add ecx, ecx
mov eax, dword [eax + ecx*4]
mov dword [esp + 8], eax
mov eax, dword [esp]
cmp eax, dword [edi + 0x18]
jne 0x1000626a
cmp dword [edi + 0x1c], 0x10
jb 0x10006253
mov eax, dword [edi + 8]
jmp 0x10006256
lea eax, [edi + 8]
push dword [esp]
push eax
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10006275
cmp edi, dword [esp + 8]
je 0x1000628c
mov edi, dword [edi + 4]
jmp 0x10006240
add edi, 0x20
lea ecx, [esp + 0x1c]
call fcn.100026e0
mov dword [0x1017f708], edi
jmp 0x10005e28
push 0x1016ba76
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
int3