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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x180161040]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r13, rcx
mov qword [rsp + 0x30], rcx
xor r12d, r12d
call fcn.180043a60
lea rdx, str.__TcEditorNamesReplacement.txt
lea rcx, [rsp + 0x50]
call fcn.1800437f0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov edx, 0xf
mov qword [rbp + 0x98], rdx
mov byte [rbp + 0x80], r12b
cmp qword [rbp - 0x20], r12
jne 0x1800409ff
mov byte [r13 + 0x40], r12b
xor bl, bl
jmp 0x1800410d4
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180039890
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x180040d67
nop dword [rax + rax]
lea rdi, [rbp + 0x80]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x98]
cmp r15, 0xf
cmova rdi, r14
mov rsi, qword [rbp + 0x90]
test rsi, rsi
je 0x180040a96
mov r8, rsi
mov edx, 0x3a
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x180040a96
sub rbx, rdi
jmp 0x180040a9d
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x180040d1e
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], r12
mov r8, rbx
cmp rsi, rbx
cmovb r8, rsi
lea rdx, [rbp + 0x80]
cmp r15, 0xf
cmova rdx, r14
lea rcx, [rbp + 0xc0]
call fcn.180005260
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x100]
call fcn.18003fb30
mov rdi, rax
mov rcx, qword [rbp + 0x90]
mov r8, rcx
sub r8, rbx
inc rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
cmp rcx, rbx
jb 0x1800411a6
sub rcx, rbx
cmp rcx, r8
cmovb r8, rcx
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rdx, qword [rbp + 0x80]
add rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.180005260
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xe0]
call fcn.18003fb30
nop
movups xmm0, xmmword [rdi]
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp + 0x130], xmm1
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov byte [rdi], 0
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x140], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x150], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r8, [rbp + 0x120]
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.180045560
nop
lea rcx, [rbp + 0x140]
call fcn.180005610
lea rcx, [rbp + 0x120]
call fcn.180005610
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x180040c28
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040c23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040e09
call fcn.1800df6f8
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0xf8], 0xf
mov byte [rbp + 0xe0], 0
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x180040c83
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040c7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040e10
call fcn.1800df6f8
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x180040cc4
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040cbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040e17
call fcn.1800df6f8
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], 0xf
mov byte [rbp + 0x100], 0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x180040d1e
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040d19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040e1e
call fcn.1800df6f8
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180039890
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x180040a50
mov r14, qword [r13 + 8]
mov rsi, qword [r14]
cmp rsi, r14
je 0x180040e54
nop word [rax + rax]
lea rax, [rsi + 0x30]
mov qword [rsp + 0x38], r12
mov rdi, qword [r13 + 8]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180040e48
nop dword [rax]
lea r15, [rbx + 0x30]
mov r13, qword [r15 + 0x10]
mov rdx, r15
mov r12, qword [r15 + 0x18]
cmp r12, 0xf
jbe 0x180040db8
mov rdx, qword [r15]
mov r8, qword [rax + 0x10]
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x180040dc9
mov rcx, qword [rax]
cmp r8, r13
jne 0x180040e34
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180040e30
mov rcx, qword [rsp + 0x38]
inc rcx
mov qword [rsp + 0x38], rcx
cmp rcx, 1
jbe 0x180040e30
cmp r13, r12
jae 0x180040e25
lea rax, [r13 + 1]
mov qword [r15 + 0x10], rax
cmp r12, 0xf
jbe 0x180040e00
mov r15, qword [r15]
mov word [r15 + r13], 0x20
jmp 0x180040e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r9b, 0x20
mov rcx, r15
call fcn.18001c490
lea rax, [rsi + 0x30]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180040da0
mov r13, qword [rsp + 0x30]
xor r12d, r12d
mov rsi, qword [rsi]
cmp rsi, r14
jne 0x180040d80
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov ecx, 0x40
call fcn.1800df99c
mov rsi, rax
mov qword [rbp + 0x78], 0x3f
movzx eax, byte [rbp + 0x60]
mov byte [rsi], al
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x70], r12
lea r12, str.light_dir_col_r
movabs rbx, 0x100000001b3
mov r13d, 0x1ad
mov r14, qword [rbp + 0x78]
nop dword [rax]
cmp dword [r12 + 8], 0
je 0x180041067
mov rdx, qword [r12]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180040ed0
lea rcx, [rbp + 0x60]
call fcn.180017c50
lea rax, [rbp + 0x60]
mov rsi, qword [rbp + 0x60]
mov r14, qword [rbp + 0x78]
cmp r14, 0xf
cmova rax, rsi
mov rdi, qword [rbp + 0x70]
cmp rdi, 2
jb 0x180040f8a
cmp word [rax + rdi - 2], 0x725f
jne 0x180040f8a
lea rcx, [rdi - 2]
cmp rcx, rdi
ja 0x180040f2d
mov qword [rbp + 0x70], rcx
lea rax, [rbp + 0x60]
cmp r14, 0xf
cmova rax, rsi
mov byte [rax + rcx], 0
jmp 0x180040f7e
mov r15, rcx
sub r15, rdi
mov rax, r14
sub rax, rdi
cmp r15, rax
ja 0x180040f6f
mov qword [rbp + 0x70], rcx
lea rbx, [rbp + 0x60]
cmp r14, 0xf
cmova rbx, rsi
add rbx, rdi
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + r15], 0
movabs rbx, 0x100000001b3
jmp 0x180040f7e
mov r9, r15
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.180032d70
mov r14, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x60]
lea r8, [rbp + 0x60]
cmp r14, 0xf
cmova r8, rsi
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
test rdi, rdi
je 0x180040fc4
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, rdi
jb 0x180040fb0
mov r8, qword [rsp + 0x30]
mov rcx, qword [r8 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r8 + 8]
je 0x180041036
mov r15, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x180041002
mov rdx, qword [rdx]
lea rcx, [rbp + 0x60]
cmp r14, 0xf
cmova rcx, rsi
cmp rdi, rax
jne 0x18004101f
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18004102a
cmp rbx, r15
je 0x180041031
mov rbx, qword [rbx + 8]
jmp 0x180040ff0
mov r8, qword [rsp + 0x30]
jmp 0x180041038
mov r8, qword [rsp + 0x30]
xor ebx, ebx
test rbx, rbx
je 0x18004105d
cmp rbx, qword [r8 + 8]
je 0x18004105d
cmp qword [rbx + 0x40], 0
je 0x18004105d
add rbx, 0x30
cmp qword [rbx + 0x18], 0xf
jbe 0x180041058
mov rbx, qword [rbx]
mov qword [r12 + 0x10], rbx
movabs rbx, 0x100000001b3
add r12, 0x28
sub r13, 1
jne 0x180040eb0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x40], 1
mov bl, 1
cmp r14, 0xf
jbe 0x1800410ba
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1800410b2
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800410b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1800df6f8
xor r12d, r12d
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], r12b
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x180041111
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004110c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004110c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df6f8
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], 0xf
mov byte [rbp + 0x80], 0
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x4c], r8d
lea rcx, [rsp + 0x60]
call fcn.180043780
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1800df290
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180018050
nop
int3