Function at 0x14002e1f0
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 0x14002e293
lea rcx, [0x1401580b8]
call fcn.14007b788
cmp dword [0x1401580b8], 0xffffffff
jne 0x14002e293
mov qword [0x1401580e0], rbx
xorps xmm0, xmm0
movups xmmword [0x1401580c0], xmm0
movdqa xmm1, xmmword [0x1401429d0]
movdqu xmmword [0x1401580d0], xmm1
mov byte [0x1401580c0], bl
lea rcx, [0x1400afb00]
call fcn.14007bbdc
lea rcx, [0x1401580b8]
call fcn.14007b728
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], 0xbfbf899b
mov dword [rsp + 0x24], 0xabbdbc9a
mov dword [rsp + 0x28], 0x9b938f
mov byte [rsp + 0x2c], 1
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x28]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0xb
jb 0x14002e2e0
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.14002af90
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b780
mov rax, qword [rax + 0x20]
mov qword [0x140157970], rax
test rax, rax
je 0x14002e53e
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 [0x140142d50]
movdqu xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x30], 0x100
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx - 0x28]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0x10
jb 0x14002e380
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.14002af90
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b780
mov rax, qword [rax + 0x20]
mov qword [0x140157978], rax
test rax, rax
je 0x14002e566
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], 0xbeb38f9b
mov dword [rsp + 0x24], 0xadb18dab
mov word [rsp + 0x28], 0x94
mov byte [rsp + 0x2a], 1
mov rcx, rbx
nop
lea eax, [rcx - 0x28]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x14002e420
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.14002af90
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b780
mov rax, qword [rax + 0x20]
mov qword [0x140157980], rax
test rax, rax
je 0x14002e58e
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], 0xbfbf899b
mov dword [rsp + 0x24], 0xbab3bc9f
mov dword [rsp + 0x28], 0x1008092
nop dword [rax + rax]
lea eax, [rbx - 0x28]
xor byte [rsp + rbx + 0x20], al
inc rbx
cmp rbx, 0xa
jb 0x14002e4c0
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.14002af90
add qword [rax + 0x20], 3
mov rcx, rax
call fcn.14002b780
mov rax, qword [rax + 0x20]
mov qword [0x140157988], rax
test rax, rax
je 0x14002e5b6
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, [0x140151b90]
lea rcx, [rsp + 0x80]
call fcn.14007d9cc
lea rdx, str.CReplayInterface_is_nullptr.
lea rcx, [rsp + 0x98]
call fcn.140010e60
lea rdx, [0x140151b90]
lea rcx, [rsp + 0x98]
call fcn.14007d9cc
lea rdx, str.CViewPort_is_nullptr.
lea rcx, [rsp + 0xb0]
call fcn.140010e60
lea rdx, [0x140151b90]
lea rcx, [rsp + 0xb0]
call fcn.14007d9cc
lea rdx, str.CPedCamera_is_nullptr.
lea rcx, [rsp + 0xc8]
call fcn.140010e60
lea rdx, [0x140151b90]
lea rcx, [rsp + 0xc8]
call fcn.14007d9cc
int3