Function at 0x4202bc
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x74
mov eax, dword [esp + 0x88]
lea edx, [eax + eax]
add edx, edx
sub edx, eax
lea edx, [eax + edx*8]
mov eax, dword [edx*4 + 0x7d9d88]
mov dword [esp + 4], eax
mov eax, dword [edx*4 + 0x7d9d8c]
mov dword [esp + 0x4c], eax
mov eax, dword [edx*4 + 0x7d9d90]
mov dword [esp], eax
mov eax, dword [edx*4 + 0x7d9d94]
mov dword [esp + 0x40], eax
mov edi, dword [edx*4 + 0x7d9d98]
mov ecx, dword [edx*4 + 0x7d9d9c]
mov ebp, dword [edx*4 + 0x7d9da4]
mov eax, dword [edx*4 + 0x7d9da8]
mov dword [esp + 8], eax
mov esi, dword [edx*4 + 0x7d9db0]
mov ebx, dword [edx*4 + 0x7d9db4]
mov eax, dword [edx*4 + 0x7d9db8]
mov dword [esp + 0x44], eax
mov edx, dword [edx*4 + 0x7d9dbc]
mov dword [esp + 0x38], edx
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x2c], edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, ecx
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x48], edx
lea edi, [edx + edx]
add edi, edi
sub edi, edx
lea edi, [edx + edi*8]
add edi, edi
add edi, edi
neg edi
add edi, ecx
mov eax, 0x51eb851f
imul esi
sar edx, 5
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0x50], edx
shl edi, 8
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x58], edx
mov edi, edx
sub ebp, ecx
cmp ebx, ebp
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
jge 0x4203bf
mov eax, 0
mov dword [esp + 0x58], eax
jl 0x4203c3
xor edi, edi
add esi, esi
add esi, esi
add ebx, 0xffffff9c
jne 0x4203d1
mov ebx, 0x64
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 4]
cmp eax, edx
jge 0x4205a3
mov eax, 0xff00ff
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, 0x10001
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x6c], eax
mov eax, dword [esp]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
lea eax, [eax + eax]
add eax, eax
mov dword [esp + 0x54], eax
mov eax, ebx
cdq
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
jmp 0x42044f
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
imul edi, ebp
mov dword [esp + 0x40], edi
mov ecx, dword [esp + 0x44]
lea edi, [ecx + edi]
mov dword [esp + 0x5c], edi
mov edx, ebp
shl edx, 8
add edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
imul edx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.00471080
mov edx, dword [esp + 0x58]
add eax, edx
mov edx, esi
imul edx, dword [esp + 0x48]
mov ecx, eax
sar ecx, 8
imul esi, ecx
add edx, esi
add edx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
movzx eax, al
xor esi, esi
shld esi, eax, 0x10
mov edx, eax
shl edx, 0x10
add edx, eax
adc esi, 0
add esi, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov eax, 0x1000100
sub eax, edx
mov edx, 0x1000100
sbb edx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
add ebx, ebx
add ebx, ebx
push ebx
push edi
call dword [0x5b85a0]
add esp, 8
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x70]
add esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
lea ebx, [0x832620]
lea edx, [0x842720]
movq mm4, qword [esp + 0x24]
movq mm6, qword [esp + 0xc]
pxor mm7, mm7
sub edi, 4
movq mm5, qword [edx + ecx*8]
mov eax, dword [ebx + ecx*4]
movd mm0, dword [esi + eax]
punpcklbw mm0, mm7
movd mm2, dword [esi + eax + 4]
punpcklbw mm2, mm7
add eax, dword [esp + 0x64]
inc ecx
movd mm1, dword [esi + eax]
punpcklbw mm1, mm7
movd mm3, dword [esi + eax + 4]
punpcklbw mm3, mm7
pmullw mm2, mm5
pmullw mm3, mm5
pxor mm5, mm4
paddusw mm5, qword [esp + 0x1c]
pmullw mm1, mm5
pmullw mm0, mm5
paddusw mm1, mm3
paddusw mm0, mm2
pmulhuw mm1, mm6
pmulhuw mm0, qword [esp + 0x14]
paddusb mm1, mm0
packuswb mm1, mm7
movd dword [edi + ecx*4], mm1
cmp ecx, dword [esp + 0x6c]
jne 0x420512
emms
mov eax, dword [esp + 0x6c]
lea edx, [eax + eax]
add edx, edx
add edx, dword [esp + 0x44]
add edx, dword [esp + 0x40]
neg eax
add eax, dword [esp + 0x50]
add eax, eax
add eax, eax
push eax
push edx
call dword [0x5b85a0]
add esp, 8
inc ebp
mov eax, dword [esp + 0x4c]
cmp ebp, eax
jl 0x420447
add esp, 0x74
pop ebx
pop ebp
pop esi
pop edi
ret