Function at 0x1013c230
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 0x10169a0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1b8
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea ecx, [ebx + 8]
cmp dword [ebx + 0x1c], 0xf
mov edx, dword [ebx + 0x18]
cmova ecx, dword [ebx + 8]
push 8
push str.Original
call fcn.100971f0
add esp, 8
mov edi, 0x7fffffff
test al, al
jne 0x1013c44c
mov ecx, dword [0x1033f488]
mov eax, edi
sub eax, ecx
cmp eax, 0xa
jb 0x1013cb79
cmp dword [0x1033f48c], 0xf
mov eax, 0x1033f478
push 0xa
cmova eax, dword [0x1033f478]
push str.Materials
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x118]
call fcn.100dc600
push 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
mov esi, 0x21
push 0x10275550
mov dword [ebp - 0x1c], esi
call fcn.100a2a40
mov dword [ebp - 0x90], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x8c], 0
or esi, 0x40
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 2
lea eax, [ebx + 8]
push dword [ebx + 0x18]
or esi, 2
lea ecx, [ebp - 0xa0]
cmp dword [ebx + 0x1c], 0xf
mov dword [ebp - 0x1c], esi
cmova eax, dword [ebx + 8]
push eax
call fcn.100a2a40
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x74], 0
or esi, 0x80
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 4
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x88]
or esi, 4
push str..vmt
mov dword [ebp - 0x1c], esi
call fcn.100a2a40
mov dword [ebp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
or esi, 0x100
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x70]
or esi, 8
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x100]
call fcn.100f1df0
add esp, 4
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x100]
or esi, 0x10
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.100e6500
mov byte [ebp - 0x15], 0
test al, al
je 0x1013c450
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x14]
test al, 0x10
je 0x1013c46b
and eax, 0xffffffef
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x14], eax
call fcn.100ee280
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test al, 8
je 0x1013c4c5
mov ecx, dword [ebp - 0x5c]
and eax, 0xfffffff7
mov dword [ebp - 0x14], eax
cmp ecx, 0xf
jbe 0x1013c4b3
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c4a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013c5c1
push ecx
push edx
call fcn.10160098
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 4], 2
test al, 4
je 0x1013c525
mov ecx, dword [ebp - 0x74]
and eax, 0xfffffffb
mov dword [ebp - 0x14], eax
cmp ecx, 0xf
jbe 0x1013c510
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c503
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013c5c1
push ecx
push edx
call fcn.10160098
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 4], 1
test al, 2
je 0x1013c58a
mov ecx, dword [ebp - 0x8c]
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
cmp ecx, 0xf
jbe 0x1013c56f
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c562
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013c5c1
push ecx
push edx
call fcn.10160098
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
mov dword [ebp - 4], 0
test al, 1
je 0x1013c5d1
mov ecx, dword [ebp - 0x104]
cmp ecx, 0xf
jbe 0x1013c5d1
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c5c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013c5c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
cmp byte [ebp - 0x15], 0
jne 0x1013cb2e
cmp dword [ebx + 0x1c], 0xf
lea esi, [ebx + 8]
mov edx, 0x811c9dc5
cmova esi, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
jbe 0x1013c604
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebx + 0x18]
jb 0x1013c5f2
push edx
lea eax, [ebx + 8]
mov ecx, 0x1033f080
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100966f0
cmp dword [eax + 4], 0
jne 0x1013cb2e
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x24], 0
push 0x20
mov byte [ebp - 4], 6
call fcn.1006da60
movups xmm0, xmmword [str._VertexLitGeneric__n_n_t_n]
mov ecx, dword [0x1033eea4]
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], 0x1f
movups xmmword [eax], xmm0
push 0x20
movq xmm0, qword [0x10279cb8]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1013c6ad
cmp dword [ebx + 0x1c], 0xf
lea ecx, [ebx + 8]
cmova ecx, dword [ebx + 8]
push ecx
mov ecx, eax
call fcn.1015e2e0
mov esi, eax
jmp 0x1013c6af
xor esi, esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0xf
lea eax, [ebx + 8]
cmova ecx, dword [ebp - 0x3c]
cmp dword [ebx + 0x1c], 0xf
cmova eax, dword [ebx + 8]
sub esp, 8
push ecx
push eax
push esi
call fcn.1015e230
push 8
push str.m_pMat_s
lea edx, [ebx + 8]
lea ecx, [ebp - 0x100]
call fcn.100e3fd0
add esp, 8
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0xf
jbe 0x1013c6fa
mov edx, dword [edx]
mov ecx, dword [0x1033eaa8]
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov eax, dword [0x1033f0c4]
cmp eax, dword [0x1033f0c8]
je 0x1013c730
mov dword [eax], esi
add dword [0x1033f0c4], 4
jmp 0x1013c742
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov ecx, 0x1033f0c0
call fcn.1013e260
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x40], esi
cmp ecx, 0xf
jbe 0x1013c785
mov edx, dword [ebp - 0x100]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c77b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013c77b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
lea eax, [ebx + 8]
mov ecx, 0x1033f080
push eax
call fcn.1013dc10
mov ecx, dword [ebp - 0x40]
mov esi, eax
lea eax, [ebp - 0x3c]
mov dword [esi], ecx
lea ecx, [esi + 4]
cmp ecx, eax
je 0x1013c7b7
cmp dword [ebp - 0x28], 0xf
mov edx, eax
push dword [ebp - 0x2c]
cmova edx, dword [ebp - 0x3c]
push edx
call fcn.100938b0
mov al, byte [ebp - 0x24]
mov byte [esi + 0x1c], al
mov ecx, dword [0x1033f488]
sub edi, ecx
cmp edi, 0xa
jb 0x1013cb7e
cmp dword [0x1033f48c], 0xf
mov eax, 0x1033f478
push 0xa
cmova eax, dword [0x1033f478]
push str.Materials
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xe8]
call fcn.100dc600
push 1
push 0x10275550
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 0
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xbc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc0], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xd0]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebx + 8]
mov byte [ebp - 4], 0xa
cmp dword [ebx + 0x1c], 0xf
push dword [ebx + 0x18]
cmova eax, dword [ebx + 8]
push eax
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0xa4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa8], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xb8]
mov dword [eax + 0x14], 0xf
push 4
mov byte [eax], 0
push str..vmt
mov byte [ebp - 4], 0xb
call fcn.100a2a40
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x1c8]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x44], 0xf
cmova eax, dword [ebp - 0x58]
sub esp, 0xc
push eax
call fcn.100f08b0
mov eax, dword [ebp - 0x1c8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1cc], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1013c983
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c979
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013ca73
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x1013c9d3
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013c9c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013ca73
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x1013ca28
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013ca1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013ca73
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xd4]
cmp ecx, 0xf
jbe 0x1013ca83
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013ca79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013ca79
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
cmp dword [ebp - 0x28], 0xf
lea edx, [ebp - 0x3c]
push dword [ebp - 0x2c]
cmova edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
call fcn.100f1900
add esp, 4
lea ecx, [ebp - 0x1c4]
call fcn.100f0b30
test eax, eax
jne 0x1013cae1
push eax
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1c8]
call fcn.100efc20
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xf
jbe 0x1013cb1c
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013cb12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013cb54
push ecx
push edx
call fcn.10160098
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x1013cb64
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013cb5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013cb5a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10160098
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.1006d780
call fcn.1006d780
int3