Function at 0x42d400
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
mov eax, ecx
mov dword [ebp - 8], edx
push esi
mov esi, dword [ebx + 8]
push edi
mov ecx, dword [eax]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp edi, 1
jne 0x42d450
push dword [ebx + 0x20]
mov ecx, eax
push esi
call fcn.0042c8d0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x24], ecx
lea ecx, [ebx + 0x28]
push ecx
mov ecx, dword [ebx + 0x14]
push 1
push dword [ebx + 0x1c]
push ecx
push ecx
lea ecx, [ebx + 0x10]
push ecx
push edi
push esi
push edx
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.0042c070
movd xmm1, dword [ebp - 0x3c]
add esp, 0x24
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x92b2e8]
movss dword [ebp - 0x18], xmm1
movd xmm1, dword [ebp - 0x38]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x92b2e8]
movss dword [ebp - 0x20], xmm1
cmp edi, 2
jne 0x42d62f
mov eax, dword [ebp - 0x30]
xor ecx, ecx
test eax, eax
je 0x42d4c1
cmp eax, 0x4000
mov edx, 8
cmovne ecx, edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 4]
sub eax, ecx
mov edi, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add eax, ecx
sub dword [edx + 0x20], eax
cmp dword [ebp - 0x30], 0x2000
cmovg edi, esi
mov dword [ebp - 0x14], edi
mov edi, esi
cmovg edi, dword [ebp - 8]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebx + 0xc]
test ecx, ecx
je 0x42d544
cmp dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x10]
je 0x42d538
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push 1
movss xmm1, dword [edx + 4]
movss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [edx]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.004192a0
mov eax, dword [ebp - 0xc]
add esp, 4
jmp 0x42d546
mov edx, 1
call fcn.0040ee50
jmp 0x42d546
xor eax, eax
push dword [ebp - 0x24]
mov edx, dword [ebx + 0x14]
add eax, eax
push dword [ebx + 0x24]
mov ecx, 1
sub ecx, eax
push ecx
mov dword [esp], 0x3f800000
push dword [ebx + 0x20]
mov dword [ebp - 0x10], ecx
push dword [ebx + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebx + 0x18]
push edx
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
push 2
call fcn.0042cf20
mov edx, dword [ebp - 0x10]
add esp, 0x24
mov ecx, edx
movss xmm3, dword [ebp - 0x18]
neg ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
movd xmm0, ecx
mov ecx, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [ebp - 4]
movss dword [ecx + 4], xmm0
cmp dword [eax + 4], 0
mov ecx, dword [ebp - 8]
je 0x42d862
movaps xmm0, xmm3
mulss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [ebp - 0x20]
movaps xmm2, xmm0
mulss xmm0, dword [esi + 4]
mulss xmm2, dword [esi]
movss dword [esi + 4], xmm0
movss dword [esi], xmm2
movss xmm1, dword [ecx]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [ecx], xmm0
addss xmm1, dword [esi]
movss dword [esi], xmm1
movss xmm1, dword [ecx + 4]
movaps xmm0, xmm1
subss xmm0, dword [esi + 4]
movss dword [ecx + 4], xmm0
addss xmm1, dword [esi + 4]
movss dword [esi + 4], xmm1
jmp 0x42d761
mov eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 1
cmp edx, eax
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jns 0x42d64c
xor eax, eax
jmp 0x42d651
cmp edx, eax
cmovl eax, edx
mov ecx, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov edi, dword [ecx + 0x20]
sub edi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
mov dword [ecx + 0x20], edi
mov edi, dword [ebx + 0xc]
cmp eax, edx
jl 0x42d6de
push dword [ebx + 0x28]
mov edx, dword [ebx + 0x14]
push dword [ebx + 0x24]
push ecx
mov dword [esp], 0x3f800000
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push edx
mov edx, dword [ebp - 8]
push eax
push edi
call fcn.0042cf20
mov dword [ebp - 0xc], eax
add esp, 0x24
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, 0x18
jle 0x42d6b9
cmp dword [ebp - 0x30], 0
je 0x42d6b9
add eax, 0xffffffe8
add eax, ecx
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x28]
movss xmm0, dword [ebp - 0x20]
sar edx, cl
push edx
push 0
push ecx
movss dword [esp], xmm0
mov edx, esi
push 0
push dword [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [ebp - 4]
jmp 0x42d749
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [ebp - 4]
push edx
push edi
mov edx, esi
call fcn.0042cf20
mov ecx, dword [ebp - 4]
add esp, 0x24
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
sub edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
cmp edx, 0x18
jle 0x42d72b
cmp dword [ebp - 0x30], 0x4000
je 0x42d72b
add eax, 0xffffffe8
add eax, edx
push dword [ebx + 0x28]
mov edx, dword [ebx + 0x14]
push dword [ebx + 0x24]
push ecx
mov dword [esp], 0x3f800000
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push edx
mov edx, dword [ebp - 8]
push eax
push edi
call fcn.0042cf20
mov ecx, dword [ebp - 8]
add esp, 0x24
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movss xmm3, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x42d862
cmp edi, 2
je 0x42d781
push dword [eax + 0x2c]
movaps xmm2, xmm3
mov edx, esi
push edi
call fcn.0042b630
add esp, 8
cmp dword [ebp - 0x40], 0
je 0x42d862
xor ecx, ecx
test edi, edi
jle 0x42d862
cmp edi, 2
jb 0x42d80b
movaps xmm2, xmmword [0x92bc70]
cmp edi, 0x10
jb 0x42d7ee
mov edx, edi
lea eax, [esi + 0x20]
and edx, 0xfffffff0
nop
movups xmm0, xmmword [eax - 0x20]
add ecx, 0x10
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jl 0x42d7b0
mov eax, edi
and al, 0xf
cmp al, 2
jb 0x42d807
mov eax, edi
and eax, 0xfffffffe
movsd xmm0, qword [esi + ecx*4]
xorps xmm0, xmm2
movsd qword [esi + ecx*4], xmm0
add ecx, 2
cmp ecx, eax
jl 0x42d7f3
cmp ecx, edi
jge 0x42d862
movaps xmm1, xmmword [0x92bc70]
mov eax, edi
sub eax, ecx
cmp eax, 4
jl 0x42d850
mov edx, edi
lea eax, [esi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
nop
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm1
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x42d830
cmp ecx, edi
jge 0x42d862
nop word [eax + eax]
movss xmm0, dword [esi + ecx*4]
xorps xmm0, xmm1
movss dword [esi + ecx*4], xmm0
inc ecx
cmp ecx, edi
jl 0x42d850
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret