Function at 0x475020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x44], ebx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4755c0
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4755c0
push 0x4c
call fcn.005ab82c
add esp, 4
mov edi, eax
push 0x2c
lea esi, [edi + 4]
mov byte [edi], 0
push 0
push esi
call fcn.005c3040
add esp, 0xc
mov dword [edi + 0x30], 0
lea eax, [ebp - 0x7c]
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x2c
push 0
push eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
call fcn.005c3040
movups xmm0, xmmword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x54]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x6c]
push esi
push ecx
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x5c]
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x28], eax
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x14]
cmp ecx, 0xa
movups xmm0, xmmword [esi]
sete al
xor edx, edx
mov byte [edi], al
cmp ecx, 0xa
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
mov eax, 0x20000
cmove eax, edx
cmp ecx, 0xa
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], edx
movq xmm0, qword [esi + 0x20]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
mov eax, 3
cmove eax, edx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], eax
mov edx, 8
xor eax, eax
cmp ecx, 0xa
cmove eax, edx
lea edx, [edi + 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x60]
push edx
push 0
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp dword [edi + 0x18], 1
jbe 0x4751a9
cmp dword [edi + 0x34], 0
lea edx, [edi + 0x34]
jne 0x4751a9
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x60]
movups xmmword [ebp - 0x38], xmm0
push edx
movups xmm0, xmmword [esi + 0x10]
push 0
lea edx, [ebp - 0x38]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
movq xmm0, qword [esi + 0x20]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [eax]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, dword [edi + 0x30]
mov byte [ebp - 5], 0
test edx, edx
je 0x475509
cmp dword [edi + 0x18], 1
mov ecx, dword [ebx + 0x60]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
jbe 0x4751ea
push dword [edi + 0x14]
push 0
push dword [ebp - 0xc]
push 0
push dword [edi + 0x34]
push ecx
call dword [eax + 0xe4]
mov eax, dword [ebx + 0x60]
push dword [edi + 0x34]
push dword [edi + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
jmp 0x4751ee
push dword [ebp - 0xc]
push edx
push ecx
call dword [eax + 0xbc]
cmp byte [edi], 0
je 0x47542a
cmp dword [edi + 0x38], 0
jne 0x475265
movups xmm0, xmmword [edi + 4]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x60]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [edi + 0x14]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0x1c
movq xmm0, qword [edi + 0x24]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x20
mov edx, dword [eax]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
lea eax, [edi + 0x38]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push edx
call ecx
cmp dword [edi + 0x3c], 0
jne 0x4752cc
movups xmm0, xmmword [edi + 4]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x60]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [edi + 0x14]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0x1c
movq xmm0, qword [edi + 0x24]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], 0x20000
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 0
mov edx, dword [eax]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
lea eax, [edi + 0x3c]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push edx
call ecx
cmp dword [edi + 0x44], 0
jne 0x4752e8
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
lea eax, [edi + 0x44]
push eax
push 0
push dword [edi + 0x38]
push edx
call ecx
cmp dword [edi + 0x48], 0
jne 0x47532c
push 0xb4
call fcn.005ab82c
add esp, 4
mov ecx, eax
push dword [ebx + 0x60]
push dword [ebx + 4]
push 1
push 2
push dword [edi + 0x14]
push dword [edi + 0x30]
push str._rt_editor_backbuffer_resolve
call fcn.004b4c10
mov dword [edi + 0x48], eax
lea eax, [edi + 0x48]
mov ecx, dword [ebx + 4]
push eax
add ecx, 0x28e0
call fcn.004f3f60
cmp dword [edi + 0x40], 0
jne 0x4753a3
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
movaps xmm0, xmmword [0x739b60]
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x5c], 0
movaps xmm0, xmmword [0x739c30]
mov esi, dword [eax + 0x24]
lea eax, [ebp - 0x38]
movups xmmword [ebp - 0x7c], xmm0
push eax
movaps xmm0, xmmword [0x739ee0]
push ecx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0x40000000
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
call fcn.00473d50
add esp, 8
lea ecx, [ebp - 0x8c]
push 0
push 0
push 3
push ecx
push eax
mov ecx, ebx
call esi
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x60]
push 0
mov ecx, dword [eax + 4]
lea eax, [edi + 0x44]
push eax
push 1
push ecx
mov edx, dword [ecx]
call dword [edx + 0x84]
push dword [edi + 8]
mov eax, dword [ebx]
mov ecx, ebx
push dword [edi + 4]
push 0
push 0
call dword [eax + 0x44]
mov ecx, dword [ebx + 4]
add ecx, 0x2968
push str.materials_util_backbufferpassthrough.json
call fcn.004f58c0
mov ecx, dword [edi + 0x48]
mov esi, eax
mov dword [esi + 0x74], ecx
mov ecx, esi
call fcn.004f99a0
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, esi
call fcn.004fa700
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47540b
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [ebx + 0x60]
push dword [edi + 0x38]
push dword [edi + 0x3c]
mov eax, dword [eax + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
cmp byte [edi], 0
je 0x47542a
mov esi, dword [edi + 0x3c]
jmp 0x47542d
mov esi, dword [edi + 0x30]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x475509
mov eax, dword [ebx + 0x60]
lea edx, [ebp - 0x50]
push edx
push 0
push 1
mov ecx, dword [eax + 4]
push 0
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x475509
mov ecx, dword [edi + 4]
mov eax, ecx
mov edx, dword [edi + 8]
imul eax, edx
shl eax, 2
cmp eax, dword [ebp + 0xc]
jne 0x4754fa
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4754f3
nop word [eax + eax]
sub edx, ebx
mov dword [ebp + 0xc], 0
dec edx
mov eax, ecx
imul edx, dword [ebp - 0x4c]
imul ecx, ebx
shr edx, 2
mov esi, ecx
mov ecx, eax
test eax, eax
je 0x4754e5
mov eax, dword [ebp + 8]
lea esi, [eax + esi*4]
mov eax, dword [ebp - 0x50]
lea ebx, [eax + edx*4]
nop word [eax + eax]
mov edx, dword [ebx]
lea ebx, [ebx + 4]
mov eax, edx
lea esi, [esi + 4]
shr eax, 0x10
xor eax, edx
movzx eax, al
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp + 0xc]
xor ecx, edx
inc eax
or ecx, 0xff000000
mov dword [ebp + 0xc], eax
mov dword [esi - 4], ecx
mov ecx, dword [edi + 4]
cmp eax, ecx
jb 0x4754b0
mov ebx, dword [ebp - 0xc]
mov edx, dword [edi + 8]
inc ebx
mov dword [ebp - 0xc], ebx
cmp ebx, edx
jb 0x475480
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov byte [ebp - 5], 1
mov eax, dword [ebx + 0x60]
push 0
push esi
mov eax, dword [eax + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x47551d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x44], 0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x475531
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x30], 0
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x475545
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x34], 0
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x475559
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x47556d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x3c], 0
mov ecx, dword [ebx + 4]
lea eax, [edi + 0x48]
push 1
push eax
add ecx, 0x28e0
call fcn.004f40e0
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x47558e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x48], 0
test ecx, ecx
je 0x4755a2
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x4c
push edi
mov dword [edi + 0x40], 0
call fcn.005ab85c
mov al, byte [ebp - 5]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc