Function at 0x101394ad
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 0x10164bbf
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], 0x10
mov edx, dword [ebx + 0x18]
cmovae ecx, dword [ebx + 8]
push 8
push str.Original
call fcn.100985d0
add esp, 8
mov edi, 0x7fffffff
test al, al
jne 0x10139688
mov ecx, dword [0x1033a640]
mov eax, edi
sub eax, ecx
cmp eax, 0xa
jb 0x10139dd7
cmp dword [0x1033a644], 0x10
mov eax, 0x1033a630
push 0xa
cmovae eax, dword [0x1033a630]
push str.Materials
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x118]
call fcn.100da740
push 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
mov esi, 0x21
push 0x102702c4
mov dword [ebp - 0x1c], esi
call fcn.100a3d70
mov dword [ebp - 0x90], 0
or esi, 0x40
mov dword [ebp - 0x8c], 0
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0xa0], xmm0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [ebp - 0xa0], xmm0
vmovq xmm0, qword [eax + 0x10]
vmovq 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], 0x10
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebx + 8]
push eax
call fcn.100a3d70
mov dword [ebp - 0x78], 0
or esi, 0x80
mov dword [ebp - 0x74], 0
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x88], xmm0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [ebp - 0x88], xmm0
vmovq xmm0, qword [eax + 0x10]
vmovq 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.100a3d70
mov dword [ebp - 0x60], 0
or esi, 0x100
mov dword [ebp - 0x5c], 0
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x70], xmm0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [ebp - 0x70], xmm0
vmovq xmm0, qword [eax + 0x10]
vmovq 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.100ef4b0
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.100e39a0
mov byte [ebp - 0x15], 0
test al, al
je 0x1013968c
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x14]
test al, 0x10
je 0x101396a7
and eax, 0xffffffef
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x14], eax
call fcn.100eb8a0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test al, 8
je 0x10139701
mov ecx, dword [ebp - 0x5c]
and eax, 0xfffffff7
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x101396ef
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101396e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101397fd
push ecx
push edx
call fcn.1015b698
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 0x10139761
mov ecx, dword [ebp - 0x74]
and eax, 0xfffffffb
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x1013974c
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013973f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101397fd
push ecx
push edx
call fcn.1015b698
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 0x101397c6
mov ecx, dword [ebp - 0x8c]
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
cmp ecx, 0x10
jb 0x101397ab
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013979e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101397fd
push ecx
push edx
call fcn.1015b698
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 0x1013980d
mov ecx, dword [ebp - 0x104]
cmp ecx, 0x10
jb 0x1013980d
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139803
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10139803
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015b698
add esp, 8
cmp byte [ebp - 0x15], 0
jne 0x10139d8c
cmp dword [ebx + 0x1c], 0x10
lea esi, [ebx + 8]
mov edx, 0x811c9dc5
cmovae esi, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
jbe 0x10139842
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebx + 0x18]
jb 0x10139830
push edx
lea eax, [ebx + 8]
mov ecx, 0x1033a5b0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10097b50
mov ecx, dword [0x1033a5b4]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [0x1033a5b4]
jne 0x10139d8c
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x40], 0
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.1006efc0
vmovdqu xmm0, xmmword [str._VertexLitGeneric__n_n_t_n]
mov ecx, dword [0x1033a400]
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], 0x1f
vmovdqu xmmword [eax], xmm0
vmovq xmm0, qword [0x10274cc8]
vmovq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx]
push 0x20
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x101398ff
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebx + 8]
cmovae ecx, dword [ebx + 8]
push ecx
mov ecx, eax
call fcn.10159730
mov esi, eax
jmp 0x10139901
xor esi, esi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
lea eax, [ebx + 8]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebx + 0x1c], 0x10
cmovae eax, dword [ebx + 8]
sub esp, 8
push ecx
push eax
push esi
call fcn.10159680
push 8
push str.m_pMat_s
lea edx, [ebx + 8]
lea ecx, [ebp - 0x100]
call fcn.100e15c0
add esp, 8
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0x10
jb 0x1013994c
mov edx, dword [edx]
mov ecx, dword [0x10339f80]
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 [0x1033a5f4]
cmp eax, dword [0x1033a5f8]
je 0x10139982
mov dword [eax], esi
add dword [0x1033a5f4], 4
jmp 0x10139994
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov ecx, 0x1033a5f0
call fcn.1013b4e0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x40], esi
cmp ecx, 0x10
jb 0x101399d7
mov edx, dword [ebp - 0x100]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101399cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101399cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015b698
add esp, 8
lea eax, [ebx + 8]
mov ecx, 0x1033a5b0
push eax
call fcn.1013aea0
mov ecx, dword [ebp - 0x40]
mov esi, eax
lea eax, [ebp - 0x3c]
mov dword [esi], ecx
lea ecx, [esi + 4]
cmp ecx, eax
je 0x10139a09
cmp dword [ebp - 0x28], 0x10
mov edx, eax
push dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x3c]
push edx
call fcn.10094b10
mov al, byte [ebp - 0x24]
mov byte [esi + 0x1c], al
mov ecx, dword [0x1033a640]
sub edi, ecx
cmp edi, 0xa
jb 0x10139ddc
cmp dword [0x1033a644], 0x10
mov eax, 0x1033a630
push 0xa
cmovae eax, dword [0x1033a630]
push str.Materials
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xe8]
call fcn.100da740
push 1
push 0x102702c4
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 9
call fcn.100a3d70
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [ebp - 0xd0], xmm0
vmovq xmm0, qword [eax + 0x10]
vmovq 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], 0x10
push dword [ebx + 0x18]
cmovae eax, dword [ebx + 8]
push eax
call fcn.100a3d70
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [ebp - 0xb8], xmm0
vmovq xmm0, qword [eax + 0x10]
vmovq 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.100a3d70
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
vmovdqu xmm0, xmmword [eax]
vmovdqu xmmword [ebp - 0x58], xmm0
vmovq xmm0, qword [eax + 0x10]
vmovq 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], 0x10
cmovae eax, dword [ebp - 0x58]
sub esp, 0xc
push eax
call fcn.100edf50
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, 0x10
jb 0x10139be1
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139bd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10139cd1
push ecx
push edx
call fcn.1015b698
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, 0x10
jb 0x10139c31
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139c27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10139cd1
push ecx
push edx
call fcn.1015b698
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, 0x10
jb 0x10139c86
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139c7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10139cd1
push ecx
push edx
call fcn.1015b698
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, 0x10
jb 0x10139ce1
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139cd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10139cd7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015b698
add esp, 8
cmp dword [ebp - 0x28], 0x10
lea edx, [ebp - 0x3c]
push dword [ebp - 0x2c]
cmovae 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.100eefc0
add esp, 4
lea ecx, [ebp - 0x1c4]
call fcn.100ee230
test eax, eax
jne 0x10139d3f
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.100ed2d0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x10139d7a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139d70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10139db2
push ecx
push edx
call fcn.1015b698
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, 0x10
jb 0x10139dc2
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10139db8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10139db8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015b698
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.1006ed00
call fcn.1006ed00
int3