Function at 0x476e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x4cf06c]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x230]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x476e37
lea eax, [esi + 0x40]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x214]
lea edi, [esi + 0x100]
mov eax, dword [esi + 0x210]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edi
test ecx, ecx
jne 0x476ebe
cmp eax, 0xf0
ja 0x476ebe
mov ecx, dword [esp + 0x24]
mov esi, dword [esi + 0x220]
mov eax, esi
mov edx, dword [ecx + 0x224]
or eax, edx
je 0x476e93
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x44]
push esi
push eax
mov ecx, edi
call fcn.00475fe0
add esp, 0xc
movups xmm0, xmmword [eax]
jmp 0x4771ed
mov eax, dword [ecx + 0x21c]
mov edx, dword [ecx + 0x210]
add eax, 0x40
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.00474f80
add esp, 0xc
movups xmm0, xmmword [eax]
jmp 0x4771ed
push 0x40
lea eax, [esp + 0x54]
push esi
push eax
call fcn.0047f730
mov edx, dword [esi + 0x200]
add esp, 0xc
mov dword [esp + 0x20], edx
cmp edx, 0x40
jb 0x4770d3
mov eax, dword [esi + 0x208]
dec edx
mov ecx, dword [esi + 0x21c]
shr edx, 6
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x218]
mov esi, dword [esi + 0x218]
mov dword [esp + 0x20], edx
sub esi, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], esi
lea edi, [edx + eax*8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
cmp eax, esi
jb 0x47703d
movaps xmm3, xmmword [0x4c62e0]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
test esi, esi
je 0x476fb9
mov ecx, edx
mov dword [esp + 0x28], edx
mov edx, edi
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x50]
sub edx, eax
nop
prefetcht0 byte [ecx + 0x180]
lea eax, [esp + 0x50]
mov esi, ecx
sub esi, edi
mov edi, 4
lea ecx, [eax + edx]
lea eax, [eax + 0x10]
movups xmm0, xmmword [ecx + esi]
movups xmm2, xmmword [ecx]
pshufd xmm1, xmm0, 0x4e
paddq xmm1, xmmword [eax - 0x10]
pxor xmm2, xmm0
pshufd xmm0, xmm2, 0x31
pmuludq xmm0, xmm2
paddq xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
sub edi, 1
jne 0x476f64
mov ecx, dword [esp + 0x28]
add edx, 8
mov edi, dword [esp + 0x18]
add ecx, 0x40
add edi, 8
mov dword [esp + 0x28], ecx
sub dword [esp + 0x2c], 1
mov dword [esp + 0x18], edi
jne 0x476f50
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x50]
mov ecx, eax
sub edx, ecx
mov ecx, 4
nop word [eax + eax]
movups xmm1, xmmword [eax]
lea eax, [eax + 0x10]
psrlq xmm1, 0x2f
movups xmm0, xmmword [edx + eax - 0x10]
pxor xmm1, xmmword [eax - 0x10]
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x31
pmuludq xmm0, xmm3
pmuludq xmm1, xmm3
psllq xmm0, 0x20
paddq xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x476fd0
mov edx, dword [esp + 0x10]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
shl eax, 6
add edx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov esi, ecx
mov dword [esp + 0x18], edi
cmp eax, ecx
jae 0x476f34
jmp 0x477041
mov edx, dword [esp + 0x10]
test eax, eax
je 0x4770c1
mov esi, edi
lea eax, [esp + 0x50]
sub esi, eax
prefetcht0 byte [edx + 0x180]
lea ecx, [esp + 0x50]
sub edx, edi
mov dword [esp + 0x20], edx
mov edx, 4
mov edi, dword [esp + 0x20]
nop dword [eax + eax]
lea eax, [esi + ecx]
lea ecx, [ecx + 0x10]
movups xmm2, xmmword [eax + edi]
movups xmm0, xmmword [eax]
pxor xmm0, xmm2
pshufd xmm1, xmm0, 0x31
pmuludq xmm1, xmm0
pshufd xmm0, xmm2, 0x4e
paddq xmm0, xmmword [ecx - 0x10]
paddq xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
sub edx, 1
jne 0x477070
mov edx, dword [esp + 0x10]
add esi, 8
mov edi, dword [esp + 0x18]
add edx, 0x40
add edi, 8
mov dword [esp + 0x10], edx
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], edi
jne 0x477051
mov edi, dword [esp + 0x24]
lea esi, [edi + 0xc0]
add esi, dword [edi + 0x200]
jmp 0x47711a
mov eax, dword [esp + 0x24]
mov esi, 0x40
sub esi, edx
sub eax, esi
add eax, 0x200
push esi
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0047f730
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
lea eax, [esp + 0x9c]
add eax, esi
push edi
push eax
call fcn.0047f730
mov edi, dword [esp + 0x30]
lea esi, [esp + 0xa4]
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
mov eax, dword [edi + 0x21c]
add edx, 0xfffffff9
add eax, edx
mov edx, ecx
sub esi, edx
mov edx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
lea ecx, [ecx + 0x10]
movups xmm2, xmmword [esi + ecx - 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm2
pshufd xmm1, xmm0, 0x31
pmuludq xmm1, xmm0
pshufd xmm0, xmm2, 0x4e
paddq xmm0, xmmword [ecx - 0x10]
paddq xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
sub edx, 1
jne 0x477140
mov eax, dword [edi + 0x210]
mov esi, dword [edi + 0x21c]
push 0x9e3779b1
push 0x85ebca87
push dword [edi + 0x214]
push eax
call fcn.0047dfd0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push edx
push eax
lea edx, [edi + 0xb]
call fcn.0046a880
add esp, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [esp + 0x44]
push dword [esp + 0x40]
call fcn.0047dfd0
not edx
lea ecx, [esp + 0x50]
push edx
not eax
lea edx, [edi - 0xb]
push eax
add edx, esi
call fcn.0046a880
mov dword [esp + 0x50], eax
add esp, 8
mov dword [esp + 0x4c], edx
movups xmm0, xmmword [esp + 0x40]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
movups xmmword [eax], xmm0
call fcn.0047d39f
mov esp, ebp
pop ebp
ret