Function at 0x14002e220
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
xor ebx, ebx
mov qword [0x140157970], rbx
xorps xmm0, xmm0
movdqu xmmword [0x140157978], xmm0
mov qword [0x140157988], rbx
mov byte [0x140157990], bl
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401580b8], eax
jle 0x14002e2c3
lea rcx, [0x1401580b8]
call fcn.14007b7b8
cmp dword [0x1401580b8], 0xffffffff
jne 0x14002e2c3
mov qword [0x1401580e0], rbx
xorps xmm0, xmm0
movups xmmword [0x1401580c0], xmm0
movdqa xmm1, xmmword [0x1401429c0]
movdqu xmmword [0x1401580d0], xmm1
mov byte [0x1401580c0], bl
lea rcx, [0x1400afba0]
call fcn.14007bc0c
lea rcx, [0x1401580b8]
call fcn.14007b758
lea rax, [rsp + 0x58]
mov qword [rsp + 0xf0], rax
lea rdx, [0x140157e10]
lea rcx, [rsp + 0x58]
call fcn.1400102a0
mov rdi, rax
mov dword [rsp + 0x20], 0x3634000c
mov dword [rsp + 0x24], 0x22363515
mov dword [rsp + 0x28], 0x202a38
mov byte [rsp + 0x2c], 1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x4f]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0xb
jb 0x14002e310
mov byte [rsp + 0x2c], 0
lea r8, [rsp + 0x2b]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400103c0
nop
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x1401580c0]
call fcn.14002afc0
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b7b0
mov rax, qword [rax + 0x20]
mov qword [0x140157970], rax
test rax, rax
je 0x14002e56e
lea rax, [rsp + 0x58]
mov qword [rsp + 0xf0], rax
lea rdx, [0x140157e30]
lea rcx, [rsp + 0x58]
call fcn.1400102a0
mov rdi, rax
movdqa xmm0, xmmword [0x140142aa0]
movdqu xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x30], 0x100
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x4f]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0x10
jb 0x14002e3b0
mov byte [rsp + 0x31], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400103c0
nop
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x1401580c0]
call fcn.14002afc0
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b7b0
mov rax, qword [rax + 0x20]
mov qword [0x140157978], rax
test rax, rax
je 0x14002e596
lea rax, [rsp + 0x58]
mov qword [rsp + 0xf0], rax
lea rdx, [0x140157e50]
lea rcx, [rsp + 0x58]
call fcn.1400102a0
mov rdi, rax
mov dword [rsp + 0x20], 0x3738060c
mov dword [rsp + 0x24], 0x243a0424
mov word [rsp + 0x28], 0x23
mov byte [rsp + 0x2a], 1
mov rcx, rbx
nop
lea eax, [rcx + 0x4f]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x14002e450
mov byte [rsp + 0x2a], 0
lea r8, [rsp + 0x29]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400103c0
nop
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x1401580c0]
call fcn.14002afc0
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b7b0
mov rax, qword [rax + 0x20]
mov qword [0x140157980], rax
test rax, rax
je 0x14002e5be
lea rax, [rsp + 0x58]
mov qword [rsp + 0xf0], rax
lea rdx, [0x140157df0]
lea rcx, [rsp + 0x58]
call fcn.1400102a0
mov rdi, rax
mov dword [rsp + 0x20], 0x3634000c
mov dword [rsp + 0x24], 0x33383510
mov dword [rsp + 0x28], 0x1003925
nop dword [rax + rax]
lea eax, [rbx + 0x4f]
xor byte [rsp + rbx + 0x20], al
inc rbx
cmp rbx, 0xa
jb 0x14002e4f0
mov byte [rsp + 0x2b], 0
lea r8, [rsp + 0x2a]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400103c0
nop
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x1401580c0]
call fcn.14002afc0
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b7b0
mov rax, qword [rax + 0x20]
mov qword [0x140157988], rax
test rax, rax
je 0x14002e5e6
mov byte [0x140157990], 1
lea rax, [0x140157970]
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
lea rdx, str.CPedFactory_is_nullptr.
lea rcx, [rsp + 0x80]
call fcn.140010e60
lea rdx, [0x140151bb8]
lea rcx, [rsp + 0x80]
call fcn.14007d9fc
lea rdx, str.CReplayInterface_is_nullptr.
lea rcx, [rsp + 0x98]
call fcn.140010e60
lea rdx, [0x140151bb8]
lea rcx, [rsp + 0x98]
call fcn.14007d9fc
lea rdx, str.CViewPort_is_nullptr.
lea rcx, [rsp + 0xb0]
call fcn.140010e60
lea rdx, [0x140151bb8]
lea rcx, [rsp + 0xb0]
call fcn.14007d9fc
lea rdx, str.CPedCamera_is_nullptr.
lea rcx, [rsp + 0xc8]
call fcn.140010e60
lea rdx, [0x140151bb8]
lea rcx, [rsp + 0xc8]
call fcn.14007d9fc
int3