Function at 0x448870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x533840]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x52d648]
subss xmm0, dword [ebp + 0x24]
movss xmm1, dword [0x52d928]
push esi
mov esi, edx
mov dword [ebp - 0x24], ecx
push edi
maxss xmm1, xmm0
mov dword [ebp - 0x1c], esi
lea edi, [esi*4]
mov eax, edi
mulss xmm1, dword [0x52d5a0]
movss dword [ebp - 0x40], xmm1
call fcn.004c5240
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], esp
mov ecx, dword [ecx + 0x20]
movsx eax, word [ecx + esi*2 - 2]
movsx esi, word [ecx + esi*2]
mov ecx, dword [ebp + 0x1c]
sub esi, eax
shl esi, cl
shl esi, 2
mov eax, esi
call fcn.004c5240
mov eax, esi
mov dword [ebp - 0x14], esp
call fcn.004c5240
mov eax, edi
mov dword [ebp - 0x38], esp
call fcn.004c5240
mov eax, edi
mov dword [ebp - 0x3c], esp
call fcn.004c5240
mov eax, dword [ebp + 0x20]
xor esi, esi
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x18], esi
mov dword [eax], 0
cmp dword [ebp - 0x1c], esi
jle 0x448c80
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
xor eax, eax
cmp dword [ebp + 8], eax
cmovne eax, edi
mov dword [ebp - 0x28], eax
movd xmm0, eax
lea eax, [edi - 1]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x34], eax
mulss xmm0, dword [ebp - 0x40]
movss dword [ebp - 0x30], xmm0
jmp 0x448953
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
mov edi, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
movsx edx, word [eax + esi*2]
movsx eax, word [eax + esi*2 + 2]
sub eax, edx
shl edx, cl
add edx, dword [ebp + 0x18]
mov esi, eax
shl esi, cl
mov dword [ebp - 8], eax
lea eax, [esi*4]
push eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
push eax
push edi
call fcn.004c6400
movss xmm2, dword [0x52db00]
add esp, 0xc
xor ecx, ecx
xorps xmm6, xmm6
xorps xmm3, xmm3
cmp esi, 4
jl 0x4489f7
lea edx, [esi - 4]
shr edx, 2
lea eax, [edi + 8]
inc edx
lea ecx, [edx*4]
nop dword [eax + eax]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [eax + 4]
andps xmm0, xmm2
add eax, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x4489c0
cmp ecx, esi
jge 0x448a11
nop dword [eax + eax]
movss xmm0, dword [edi + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x448a00
movss xmm4, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mulss xmm4, xmm3
addss xmm4, xmm3
movss dword [ebp - 0xc], xmm4
test eax, eax
je 0x448b14
cmp dword [ebp - 8], 1
je 0x448b14
lea eax, [esi*4]
push eax
push edi
push dword [ebp - 0x38]
call fcn.004c6400
mov edi, dword [ebp + 0x1c]
mov eax, 1
mov ecx, edi
mov edx, esi
shl eax, cl
sar edx, cl
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00458060
movss xmm2, dword [0x52db00]
add esp, 0x10
xor eax, eax
xorps xmm6, xmm6
xorps xmm3, xmm3
cmp esi, 4
jl 0x448ac7
mov ecx, dword [ebp - 0x38]
lea edx, [esi - 4]
shr edx, 2
add ecx, 8
inc edx
lea eax, [edx*4]
nop
movss xmm1, dword [ecx - 8]
movss xmm0, dword [ecx - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx + 4]
andps xmm0, xmm2
add ecx, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x448a90
cmp eax, esi
jge 0x448ae1
mov ecx, dword [ebp - 0x38]
nop
movss xmm0, dword [ecx + eax*4]
inc eax
andps xmm0, xmm2
addss xmm3, xmm0
cmp eax, esi
jl 0x448ad0
movss xmm5, dword [ebp - 0x40]
lea eax, [edi + 1]
movss xmm4, dword [ebp - 0xc]
movd xmm0, eax
mov eax, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm5
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm4, xmm0
jbe 0x448b19
or edx, 0xffffffff
movaps xmm4, xmm0
mov dword [ebp - 0x10], edx
jmp 0x448b1c
movss xmm5, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x20], ecx
test eax, eax
jne 0x448b35
cmp dword [ebp - 8], 1
je 0x448b35
mov eax, 1
jmp 0x448b37
xor eax, eax
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
cmp edi, eax
jge 0x448c2e
cmp dword [ebp + 8], 0
je 0x448b50
mov dword [ebp - 0xc], ecx
jmp 0x448b56
lea eax, [edi + 1]
mov dword [ebp - 0xc], eax
mov ecx, edi
mov eax, 1
shl eax, cl
mov edx, esi
sar edx, cl
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00458060
movss xmm2, dword [0x52db00]
add esp, 4
xor eax, eax
movaps xmm3, xmm6
cmp esi, 4
jl 0x448bd7
mov ecx, dword [ebp - 0x14]
lea edx, [esi - 4]
shr edx, 2
add ecx, 8
inc edx
lea eax, [edx*4]
nop word [eax + eax]
movss xmm1, dword [ecx - 8]
movss xmm0, dword [ecx - 4]
andps xmm1, xmm2
addss xmm3, xmm1
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx]
andps xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [ecx + 4]
andps xmm0, xmm2
add ecx, 0x10
addss xmm3, xmm0
sub edx, 1
jne 0x448ba0
cmp eax, esi
jge 0x448bf1
mov ecx, dword [ebp - 0x14]
nop
movss xmm0, dword [ecx + eax*4]
inc eax
andps xmm0, xmm2
addss xmm3, xmm0
cmp eax, esi
jl 0x448be0
movd xmm0, dword [ebp - 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm5
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm4, xmm0
jbe 0x448c1f
mov eax, dword [ebp + 8]
lea edx, [edi + 1]
inc edi
mov dword [ebp - 0x10], edx
dec dword [ebp - 0x20]
movaps xmm4, xmm0
jmp 0x448b24
mov edx, dword [ebp - 0x10]
inc edi
dec dword [ebp - 0x20]
mov eax, dword [ebp + 8]
jmp 0x448b24
cmp dword [ebp + 8], 0
jne 0x448c36
neg edx
mov esi, dword [ebp - 0x18]
add edx, edx
mov edi, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov dword [edi + esi*4], edx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp + 0x20]
add dword [eax], ecx
cmp dword [ebp - 8], 1
jne 0x448c73
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x448c6d
mov eax, dword [ebp + 0x1c]
neg eax
add eax, eax
cmp ecx, eax
jne 0x448c73
lea eax, [ecx - 1]
mov dword [edi + esi*4], eax
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x1c]
jl 0x448950
mov edi, dword [ebp + 0x10]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
xor edx, edx
test eax, eax
mov dword [ebp - 0x18], edx
mov ecx, edi
cmovne ecx, esi
lea esi, [eax*4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], esi
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
jle 0x448d3b
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x1c]
movsx edx, byte [esi + edx*8 + 0x524dc8]
movsx esi, byte [esi + edi*8 + 0x524dc9]
add edx, edx
mov edi, dword [ebp + 0x10]
add esi, esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
add ecx, edi
add edi, eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + esi*4]
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x14]
cmp edx, ecx
cmovge edx, ecx
sub esi, dword [ebp - 0x28]
add edx, eax
mov eax, esi
mov dword [ebp - 0x14], edx
cdq
mov ecx, eax
mov eax, dword [ebp - 8]
xor ecx, edx
sub ecx, edx
cmp edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmovge edi, dword [ebp - 0x34]
inc eax
add ecx, edi
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
jl 0x448ce5
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
cmp eax, ecx
cmovl ecx, eax
add esi, 2
mov dword [ebp + edx*4 - 0x44], ecx
inc edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], esi
cmp edx, 2
jl 0x448cb0
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp eax, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
jge 0x448d74
test eax, eax
mov ecx, 1
cmovne esi, ecx
mov dword [ebp - 0x20], esi
xor edx, edx
mov ecx, edi
test eax, eax
cmovne ecx, edx
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ecx
jle 0x448e3c
mov edi, dword [ebp + 0x1c]
lea eax, [eax + edi*2]
mov edi, dword [ebp - 0x48]
sub dword [ebp - 0x2c], edi
lea eax, [esi + eax*2]
movsx esi, byte [eax*2 + 0x524dc8]
movsx eax, byte [eax*2 + 0x524dc9]
add esi, esi
add eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
lea esi, [edi + 4]
mov eax, dword [ebp - 0x3c]
sub eax, edi
mov dword [ebp - 8], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
add ecx, edi
mov edi, edx
cmp edx, ecx
cmovge edi, ecx
xor eax, eax
cmp edx, ecx
mov ecx, dword [ebp - 0x28]
setge al
mov dword [esi + ecx], eax
mov ecx, dword [ebp + 0x10]
add ecx, edx
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, edx
cmovl esi, ecx
xor eax, eax
cmp ecx, edx
mov ecx, dword [ebp - 8]
setge al
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + ecx]
mov eax, ecx
sub eax, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x30]
cdq
xor eax, edx
sub eax, edx
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, ecx
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x24]
add ecx, esi
mov esi, dword [ebp - 8]
add esi, 4
mov dword [ebp - 0x18], ecx
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
jne 0x448dd0
mov edi, dword [ebp + 0xc]
xor eax, eax
cmp edx, ecx
mov ecx, dword [ebp - 0x1c]
setge al
lea edx, [ecx - 2]
mov dword [edi + ecx*4 - 4], eax
test edx, edx
js 0x448e8c
mov ecx, dword [ebp - 0x48]
mov esi, edi
sub esi, ecx
lea eax, [ecx + 4]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x48]
lea eax, [eax + edx*4]
mov dword [ebp - 0x3c], ecx
nop word [eax + eax]
cmp dword [eax + esi], 1
jne 0x448e7a
mov ecx, eax
jmp 0x448e7c
add ecx, eax
mov ecx, dword [ecx]
sub eax, 4
mov dword [edi + edx*4], ecx
sub edx, 1
mov ecx, dword [ebp - 0x3c]
jns 0x448e70
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x50]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c43a7
mov esp, ebp
pop ebp
ret