Function at 0x10016e70
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 0x1007ccce
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10e8
call fcn.1007b840
mov eax, dword [0x1009400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [0x101db536], 0
call dword [0x101db674]
mov ecx, eax
test ecx, ecx
je 0x100176d1
mov eax, dword [ecx]
mov eax, dword [eax + 0x150]
call eax
mov esi, eax
push 0x20000
lea eax, [esi + 0xe4]
mov ecx, eax
mov dword [ebp - 0x1060], eax
call dword [sym.imp.Common.dll_public:_class_CEquip____thiscall_CEquipManager::FindFirst_unsigned_int_]
push eax
call dword [sym.imp.Common.dll_public:_static_class_CEEngine____cdecl_CEEngine::cast_class_CEquip__]
add esp, 4
mov dword [0x101db658], eax
mov ecx, eax
call dword [sym.imp.Common.dll_public:_struct_Archetype::Equipment_const____thiscall_CEquip::EquipArch_void_const]
mov ecx, esi
mov dword [0x101db654], eax
movss xmm0, dword [eax + 0x70]
movss dword [0x101db648], xmm0
call dword [sym.imp.Common.dll_public:_struct_Archetype::Ship_const____thiscall_CShip::shiparch_void_const]
movss xmm0, dword [eax + 0x104]
mov eax, dword [0x101db654]
movss dword [0x101db650], xmm0
addss xmm0, dword [eax + 0x74]
movss dword [0x101db64c], xmm0
movss xmm0, dword [eax + 0x80]
mulss xmm0, dword [0x1008b9dc]
call fcn.1007b560
mov ecx, 0x101f4c20
mov dword [0x101db660], eax
call fcn.1001c580
mov ecx, 0x101f4c40
call fcn.1001c7b0
mov edx, dword [0x101f4418]
push ecx
mov ecx, dword [0x101f4414]
call fcn.1001fb20
mov eax, dword [0x101f4414]
add esp, 4
mov ecx, esi
mov dword [0x101f4418], eax
mov dword [0x10094140], 0xffffffff
call dword [sym.imp.Common.dll_public:_struct_Archetype::Root____thiscall_CObject::get_archetype_void_const]
mov ecx, eax
call dword [sym.imp.Common.dll_public:_unsigned_int___thiscall_Archetype::Root::get_id_void_const]
mov dword [ebp - 0x10b0], eax
lea eax, [ebp - 0x10b0]
push eax
lea eax, [ebp - 0x10e0]
push eax
call fcn.10010490
sub esp, 0x18
mov ecx, esp
mov esi, dword [eax]
mov dword [ebp - 0x1094], esi
lea eax, [esi + 0x58]
push eax
call fcn.10007ae0
lea ecx, [ebp - 0x44]
call fcn.1002b590
add esp, 0x18
mov ecx, 0x101da3e4
push eax
call fcn.1001c930
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x1001702c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017022
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017022
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov ecx, dword [esi + 0x50]
mov eax, 0x92492493
sub ecx, dword [esi + 0x4c]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1084], eax
je 0x100176d1
push eax
mov ecx, 0x101f4414
call fcn.1001c6e0
mov eax, dword [ebp - 0x1084]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1050], eax
nop dword [eax]
mov eax, dword [ebp - 0x1094]
mov ecx, dword [0x101f4414]
add ecx, esi
mov edx, dword [eax + 0x4c]
add edx, edi
cmp ecx, edx
je 0x1001709a
cmp dword [edx + 0x14], 0x10
mov eax, edx
jb 0x10017091
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.10004a90
add edi, 0x38
add esi, 0x18
sub dword [ebp - 0x1050], 1
jne 0x10017070
push 0x24
mov dword [ebp - 0x10d0], 0
mov dword [ebp - 0x10cc], 0
mov dword [ebp - 0x10c8], 0
call fcn.1004d771
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10c4], 0
mov dword [ebp - 0x10c0], 0
mov dword [ebp - 0x10bc], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c4]
push eax
push 0x10
mov dword [ebp - 0x10b8], 7
mov dword [ebp - 0x10b4], 8
mov dword [ebp - 0x10d0], 0x3f800000
call fcn.10007d90
push 0xffffffffffffffff
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CEquipTraverser::constructor_int_]
mov ecx, dword [ebp - 0x1060]
lea eax, [ebp - 0x848]
push eax
mov eax, dword [sym.imp.Common.dll_public:_class_CEquip____thiscall_CEquipManager::Traverse_class_CEquipTraverser__]
mov dword [ebp - 0x1050], eax
call eax
mov esi, dword [sym.imp.Common.dll_public:_static_class_CEGun_const____cdecl_CEGun::cast_class_CEquip_const__]
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov dword [ebp - 0x1088], esi
mov dword [ebp - 0x1090], ecx
test eax, eax
je 0x100172c1
push eax
call esi
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1064], ecx
test ecx, ecx
je 0x100172a6
mov eax, dword [ecx]
lea edx, [ebp - 0x108c]
push edx
mov eax, dword [eax + 0x60]
call eax
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x106c], 0xf
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100171d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1080]
call fcn.10004a90
xor edi, edi
cmp dword [ebp - 0x1070], edi
jbe 0x1001722b
cmp dword [ebp - 0x106c], 0x10
lea edx, [ebp - 0x1080]
lea esi, [ebp - 0x1080]
cmovae edx, dword [ebp - 0x1080]
cmovae esi, dword [ebp - 0x1080]
movsx eax, byte [edx + edi]
push eax
call dword [ebp - 0x1090]
mov byte [esi + edi], al
add esp, 4
inc edi
cmp edi, dword [ebp - 0x1070]
jb 0x100171f0
movups xmm0, xmmword [ebp - 0x1080]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x1070]
movq qword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10d8]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.1001f280
mov ecx, dword [ebp - 0x1064]
mov eax, dword [eax]
mov byte [ebp - 4], 2
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100172a0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10017296
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001701c
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov esi, dword [ebp - 0x1088]
mov ecx, dword [ebp - 0x1060]
lea eax, [ebp - 0x848]
push eax
call dword [ebp - 0x1050]
test eax, eax
jne 0x10017180
push 0xffffffffffffffff
lea ecx, [ebp - 0x1048]
call dword [sym.imp.Common.dll_public:_void___thiscall_CEquipTraverser::constructor_int_]
mov ecx, dword [ebp - 0x1060]
lea eax, [ebp - 0x1048]
push eax
call dword [ebp - 0x1050]
test eax, eax
je 0x100176c6
nop word [eax + eax]
push eax
call esi
add esp, 4
mov dword [ebp - 0x10a4], eax
test eax, eax
je 0x100176ab
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x1084]
push ecx
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.10020ca0
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov edx, dword [ebp - 0x2c]
sub ecx, edx
sar ecx, 2
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x105c], edx
cmp esi, ecx
jae 0x10017358
lea eax, [edx + esi*4]
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x28], eax
jmp 0x100173a6
jbe 0x100173a6
mov eax, dword [ebp - 0x24]
sub eax, edx
sar eax, 2
cmp esi, eax
jbe 0x10017384
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10020ca0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1058], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x105c], eax
jmp 0x100173a6
mov eax, esi
sub eax, ecx
lea esi, [eax*4]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x10a4]
lea edx, [ebp - 0x10d4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x106c], 0xf
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100173e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1080]
call fcn.10004a90
mov esi, dword [ebp - 0x1070]
xor edi, edi
test esi, esi
je 0x1001743f
cmp dword [ebp - 0x106c], 0x10
lea edx, [ebp - 0x1080]
lea esi, [ebp - 0x1080]
cmovae edx, dword [ebp - 0x1080]
cmovae esi, dword [ebp - 0x1080]
movsx eax, byte [edx + edi]
push eax
call dword [ebp - 0x1090]
mov byte [esi + edi], al
add esp, 4
mov esi, dword [ebp - 0x1070]
inc edi
cmp edi, esi
jb 0x10017402
movups xmm0, xmmword [ebp - 0x1080]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x1070]
movq qword [ebp - 0x34], xmm0
mov byte [ebp - 4], 5
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x105c]
sub eax, edx
mov dword [ebp - 0x10a8], edx
mov dword [ebp - 0x109c], eax
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x1054], edx
mov edx, dword [ebp - 0x1080]
mov dword [ebp - 0x104c], eax
mov eax, dword [ebp - 0x106c]
mov dword [ebp - 0x10a0], ecx
mov dword [ebp - 0x10ac], eax
mov dword [ebp - 0x1064], edx
mov eax, dword [ebp - 0x1094]
lea edi, [ebp - 0x44]
mov eax, dword [eax + 0x4c]
add eax, ecx
mov dword [ebp - 0x108c], eax
add eax, 0x18
cmp dword [ebp - 0x10ac], 0x10
mov dword [ebp - 0x1098], eax
cmovae edi, edx
xor ecx, ecx
mov edx, 0x811c9dc5
test esi, esi
je 0x100174ed
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100174d6
mov eax, dword [ebp - 0x1098]
push edx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10e8]
push ecx
mov ecx, eax
call fcn.10012800
mov edi, dword [eax + 4]
test edi, edi
jne 0x10017510
mov edi, dword [ebp - 0x1098]
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x108c]
cmp edi, dword [eax + 0x1c]
jne 0x10017533
mov eax, dword [ebp - 0x1054]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x109c]
mov dword [ecx + eax], 0
jmp 0x10017564
lea eax, [edi + 0x20]
push eax
lea eax, [ebp - 0x10f0]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.1001f280
mov ecx, dword [ebp - 0x1054]
mov edx, dword [ebp - 0x109c]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov dword [edx + ecx], eax
mov eax, ecx
movss xmm0, dword [edi + 0x38]
mov ecx, dword [ebp - 0x10a0]
mov edx, dword [ebp - 0x1064]
add ecx, 0x38
movss dword [eax], xmm0
add eax, 4
sub dword [ebp - 0x104c], 1
mov dword [ebp - 0x10a0], ecx
mov dword [ebp - 0x1054], eax
jne 0x100174a4
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x10f8]
push eax
call fcn.1001f6f0
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
add esi, 0xc
cmp esi, eax
je 0x10017602
mov edi, dword [ebp - 0x1058]
sub edi, dword [ebp - 0x105c]
mov ecx, dword [esi]
mov edx, edi
mov eax, dword [esi + 8]
sub eax, ecx
sar edx, 2
sar eax, 2
mov dword [ebp - 0x104c], ecx
cmp edx, eax
jbe 0x100175e7
push edx
mov ecx, esi
call fcn.10020df0
mov ecx, dword [esi]
mov dword [ebp - 0x104c], ecx
push edi
push dword [ebp - 0x105c]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x104c]
add esp, 0xc
add eax, edi
mov dword [esi + 4], eax
add esi, 0xc
lea eax, [ebp - 0x20]
cmp esi, eax
je 0x10017659
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x10a8]
mov ecx, dword [esi]
mov edx, edi
mov eax, dword [esi + 8]
sub eax, ecx
sar edx, 2
sar eax, 2
mov dword [ebp - 0x104c], ecx
cmp edx, eax
jbe 0x1001763e
push edx
mov ecx, esi
call fcn.10020df0
mov ecx, dword [esi]
mov dword [ebp - 0x104c], ecx
push edi
push dword [ebp - 0x10a8]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x104c]
add esp, 0xc
add eax, edi
mov dword [esi + 4], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10ac]
cmp eax, 0x10
jb 0x10017699
mov edx, dword [ebp - 0x1064]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001768f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001701c
push ecx
push edx
call fcn.1004d7a1
add esp, 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10017700
mov esi, dword [ebp - 0x1088]
mov ecx, dword [ebp - 0x1060]
lea eax, [ebp - 0x1048]
push eax
call dword [ebp - 0x1050]
test eax, eax
jne 0x100172f0
lea ecx, [ebp - 0x10d0]
call fcn.100177a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d763
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret