Function at 0x4421e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4b3080]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x4a7714]
subss xmm0, dword [ebp + 0x24]
movss xmm1, dword [0x4a7b48]
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 [0x4a7678]
movss dword [ebp - 0x40], xmm1
call fcn.00466990
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.00466990
mov eax, esi
mov dword [ebp - 0x14], esp
call fcn.00466990
mov eax, edi
mov dword [ebp - 0x38], esp
call fcn.00466990
mov eax, edi
mov dword [ebp - 0x3c], esp
call fcn.00466990
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 0x4425f0
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 0x4422c3
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.004674e0
movss xmm2, dword [0x4a7df0]
add esp, 0xc
xor ecx, ecx
xorps xmm6, xmm6
xorps xmm3, xmm3
cmp esi, 4
jl 0x442367
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 0x442330
cmp ecx, esi
jge 0x442381
nop dword [eax + eax]
movss xmm0, dword [edi + ecx*4]
inc ecx
andps xmm0, xmm2
addss xmm3, xmm0
cmp ecx, esi
jl 0x442370
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 0x442484
cmp dword [ebp - 8], 1
je 0x442484
lea eax, [esi*4]
push eax
push edi
push dword [ebp - 0x38]
call fcn.004674e0
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.0044aab0
movss xmm2, dword [0x4a7df0]
add esp, 0x10
xor eax, eax
xorps xmm6, xmm6
xorps xmm3, xmm3
cmp esi, 4
jl 0x442437
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 0x442400
cmp eax, esi
jge 0x442451
mov ecx, dword [ebp - 0x38]
nop
movss xmm0, dword [ecx + eax*4]
inc eax
andps xmm0, xmm2
addss xmm3, xmm0
cmp eax, esi
jl 0x442440
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 0x442489
or edx, 0xffffffff
movaps xmm4, xmm0
mov dword [ebp - 0x10], edx
jmp 0x44248c
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 0x4424a5
cmp dword [ebp - 8], 1
je 0x4424a5
mov eax, 1
jmp 0x4424a7
xor eax, eax
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
cmp edi, eax
jge 0x44259e
cmp dword [ebp + 8], 0
je 0x4424c0
mov dword [ebp - 0xc], ecx
jmp 0x4424c6
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.0044aab0
movss xmm2, dword [0x4a7df0]
add esp, 4
xor eax, eax
movaps xmm3, xmm6
cmp esi, 4
jl 0x442547
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 0x442510
cmp eax, esi
jge 0x442561
mov ecx, dword [ebp - 0x14]
nop
movss xmm0, dword [ecx + eax*4]
inc eax
andps xmm0, xmm2
addss xmm3, xmm0
cmp eax, esi
jl 0x442550
movd xmm0, dword [ebp - 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm5
mulss xmm0, xmm3
addss xmm0, xmm3
comiss xmm4, xmm0
jbe 0x44258f
mov eax, dword [ebp + 8]
lea edx, [edi + 1]
inc edi
mov dword [ebp - 0x10], edx
dec dword [ebp - 0x20]
movaps xmm4, xmm0
jmp 0x442494
mov edx, dword [ebp - 0x10]
inc edi
dec dword [ebp - 0x20]
mov eax, dword [ebp + 8]
jmp 0x442494
cmp dword [ebp + 8], 0
jne 0x4425a6
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 0x4425e3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4425dd
mov eax, dword [ebp + 0x1c]
neg eax
add eax, eax
cmp ecx, eax
jne 0x4425e3
lea eax, [ecx - 1]
mov dword [edi + esi*4], eax
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x1c]
jl 0x4422c0
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 0x4426ab
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x1c]
movsx edx, byte [esi + edx*8 + 0x4a0780]
movsx esi, byte [esi + edi*8 + 0x4a0781]
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 0x442655
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 0x442620
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp eax, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
jge 0x4426e4
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 0x4427ac
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 + 0x4a0780]
movsx eax, byte [eax*2 + 0x4a0781]
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 0x442740
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 0x4427fc
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 0x4427ea
mov ecx, eax
jmp 0x4427ec
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 0x4427e0
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x50]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004661fb
mov esp, ebp
pop ebp
ret