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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rdi, rdx
xor r13d, r13d
mov esi, r13d
mov dword [rbp + 0x228], r13d
mov ebx, 0x811c9dc5
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], sil
jne 0x180180820
mov rdx, r13
test rcx, rcx
je 0x180180845
movsx eax, byte [rdx + rdi]
xor eax, ebx
imul ebx, eax, 0x1000193
inc rdx
cmp rdx, rcx
jb 0x180180831
mov dword [rbp + 0x220], ebx
mov edx, 0xca0c003e
lea rcx, [0x1802266a9]
call fcn.1800f5960
movabs r14, 0x7fffffffffffffff
lea r12, [0x180276960]
lea rdx, str.Materials
lea r15, str..vmt
cmp ebx, eax
je 0x180180a6d
mov rcx, qword [0x180276970]
mov rax, r14
sub rax, rcx
cmp rax, 0xa
jb 0x180180ea0
mov r9, r12
cmp qword [0x180276978], 0xf
cmova r9, qword [0x180276960]
mov qword [rsp + 0x30], 0xa
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.180105030
nop
mov dword [rbp + 0x228], 9
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 9
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x68], rax
vmovups xmm0, xmmword [rsp + 0x60]
vmovups xmmword [rbp + 0x10], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp], rax
mov qword [rbp + 0x20], rdi
movabs rax, 0xb000000000000010
mov qword [rbp + 8], rax
mov qword [rsp + 0x60], 2
lea rax, [rbp]
mov qword [rsp + 0x68], rax
vmovups xmm0, xmmword [rsp + 0x60]
vmovdqa xmmword [rsp + 0x40], xmm0
vmovups xmm1, xmmword [rsp + 0x50]
vmovdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.1800b7a90
nop
mov dword [rbp + 0x228], 0x1b
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x58], rax
call fcn.1801b4d14
vmovups xmm0, xmmword [rsp + 0x50]
vmovdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp + 0x28]
call fcn.1800f59c0
nop
mov esi, 0x7f
mov dword [rbp + 0x228], esi
lea rcx, [rbp + 0x28]
call fcn.1800f63c0
test al, al
jne 0x180180a6d
mov r8d, dword [rbp + 0x220]
movzx edx, r8b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rbp + 0x221]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x222]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x223]
xor rdx, rax
imul rdx, rcx
and rdx, qword [0x1802626d0]
mov rax, rdx
add rax, rax
mov r9, qword [0x1802626b8]
mov rcx, qword [r9 + rax*8 + 8]
cmp rcx, qword [0x1802626a8]
je 0x180180a61
add rdx, rdx
mov rax, qword [r9 + rdx*8]
cmp r8d, dword [rcx + 0x10]
je 0x180180a64
nop dword [rax]
cmp rcx, rax
je 0x180180a61
mov rcx, qword [rcx + 8]
cmp r8d, dword [rcx + 0x10]
jne 0x180180a50
jmp 0x180180a64
mov rcx, r13
test rcx, rcx
jne 0x180180a6d
xor bl, bl
jmp 0x180180a6f
mov bl, 1
test sil, 4
je 0x180180a82
and esi, 0xfffffffb
lea rcx, [rbp + 0x28]
call fcn.180102460
nop
test sil, 2
je 0x180180a95
and esi, 0xfffffffd
lea rcx, [rbp - 0x20]
call fcn.1800a0370
nop
test sil, 1
je 0x180180aa5
lea rcx, [rsp + 0x70]
call fcn.1800a0370
test bl, bl
jne 0x180180e7f
xor eax, eax
mov qword [rbp - 0x70], rax
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], al
vmovups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], al
mov byte [rbp - 0x28], al
lea r8d, [rax + 0x18]
lea rdx, str._VertexLitGeneric__n_n_t_n
lea rcx, [rbp - 0x48]
call fcn.1800a03d0
mov ecx, 0x40
call fcn.1801b3ce4
mov r15, rax
mov qword [rbp + 0x228], rax
mov r8, rdi
mov edx, 0x80
lea rcx, [rbp + 0x160]
call fcn.1800e63d0
lea rdx, [rbp + 0x160]
mov rcx, r15
call qword [0x180264060]
nop
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova r8, qword [rbp - 0x48]
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rdx, rdi
mov rcx, r15
call qword [0x180264088]
mov rax, qword [0x180264038]
mov r8b, 1
lea rdx, str._model
mov rcx, r15
call rax
mov rsi, rax
test rax, rax
je 0x180180bb4
cmp byte [rax + 0x20], 1
jne 0x180180b82
lea rax, [0x1801e3dc0]
cmp qword [rsi + 8], rax
je 0x180180bb4
mov rcx, qword [rsi + 8]
call fcn.1801b3bbc
mov rcx, qword [rsi + 0x10]
call fcn.1801b3bbc
mov qword [rsi + 0x10], r13
mov ecx, 2
call fcn.1801b4194
mov qword [rsi + 8], rax
movzx ecx, word [0x1801e3dc0]
mov word [rax], cx
mov byte [rsi + 0x20], 1
lea rax, str.m_pMat_s
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x58], rdi
movabs rax, 0xb000000000000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rax
vmovups xmm0, xmmword [rsp + 0x60]
vmovdqa xmmword [rsp + 0x60], xmm0
vmovups xmm1, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1800b7a90
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdx, qword [rsp + 0x70]
mov r8, r15
call fcn.18017f220
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1800a0370
lea r8, [rbp + 0x220]
lea rdx, [rsp + 0x40]
call fcn.1801824d0
mov rbx, qword [rax]
mov rax, qword [rbp - 0x70]
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x20]
lea rax, [rbp - 0x68]
cmp rcx, rax
je 0x180180c83
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
call fcn.1800a03d0
lea rcx, [rbx + 0x40]
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x180180ca7
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
call fcn.1800a03d0
movzx eax, byte [rbp - 0x28]
mov byte [rbx + 0x60], al
mov rax, qword [0x180276970]
sub r14, rax
cmp r14, 0xa
jb 0x180180e9a
cmp qword [0x180276978], 0xf
cmova r12, qword [0x180276960]
mov qword [rsp + 0x30], 0xa
lea rcx, str.Materials
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, r12
lea rcx, [rsp + 0x70]
call fcn.180105030
nop
lea rax, str..vmt
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 9
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovups xmmword [rbp + 0x10], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp], rax
mov qword [rbp + 0x20], rdi
movabs rax, 0xb000000000000010
mov qword [rbp + 8], rax
mov qword [rsp + 0x40], 2
lea rax, [rbp]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x40], xmm0
vmovups xmm1, xmmword [rsp + 0x50]
vmovdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.1800b7a90
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x50]
call fcn.180104e10
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rbx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp - 0x20]
call fcn.1800a0370
nop
lea rcx, [rsp + 0x70]
call fcn.1800a0370
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp + 0x50]
call fcn.180106160
lea rcx, [rbp + 0x58]
call fcn.1801053c0
test rax, rax
jne 0x180180e2d
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x50], rbx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x58]
call fcn.180104da0
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call fcn.1800a0370
lea rcx, [rbp - 0x68]
call fcn.1800a0370
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180075d30
nop
call fcn.180075d30
int3