Function at 0x140085720
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [rsp + 0x58], rdx
mov qword [rbp - 0x60], rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r13, qword [rdx]
mov qword [rsp + 0x50], r13
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], rax
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
xor r8d, r8d
lea rdx, [0x1400e9240]
lea rcx, [rbp + 8]
call fcn.14006db40
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], r12
lea edx, [r12 + 1]
lea rcx, [rbp + 0x28]
call fcn.14008e120
lea rax, [rbp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov rbx, qword [rbp + 0x28]
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rbx
lea rax, [rbp + 0x28]
mov qword [rbp + 0x70], rax
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.140071900
lea rax, [rbx + 0x20]
mov qword [rbp + 0x30], rax
lea r9, [fcn.14006d9f0]
lea edx, [r12 + 0x20]
lea r8d, [r12 + 1]
lea rcx, [rbp + 8]
call fcn.1400c63bc
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov esi, r12d
mov qword [rbp + 0xb0], r12
mov edi, 0xf
mov qword [rbp + 0xb8], rdi
mov byte [rbp + 0xa0], sil
movups xmmword [rbp + 0x80], xmm0
mov r14d, r12d
mov qword [rbp + 0x90], r12
mov r15d, edi
mov qword [rbp + 0x98], rdi
mov byte [rbp + 0x80], r14b
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
lea r8d, [r12 + 4]
lea rdx, str.path
lea rcx, [rsp + 0x60]
call fcn.14006db40
nop
mov ebx, 1
mov dword [rsp + 0x40], ebx
cmp byte [r13], bl
jne 0x14008595e
mov r12, qword [r13 + 8]
mov rax, qword [r12]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x60]
mov rcx, r12
call fcn.140076f70
mov r13, qword [rbp + 0x70]
cmp byte [r13 + 0x19], r14b
jne 0x140085905
lea r9, [r13 + 0x20]
cmp qword [r13 + 0x38], 0x10
jb 0x1400858c0
mov r9, qword [r13 + 0x20]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov rdx, qword [r13 + 0x30]
mov qword [rbp - 0x68], rdx
mov r8, qword [rsp + 0x70]
cmp rdx, r8
cmovb r8, rdx
mov rdx, r9
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400858fa
sets al
test al, al
jne 0x140085905
jmp 0x140085909
mov rax, qword [rbp - 0x68]
cmp qword [rsp + 0x70], rax
jae 0x140085909
mov r13, qword [r12]
cmp r13, qword [rsp + 0x48]
je 0x140085959
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
xor eax, eax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
lea r8d, [rax + 4]
lea rdx, str.path
lea rcx, [rbp + 8]
call fcn.14006db40
nop
mov ebx, 3
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 8]
mov r13, qword [rsp + 0x50]
mov rcx, r13
call fcn.14008c7e0
cmp byte [rax], bl
jne 0x14008595e
xor r12b, r12b
jmp 0x140085961
mov r13, qword [rsp + 0x50]
mov r12b, 1
test bl, 2
je 0x140085973
and ebx, 0xfffffffd
lea rcx, [rbp + 8]
call fcn.14006da40
nop
test bl, 1
je 0x140085985
and ebx, 0xfffffffe
lea rcx, [rsp + 0x60]
call fcn.14006da40
test r12b, r12b
je 0x140085a1b
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xor r12d, r12d
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
lea r8d, [r12 + 0x1b]
lea rdx, str.Invalid_Missing_shader_path
lea rcx, [rbp - 0x38]
call fcn.14006db40
lea rax, [rbp - 0x38]
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
lea r8d, [r12 + 0x16]
lea rdx, str._loading::load_shader_
lea rcx, [rsp + 0x60]
call fcn.14006db40
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
cmp byte [0x1401126a4], r12b
je 0x14008617a
lea rcx, [rsp + 0x60]
call fcn.14006da40
nop
lea rcx, [rbp - 0x38]
call fcn.14006da40
jmp 0x140085a1e
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
mov r8d, 4
lea rdx, str.path
lea rcx, [rbp + 8]
call fcn.14006db40
nop
lea rdx, [rbp + 8]
mov rcx, r13
call fcn.14008c7e0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], rdi
mov byte [rbp - 0x58], 0
or ebx, 0x40
mov dword [rsp + 0x40], ebx
cmp byte [rax], 3
jne 0x140086215
mov rdx, qword [rax + 8]
lea rcx, [rbp - 0x58]
call fcn.1400717e0
nop
mov r9, qword [rsp + 0x58]
add r9, 8
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x14008625c
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
setae r10b
mov r8, qword [rbp - 0x58]
cmovae rcx, r8
cmp byte [rcx], 0x24
jne 0x140085ac4
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xc0]
call fcn.140071900
jmp 0x140085b0f
mov rcx, qword [r9 + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, rdx
jb 0x140086174
cmp qword [r9 + 0x18], 0x10
jb 0x140085ae8
mov r9, qword [r9]
lea rax, [rbp - 0x58]
test r10b, r10b
cmovne rax, r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xc0]
call fcn.14006ddd0
nop
lea rcx, [rbp - 0x58]
call fcn.14006da40
nop
lea rcx, [rbp + 8]
call fcn.14006da40
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 8]
call fcn.140071900
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.1400ace60
nop
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rbx, qword [rax + 8]
add rbx, qword [rax]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.14008c950
nop
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x70], rax
movaps xmmword [rbp + 0x60], xmm0
movsd xmm0, qword [rsp + 0x70]
movsd qword [rbp + 0x70], xmm0
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_class_std::fpos_struct__Mbstatet_____ptr64]
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
mov r8, rbx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0xf8]
call fcn.140071cf0
test rax, rax
jne 0x140085c0a
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
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]
mov ebx, r12d
mov rdx, qword [rbp]
mov rcx, qword [rbp - 0x18]
mov r8, qword [rbp - 8]
test r8, r8
je 0x140085c4c
cmp rdx, 0x10
setae r10b
mov r9, r12
nop dword [rax]
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0x3c
je 0x140085c4c
inc ebx
movsxd r9, ebx
cmp r9, r8
jb 0x140085c30
inc ebx
movsxd r9, ebx
cmp r9, r8
jae 0x140085daf
nop word [rax + rax]
lea rax, [rbp - 0x18]
cmp rdx, 0x10
setae r10b
cmovae rax, rcx
cmp byte [r9 + rax], 0x3e
je 0x140085daf
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0x2c
jne 0x140085d03
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
xor r8d, r8d
lea rdx, [0x1400e9240]
lea rcx, [rsp + 0x60]
call fcn.14006db40
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, qword [rbp + 0x38]
je 0x140085ce5
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x60], 0
add qword [rbp + 0x30], 0x20
jmp 0x140085cf4
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x28]
call fcn.14008eee0
nop
lea rcx, [rsp + 0x60]
call fcn.14006da40
jmp 0x140085d95
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0x20
je 0x140085da1
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0xd
je 0x140085da1
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 9
je 0x140085da1
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0xa
je 0x140085da1
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
movzx r9d, byte [r9 + rax]
mov rcx, qword [rbp + 0x30]
add rcx, 0xffffffffffffffe0
mov rdx, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
cmp rdx, r8
jae 0x140085d90
lea rax, [rdx + 1]
mov qword [rcx + 0x10], rax
cmp r8, 0x10
jb 0x140085d85
mov rcx, qword [rcx]
mov byte [rcx + rdx], r9b
mov byte [rcx + rdx + 1], 0
jmp 0x140085d95
call fcn.140073500
mov rdx, qword [rbp]
mov r8, qword [rbp - 8]
mov rcx, qword [rbp - 0x18]
inc ebx
movsxd r9, ebx
cmp r9, r8
jb 0x140085c60
movsxd r9, ebx
cmp r9, r8
jae 0x140085ddc
cmp rdx, 0x10
setae r10b
nop
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0x3c
je 0x140085ddc
inc ebx
movsxd r9, ebx
cmp r9, r8
jb 0x140085dc0
inc ebx
movsxd r9, ebx
cmp r9, r8
jae 0x140085e7a
nop word [rax + rax]
lea rax, [rbp - 0x18]
cmp rdx, 0x10
setae r10b
cmovae rax, rcx
cmp byte [r9 + rax], 0x3e
je 0x140085e7a
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
movzx r9d, byte [r9 + rax]
cmp rsi, rdi
jae 0x140085e45
lea rax, [rsi + 1]
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0xa0]
cmp rdi, 0x10
cmovae rax, qword [rbp + 0xa0]
mov byte [rax + rsi], r9b
mov byte [rax + rsi + 1], 0
jmp 0x140085e51
lea rcx, [rbp + 0xa0]
call fcn.140073500
inc ebx
movsxd r9, ebx
mov r8, qword [rbp - 8]
mov rdx, qword [rbp]
mov rcx, qword [rbp - 0x18]
cmp r9, r8
jae 0x140085e7a
mov rdi, qword [rbp + 0xb8]
mov rsi, qword [rbp + 0xb0]
jmp 0x140085df0
movsxd r9, ebx
cmp r9, r8
jae 0x140085eac
cmp rdx, 0x10
setae r10b
nop word [rax + rax]
lea rax, [rbp - 0x18]
test r10b, r10b
cmovne rax, rcx
cmp byte [r9 + rax], 0x3c
je 0x140085eac
inc ebx
movsxd r9, ebx
cmp r9, r8
jb 0x140085e90
inc ebx
movsxd r9, ebx
cmp r9, r8
jae 0x140085f48
nop word [rax + rax]
lea rax, [rbp - 0x18]
cmp rdx, 0x10
setae r8b
cmovae rax, rcx
cmp byte [r9 + rax], 0x3e
je 0x140085f48
lea rax, [rbp - 0x18]
test r8b, r8b
cmovne rax, rcx
movzx r9d, byte [r9 + rax]
cmp r14, r15
jae 0x140085f16
lea rax, [r14 + 1]
mov qword [rbp + 0x90], rax
lea rax, [rbp + 0x80]
cmp r15, 0x10
cmovae rax, qword [rbp + 0x80]
mov byte [rax + r14], r9b
mov byte [rax + r14 + 1], 0
jmp 0x140085f22
lea rcx, [rbp + 0x80]
call fcn.140073500
inc ebx
movsxd r9, ebx
cmp r9, qword [rbp - 8]
jae 0x140085f48
mov r15, qword [rbp + 0x98]
mov r14, qword [rbp + 0x90]
mov rdx, qword [rbp]
mov rcx, qword [rbp - 0x18]
jmp 0x140085ec0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
mov r14, r12
mov qword [rbp + 0x50], r12
mov rdi, qword [rbp + 0x28]
mov r15, qword [rbp + 0x30]
cmp rdi, r15
je 0x140086010
mov rbx, qword [rbp + 0x48]
nop dword [rax]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140071900
mov r8, rax
mov eax, r12d
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140085f8f
mov rdx, qword [r8]
movzx ecx, byte [rdx]
test cl, cl
je 0x140085fbd
nop word [rax + rax]
movsx ecx, cl
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
lea rdx, [rdx + 1]
movzx ecx, byte [rdx]
test cl, cl
jne 0x140085fa0
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul esi, ecx, 0x8001
mov rcx, r8
call fcn.14006da40
mov dword [rsp + 0x50], esi
cmp rbx, r14
je 0x140085fea
mov dword [rbx], esi
add rbx, 4
mov qword [rbp + 0x48], rbx
jmp 0x140086003
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.14008f120
mov r14, qword [rbp + 0x50]
mov rbx, qword [rbp + 0x48]
add rdi, 0x20
cmp rdi, r15
jne 0x140085f70
mov ecx, 0x48
call fcn.1400c634c
mov rdi, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_assets::shader_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.14008fbd0
nop
mov rsi, qword [rbp - 0x60]
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400860b4
mov rax, qword [rbp + 0x50]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400860ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400860ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c6388
nop
lea rcx, [rbp - 0x18]
call fcn.14006da40
nop
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xe0], rax
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx + 0xdc], edx
lea rcx, [rbp + 0xf8]
call fcn.140071140
lea rcx, [rbp + 0x100]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x198]
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 + 0xc0]
call fcn.14006da40
nop
lea rcx, [rbp + 0x80]
call fcn.14006da40
nop
lea rcx, [rbp + 0xa0]
call fcn.14006da40
nop
lea rcx, [rbp + 0x28]
call fcn.14008cc60
mov rax, rsi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400c61b0
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14006d050
nop
lea rcx, [rbp + 8]
call fcn.140071a20
nop
lea rdx, str._core_
lea rcx, [rbp + 8]
call fcn.14008c8d0
lea rcx, [rsp + 0x60]
call fcn.14006d9c0
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14006d9d0
mov dl, 0x3a
lea rcx, [rbp + 8]
call fcn.140071e50
mov dl, 0xa
lea rcx, [rbp + 8]
call fcn.140071e50
lea rcx, [rbp - 0x38]
call fcn.14006d9c0
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14006d9d0
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xc0]
call fcn.140071900
mov rcx, rax
call fcn.1400a5540
mov byte [0x1401126a4], 1
lea rdx, str.Shutdown_call
lea rcx, [rbp + 0x60]
call fcn.14006e160
lea rdx, [0x140109158]
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rax
call fcn.140071dc0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x38]
call fcn.14007d660
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x60]
call fcn.140073100
lea rdx, [0x140109098]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14006db20
int3