Function at 0x10028420
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x858
mov ebx, dword [esp + 0x86c]
cmp dword [ebx], 0
je 0x10028fab
mov ecx, dword [esp + 0x878]
mov edx, dword [esp + 0x87c]
mov ebp, dword [ebx + 0x10]
cmp dword [ebx + 0xc], 0
jne 0x10028cd2
cmp dword [ebx + 0x50], 0
jbe 0x10028fab
movss xmm2, dword [0x10365410]
lea eax, [ecx - 1]
movss xmm1, dword [0x10365418]
lea esi, [edx - 1]
or eax, esi
lea esi, [ecx*4]
mov dword [esp + 0x3c], esi
lea esi, [edx*4]
mov dword [esp + 0x2c], esi
xor edi, edi
mov dword [esp + 0x44c], eax
mov edx, dword [ebx + 0x2c]
cmp dword [esp + 0x878], 1
je 0x10028fdc
test ebp, ebp
pxor xmm0, xmm0
jbe 0x1002851f
mov ecx, edi
xor eax, eax
imul ecx, edx
imul ecx, dword [esp + 0x3c]
mov dword [esp + 0x460], ecx
mov dword [esp + 0x40], edi
mov ebx, dword [esp + 0x874]
mov edi, dword [ebx + eax*4]
test edi, edi
je 0x1002850f
add edi, dword [esp + 0x460]
test edx, edx
jbe 0x1002850f
xor esi, esi
mov ebx, dword [esp + 0x878]
xor ecx, ecx
movss xmm1, dword [edi + ecx*4]
inc esi
movaps xmm2, xmm1
add ecx, ebx
xorps xmm2, xmmword [0x10365400]
cmp esi, edx
maxss xmm2, xmm1
maxss xmm0, xmm2
jb 0x100284ea
mov ebx, dword [esp + 0x874]
inc eax
cmp eax, ebp
jb 0x100284cd
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x86c]
movaps xmm2, xmm0
movss xmm1, dword [ebx + 0x40]
movss xmm3, dword [ebx + 0x44]
mov eax, dword [ebx + 0x44]
movss dword [esp + 0x448], xmm3
mov dword [ebx + 0x34], eax
maxss xmm2, dword [ebx + 0x30]
mulss xmm2, xmm1
movss dword [ebx + 0x30], xmm0
movss xmm0, dword [ebx + 4]
movss dword [esp + 0x444], xmm0
comiss xmm2, xmm0
ja 0x10028569
movss xmm4, dword [0x10365420]
jmp 0x10028855
movss xmm0, dword [0x10365418]
xor esi, esi
comiss xmm0, xmm2
ja 0x100285bf
movss xmm0, dword [0x10365420]
comiss xmm2, xmm0
jb 0x100285fd
movss dword [esp + 0x30], xmm1
cvtss2sd xmm2, xmm2
movsd qword [esp], xmm2
mov dword [esp + 8], 0xffffffff
call fcn.10009ad0
fstp qword [esp + 0x34]
dec esi
movsd xmm2, qword [esp + 0x34]
cvtsd2ss xmm2, xmm2
movss xmm0, dword [0x10365420]
comiss xmm2, xmm0
jae 0x1002858b
jmp 0x100285f7
movss dword [esp + 0x30], xmm1
cvtss2sd xmm2, xmm2
movsd qword [esp], xmm2
mov dword [esp + 8], 1
call fcn.10009ad0
fstp qword [esp + 0x34]
inc esi
movsd xmm2, qword [esp + 0x34]
cvtsd2ss xmm2, xmm2
movss xmm0, dword [0x10365418]
comiss xmm0, xmm2
ja 0x100285c5
movss xmm1, dword [esp + 0x30]
comiss xmm2, dword [0x1036541c]
jbe 0x10028654
pxor xmm0, xmm0
cvtss2sd xmm0, xmm2
movsd qword [esp], xmm0
mov dword [esp + 8], 0xffffffff
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm3, qword [esp + 0x34]
cvtsd2ss xmm3, xmm3
movss xmm0, dword [0x10365420]
movss xmm1, dword [esp + 0x30]
subss xmm0, xmm3
movss xmm2, dword [esp + 0x1c]
jmp 0x1002869c
movss xmm0, dword [0x10365420]
subss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
mov dword [esp + 8], 1
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm0, qword [esp + 0x34]
movss xmm1, dword [esp + 0x30]
movss xmm2, dword [esp + 0x1c]
cvtsd2ss xmm0, xmm0
movaps xmm4, xmm2
mulss xmm4, xmm0
movss xmm3, dword [0x10365418]
subss xmm3, xmm4
mulss xmm3, xmm0
cvtss2sd xmm3, xmm3
movsd qword [esp], xmm3
mov dword [esp + 8], 1
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm3, qword [esp + 0x34]
cvtsd2ss xmm3, xmm3
movss xmm0, dword [esp + 0x20]
movss xmm2, dword [esp + 0x1c]
addss xmm0, xmm3
movaps xmm5, xmm2
mulss xmm5, xmm0
movss xmm4, dword [0x10365418]
movss xmm1, dword [esp + 0x30]
subss xmm4, xmm5
mulss xmm4, xmm0
cvtss2sd xmm4, xmm4
movsd qword [esp], xmm4
mov dword [esp + 8], 1
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm3, qword [esp + 0x34]
cvtsd2ss xmm3, xmm3
movss xmm0, dword [esp + 0x20]
movss xmm2, dword [esp + 0x1c]
addss xmm0, xmm3
movaps xmm5, xmm2
mulss xmm5, xmm0
movss xmm4, dword [0x10365418]
movss xmm1, dword [esp + 0x30]
subss xmm4, xmm5
mulss xmm4, xmm0
cvtss2sd xmm4, xmm4
movsd qword [esp], xmm4
mov dword [esp + 8], 1
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm3, qword [esp + 0x34]
cvtsd2ss xmm3, xmm3
movss xmm0, dword [esp + 0x20]
movss xmm2, dword [esp + 0x1c]
addss xmm0, xmm3
mulss xmm2, xmm0
movss xmm4, dword [0x10365418]
movss xmm1, dword [esp + 0x30]
subss xmm4, xmm2
mulss xmm4, xmm0
cvtss2sd xmm4, xmm4
movsd qword [esp], xmm4
mov dword [esp + 8], 1
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
inc esi
movsd xmm2, qword [esp + 0x34]
cvtsd2ss xmm2, xmm2
movss xmm0, dword [esp + 0x20]
movss xmm1, dword [esp + 0x30]
addss xmm0, xmm2
js 0x10028fb6
mulss xmm0, dword [esp + 0x444]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
mov dword [esp + 8], esi
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm4, qword [esp + 0x34]
movss xmm1, dword [esp + 0x30]
cvtsd2ss xmm4, xmm4
movaps xmm3, xmm1
mulss xmm3, xmm4
movss xmm0, dword [esp + 0x448]
comiss xmm0, xmm3
jbe 0x10028880
movss dword [ebx + 0x48], xmm4
movss dword [ebx + 0x44], xmm3
mov dword [ebx + 0x38], 0
mov esi, dword [ebx + 0x24]
jmp 0x100288cf
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x3c]
jge 0x10028896
inc eax
mov dword [ebx + 0x38], eax
movss xmm4, dword [ebx + 0x48]
mov esi, dword [ebx + 0x24]
jmp 0x100288cf
movaps xmm0, xmm4
movaps xmm2, xmm1
xorps xmm0, xmmword [0x10365400]
mov esi, dword [ebx + 0x24]
addss xmm0, dword [ebx + 0x48]
mulss xmm0, dword [esi + 0x10]
addss xmm4, xmm0
mulss xmm2, xmm4
movss dword [ebx + 0x48], xmm4
maxss xmm2, dword [esp + 0x448]
minss xmm3, xmm2
movss dword [ebx + 0x44], xmm3
movss xmm0, dword [0x10365410]
comiss xmm0, xmm4
jbe 0x1002892f
movss xmm0, dword [0x10365414]
mulss xmm0, xmm1
mulss xmm0, xmm4
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
mov dword [esp + 8], 1
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
fstp qword [esp + 0x34]
movsd xmm2, qword [esp + 0x34]
cvtsd2ss xmm2, xmm2
movss xmm1, dword [esp + 0x30]
movss xmm0, dword [esi]
mulss xmm2, dword [esi + 4]
mulss xmm1, xmm0
addss xmm1, xmm2
jmp 0x1002893d
movss xmm0, dword [esi + 8]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0xc]
movss dword [ebx + 0x40], xmm1
cmp dword [esp + 0x44c], 0
je 0x10028bce
test ebp, ebp
jbe 0x10028cc3
mov ecx, dword [esp + 0x3c]
xor esi, esi
mov edx, dword [esp + 0x2c]
imul ecx, edi
imul edx, edi
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x458], edx
mov dword [esp + 0x45c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x854], ebp
mov edx, dword [esp + 0x874]
mov ebp, eax
imul ebp, dword [esp + 0x458]
mov edi, dword [edx + esi*4]
mov edx, eax
imul edx, dword [esp + 0x45c]
mov ecx, dword [esp + 0x870]
add edx, edi
add ebp, dword [ecx + esi*4]
test edi, edi
je 0x10028bbb
cmp dword [esp + 0x878], 1
je 0x10028a77
test eax, eax
jbe 0x10028a73
cmp eax, 6
jbe 0x10028a45
cmp dword [esp + 0x3c], 0
jbe 0x10028a45
lea ecx, [esp + 0x44]
cmp ecx, edx
jbe 0x10028a08
mov edi, dword [esp + 0x878]
lea ecx, [esp + 0x44]
mov ebx, dword [esp + 0x3c]
sub ecx, edx
imul ebx, eax
shl edi, 2
neg edi
lea edi, [edi + ebx + 4]
mov ebx, dword [esp + 0x86c]
cmp ecx, edi
jge 0x10028a23
lea ecx, [esp + 0x44]
cmp edx, ecx
jbe 0x10028a45
mov ecx, edx
lea edi, [esp + 0x44]
sub ecx, edi
lea edi, [eax*4]
cmp ecx, edi
jl 0x10028a45
xor edi, edi
mov dword [esp + 0x454], esi
xor ecx, ecx
mov ebx, dword [esp + 0x878]
mov esi, dword [edx + ecx*4]
add ecx, ebx
mov dword [esp + edi*4 + 0x44], esi
inc edi
cmp edi, eax
jb 0x10028a35
jmp 0x10028a65
xor edi, edi
mov dword [esp + 0x454], esi
xor ecx, ecx
mov ebx, dword [esp + 0x878]
mov esi, dword [edx + ecx*4]
add ecx, ebx
mov dword [esp + edi*4 + 0x44], esi
inc edi
cmp edi, eax
jb 0x10028a57
mov esi, dword [esp + 0x454]
mov ebx, dword [esp + 0x86c]
lea edx, [esp + 0x44]
cmp dword [esp + 0x87c], 1
mov edi, ebp
movss xmm0, dword [ebx + 0x34]
lea ecx, [esp + 0x44]
cmovne edi, ecx
lea ecx, [esi*4]
imul ecx, eax
movss xmm1, dword [ebx + 0x44]
mulss xmm0, dword [ebx + 0x64]
mulss xmm1, dword [ebx + 8]
add ecx, dword [ebx + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 0xc], edx
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm1
mov dword [esp + 0x18], eax
call fcn.1003d4f0
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x10028bbb
xor edx, edx
mov ebx, eax
mov dword [esp + 0x454], esi
mov esi, edx
pxor xmm0, xmm0
cvtss2sd xmm0, dword [edi]
movsd qword [esp], xmm0
mov dword [esp + 8], 8
call fcn.10009ad0
inc esi
fstp dword [edi]
add edi, 4
cmp esi, ebx
jb 0x10028ae8
mov esi, dword [esp + 0x454]
mov eax, ebx
mov ebx, dword [esp + 0x86c]
cmp dword [esp + 0x87c], 1
je 0x10028bbb
cmp eax, 6
jbe 0x10028b9a
cmp dword [esp + 0x2c], 0
jbe 0x10028b9a
lea edx, [esp + 0x44]
cmp ebp, edx
jbe 0x10028b51
mov ecx, ebp
lea edx, [esp + 0x44]
sub ecx, edx
lea edi, [eax*4]
cmp ecx, edi
jge 0x10028b7e
lea edx, [esp + 0x44]
cmp edx, ebp
jbe 0x10028b9a
mov ecx, dword [esp + 0x87c]
lea edx, [esp + 0x44]
sub edx, ebp
lea edi, [ecx*4]
mov ecx, dword [esp + 0x2c]
imul ecx, eax
neg edi
lea edi, [edi + ecx + 4]
cmp edx, edi
jl 0x10028b9a
xor ecx, ecx
mov ebx, dword [esp + 0x87c]
xor edx, edx
mov edi, dword [esp + ecx*4 + 0x44]
inc ecx
mov dword [ebp + edx*4], edi
add edx, ebx
cmp ecx, eax
jb 0x10028b89
jmp 0x10028bb4
xor ecx, ecx
mov ebx, dword [esp + 0x87c]
xor edx, edx
mov edi, dword [esp + ecx*4 + 0x44]
inc ecx
mov dword [ebp + edx*4], edi
add edx, ebx
cmp ecx, eax
jb 0x10028ba5
mov ebx, dword [esp + 0x86c]
inc esi
cmp esi, dword [esp + 0x854]
jb 0x10028984
jmp 0x10028cb8
test ebp, ebp
jbe 0x10028cc3
mov dword [esp + 0x40], edi
lea eax, [edi*4]
mov dword [esp + 0x450], eax
xor esi, esi
mov dword [esp + 0x854], ebp
mov edi, dword [esp + 0x874]
cmp dword [edi + esi*4], 0
je 0x10028caa
mov eax, dword [ebx + 0x2c]
lea ecx, [esi*4]
imul ecx, eax
movss xmm0, dword [ebx + 0x34]
movss xmm1, dword [ebx + 0x44]
mulss xmm0, dword [ebx + 0x64]
mulss xmm1, dword [ebx + 8]
mov edx, dword [esp + 0x450]
imul edx, eax
mov ebp, dword [esp + 0x870]
add ecx, dword [ebx + 0x4c]
mov ebp, dword [ebp + esi*4]
add ebp, edx
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov ecx, dword [edi + esi*4]
add ecx, edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm1
mov dword [esp + 0x18], eax
call fcn.1003d4f0
mov edx, dword [ebx + 0x2c]
test edx, edx
jbe 0x10028caa
xor eax, eax
mov edi, ebp
mov ebx, eax
mov ebp, edx
pxor xmm0, xmm0
cvtss2sd xmm0, dword [edi]
movsd qword [esp], xmm0
mov dword [esp + 8], 8
call fcn.10009ad0
inc ebx
fstp dword [edi]
add edi, 4
cmp ebx, ebp
jb 0x10028c78
mov edi, dword [esp + 0x874]
mov ebx, dword [esp + 0x86c]
inc esi
cmp esi, dword [esp + 0x854]
jb 0x10028bf8
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x854]
inc edi
cmp edi, dword [ebx + 0x50]
jb 0x10028496
jmp 0x10028fab
lea esi, [ecx - 1]
lea eax, [edx - 1]
or esi, eax
je 0x10028da5
test ebp, ebp
jbe 0x10028fab
mov esi, dword [ebx + 0x1c]
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x854], ebp
mov edx, dword [esp + 0x870]
mov ecx, dword [esp + 0x874]
cmp dword [esp + 0x20], 0
mov edi, dword [ecx + eax*4]
mov ecx, dword [edx + eax*4]
jbe 0x10029072
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x28], edi
xor esi, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x86c]
mov eax, dword [esp + 0x28]
movss xmm0, dword [edi + 4]
movaps xmm2, xmm0
movss xmm1, dword [eax + ebp*4]
xorps xmm2, xmmword [0x10365400]
minss xmm1, xmm0
maxss xmm2, xmm1
mulss xmm2, dword [edi + 8]
cvtss2sd xmm2, xmm2
movsd qword [esp], xmm2
mov dword [esp + 8], 8
call fcn.10009ad0
mov eax, dword [esp + 0x24]
inc ebx
add ebp, dword [esp + 0x878]
fstp dword [eax + esi*4]
add esi, dword [esp + 0x87c]
cmp ebx, dword [esp + 0x20]
jb 0x10028d30
mov eax, dword [esp + 0x1c]
inc eax
mov edx, dword [esp + 0x870]
cmp eax, dword [esp + 0x854]
jb 0x10028cff
jmp 0x10028fab
test ebp, ebp
jbe 0x10028fab
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x3b]
and eax, 0xffffffe0
xor edx, edx
mov dword [esp + 0x84c], eax
mov dword [esp + 0x854], ebp
lea edi, [eax + 0x400]
mov dword [esp + 0x844], edi
lea esi, [eax + 0xf]
and esi, 0xfffffff0
lea edi, [eax + 0x40f]
and edi, 0xfffffff0
mov dword [esp + 0x848], edi
mov dword [esp + 0x83c], esi
mov eax, dword [esp + 0x874]
mov ebp, dword [esp + 0x870]
mov esi, dword [eax + edx*4]
cmp dword [ebx + 0x2c], 0x28
mov ebp, dword [ebp + edx*4]
jne 0x10028e83
test ecx, ecx
jbe 0x10028f9d
mov dword [esp + 0x840], edx
xor edi, edi
mov dword [esp + 0x850], ecx
movss xmm0, dword [ebx + 4]
movss xmm1, dword [esi + edi*4]
movaps xmm2, xmm0
xorps xmm2, xmmword [0x10365400]
minss xmm1, xmm0
maxss xmm2, xmm1
mulss xmm2, dword [ebx + 8]
cvtss2sd xmm2, xmm2
movsd qword [esp], xmm2
mov dword [esp + 8], 8
call fcn.10009ad0
fstp dword [ebp + edi*4]
inc edi
cmp edi, dword [esp + 0x850]
jb 0x10028e24
mov edx, dword [esp + 0x840]
mov ecx, dword [esp + 0x850]
mov eax, dword [esp + 0x874]
jmp 0x10028f9d
test ecx, ecx
jbe 0x10028f9d
mov dword [esp + 0x840], edx
xor edi, edi
mov ebx, dword [esp + 0x844]
mov eax, dword [esp + 0x86c]
xor ecx, ecx
mov ebx, dword [esp + 0x84c]
xor edx, edx
movss xmm0, dword [eax + 4]
mov eax, esi
movss xmm1, dword [esi + ecx*8]
minss xmm1, xmm0
movss dword [ebx + ecx*8], xmm1
inc ecx
movss xmm2, dword [eax + 4]
add eax, 8
minss xmm2, xmm0
movss dword [edx + ebx + 4], xmm2
add edx, 8
cmp ecx, 0x10
jb 0x10028eb4
mov ebx, dword [esp + 0x844]
xorps xmm0, xmmword [0x10365400]
cmp ebx, dword [esp + 0x848]
jne 0x10028f18
mov eax, dword [esp + 0x84c]
cmp eax, dword [esp + 0x83c]
jne 0x10028f18
mov dword [esp], ebx
mov dword [esp + 4], eax
movss dword [esp + 8], xmm0
call fcn.1003d5c0
jmp 0x10028f31
mov dword [esp], ebx
mov eax, dword [esp + 0x84c]
mov dword [esp + 4], eax
movss dword [esp + 8], xmm0
call fcn.1003d580
mov eax, dword [esp + 0x86c]
lea edx, [ebp + 0xf]
and edx, 0xfffffff0
cmp ebp, edx
mov eax, dword [eax + 8]
jne 0x10028f5a
cmp ebx, dword [esp + 0x848]
jne 0x10028f5a
push 8
push eax
push ebx
push ebp
call fcn.1003d640
jmp 0x10028f64
push 8
push eax
push ebx
push ebp
call fcn.1003d600
add esp, 0x10
mov eax, dword [esp + 0x86c]
add edi, 0x20
add esi, 0x80
add ebp, 0x80
mov ecx, dword [eax + 0x1c]
cmp edi, ecx
jb 0x10028e9b
mov edx, dword [esp + 0x840]
mov eax, dword [esp + 0x874]
mov ebx, dword [esp + 0x86c]
inc edx
cmp edx, dword [esp + 0x854]
jb 0x10028df8
add esp, 0x858
pop ebp
pop ebx
pop edi
pop esi
ret
mulss xmm0, dword [esp + 0x444]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
mov dword [esp + 8], esi
movss dword [esp + 0x30], xmm1
call fcn.10009ad0
jmp 0x10028841
test ebp, ebp
pxor xmm0, xmm0
jbe 0x1002851f
mov ecx, edx
xor eax, eax
and ecx, 3
lea esi, [edi*4]
imul esi, edx
mov ebx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edi
mov edi, eax
mov eax, dword [esp + 0x874]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x10029068
lea ecx, [edx + esi]
lea edx, [edx + esi + 0xf]
and edx, 0xfffffff0
cmp ecx, edx
jne 0x10029037
cmp dword [esp + 0x24], 0
jne 0x10029037
push ebx
push ecx
movss dword [esp + 0x30], xmm0
call fcn.1003b520
jmp 0x10029044
push ebx
push ecx
movss dword [esp + 0x30], xmm0
call fcn.1003b4c0
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x87c]
movss xmm0, dword [esp + 0x30]
movss xmm2, dword [esp + 0x3c]
add esp, 8
movaps xmm1, xmm0
movaps xmm0, xmm2
maxss xmm0, xmm1
inc edi
cmp edi, ebp
jb 0x1002900c
jmp 0x10028514
nop word [eax + eax]
inc eax
cmp eax, dword [esp + 0x854]
jb 0x10028cff
jmp 0x10028fab