Function at 0x42ce20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], edx
xor edx, edx
mov byte [ebp - 0x39], cl
mov ecx, dword [edi + 0x426c]
mov dword [ebp - 0x10], eax
mov eax, ecx
div esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
test edx, edx
jne 0x42cf31
lea esi, [ebx + 0x1d4e0]
mov dword [ebp - 0x28], 0x43800000
push esi
lea edi, [ebx + 0x194]
mov dword [ebp - 0x24], 0xc0800000
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0x43800000
push 0x4fd528
push eax
mov edx, 0x577224
mov ecx, 1
call fcn.004461b0
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43800000
push 0x4fd528
push eax
mov edx, 0x577224
mov dword [ebp - 0x24], 0xc0800000
mov ecx, 1
mov dword [ebp - 0x20], 0x43880000
call fcn.004461b0
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43880000
push 0x4fd528
push eax
mov edx, 0x577224
mov dword [ebp - 0x24], 0xc0800000
mov ecx, 1
mov dword [ebp - 0x20], 0x43880000
call fcn.004461b0
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x43880000
push 0x4fd528
push eax
mov edx, 0x577224
mov dword [ebp - 0x24], 0xc0800000
mov ecx, 1
mov dword [ebp - 0x20], 0x43800000
call fcn.004461b0
mov edi, dword [ebp - 0x14]
add esp, 0x40
mov ecx, dword [edi + 0x426c]
test dword [edi + 0x4268], 0x200
mov esi, ecx
movss xmm2, dword [0x50d2cc]
movss xmm1, dword [0x50d500]
je 0x42d06a
mov eax, dword [edi + 0x4280]
lea edx, [edi + 0x4140]
add eax, 0x828
mov dword [ebp - 4], edx
lea eax, [edi + eax*8]
cmp edx, eax
jae 0x42d06a
mov dword [ebp - 0xc], 0x1e
nop dword [eax]
mov ecx, esi
mov esi, dword [edx]
xor edx, edx
mov dword [ebp - 0x4c], ecx
lea eax, [ecx + esi]
div dword [ebp - 0xc]
test edx, edx
jne 0x42d048
mov eax, 0x3e0f83e1
mov dword [ebp - 0x24], 0x41000000
mul esi
push 1
shr edx, 3
xor ecx, ecx
mov eax, edx
shl eax, 5
add eax, edx
sub esi, eax
lea eax, [ebx + 0x1d4ec]
push eax
lea eax, [ebx + 0x194]
push eax
movd xmm0, esi
lea eax, [ebp - 0x28]
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
push eax
addsd xmm0, qword [esi*8 + 0x50e260]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm2
mulss xmm0, xmm1
addss xmm0, dword [0x50d2dc]
movss dword [ebp - 0x28], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x50e260]
mov edx, 2
cvtpd2ps xmm0, xmm0
addss xmm0, xmm2
mulss xmm0, xmm1
addss xmm0, dword [0x50d390]
movss dword [ebp - 0x20], xmm0
call fcn.00445a90
mov ecx, dword [edi + 0x426c]
add esp, 0x10
movss xmm1, dword [0x50d500]
mov esi, ecx
movss xmm2, dword [0x50d2cc]
jmp 0x42d04b
mov esi, dword [ebp - 0x4c]
mov eax, dword [edi + 0x4280]
mov edx, dword [ebp - 4]
add eax, 0x828
add edx, 8
mov dword [ebp - 4], edx
lea eax, [edi + eax*8]
cmp edx, eax
jb 0x42cf80
test byte [ebx + 0x3c], 0x40
je 0x42d07e
push ebx
push dword [ebp - 0x10]
mov edx, edi
call fcn.0042cb90
add esp, 8
test dword [edi + 0x426c], 7
xorps xmm1, xmm1
movss dword [ebp - 0x38], xmm1
jne 0x42d236
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x5984], ecx
jbe 0x42d236
mov edx, dword [ebp - 0x34]
lea esi, [eax + 0x58dc]
lea eax, [edi + 0x41c4]
mov dword [ebp - 8], eax
nop dword [eax]
cmp dword [eax], 0
je 0x42d21d
mov eax, dword [esi + 4]
add eax, 3
movss xmm2, dword [0x50d2cc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x50e260]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x50d448]
mulss xmm0, xmm2
ucomiss xmm1, xmm0
movss dword [ebp - 0xc], xmm0
lahf
test ah, 0x44
jp 0x42d116
movss xmm3, dword [0x50d70c]
movaps xmm4, xmm1
jmp 0x42d170
cvtps2pd xmm0, xmm0
call fcn.004ef120
movss xmm1, dword [ebp - 0xc]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x4c], xmm0
cvtps2pd xmm0, xmm1
call fcn.004ee160
movss xmm1, dword [ebp - 0x4c]
xorps xmm3, xmm3
movss xmm2, dword [0x50d2cc]
cvtsd2ss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm1, dword [ebp - 0x38]
mulss xmm0, dword [0x50d470]
movaps xmm4, xmm3
mulss xmm4, dword [ebp - 0x38]
mulss xmm3, dword [0x50d70c]
subss xmm4, xmm0
subss xmm3, xmm1
mov ecx, dword [esi]
mov eax, 0x3e0f83e1
mul ecx
mov dword [ebp - 0x24], 0x3fa00000
shr edx, 3
mov eax, edx
shl eax, 5
add eax, edx
sub ecx, eax
lea eax, [ebx + 0x1d4e0]
push eax
lea eax, [ebx + 0x194]
push eax
movd xmm0, ecx
lea eax, [ebp - 0x28]
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
push 0x4fd51c
push eax
addsd xmm0, qword [ecx*8 + 0x50e260]
mov ecx, 1
cvtpd2ps xmm0, xmm0
addss xmm0, xmm2
mulss xmm0, dword [0x50d500]
addss xmm0, xmm4
movss dword [ebp - 0x28], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x50e260]
mov edx, 0x577248
cvtpd2ps xmm0, xmm0
addss xmm0, xmm2
mulss xmm0, dword [0x50d500]
addss xmm0, xmm3
movss dword [ebp - 0x20], xmm0
call fcn.004461b0
movss xmm1, dword [ebp - 0x38]
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
inc ecx
add eax, 8
add esi, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp ecx, dword [edx + 0x5984]
jb 0x42d0c0
cmp byte [ebp - 0x39], 0
je 0x42d500
movss xmm1, dword [0x50d1f8]
lea eax, [ebx + 0x1d5a8]
mov dword [ebp - 4], eax
lea ecx, [ebx + 0x1e8a8]
lea eax, [ebx + 0x1c0]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 8], eax
lea esi, [edi + 0x3880]
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x2c], 6
nop word [eax + eax]
mov eax, dword [edi + 0x426c]
xor edx, edx
div dword [ebp - 0x2c]
test edx, edx
jne 0x42d39a
cmp dword [ecx], edx
je 0x42d39a
movss xmm0, dword [esi]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
cmp edx, 0x20
ja 0x42d2c9
cmp ecx, 0x20
ja 0x42d2c9
mov eax, ecx
shl eax, 5
add eax, edx
add eax, ecx
jmp 0x42d2cc
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
cmp byte [edx + eax*2 + 0x3800], 6
jne 0x42d39a
movzx ecx, byte [edx + eax*2 + 0x3801]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [edx + eax*8]
add edx, 0x4adc
je 0x42d39a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, ecx
and eax, 0x800
mov dword [ebp - 0x28], eax
jne 0x42d360
mov eax, ecx
and eax, 0x400
mov dword [ebp - 0x28], eax
jne 0x42d356
mov eax, ecx
and eax, 0x200
mov dword [ebp - 0x28], eax
jne 0x42d34c
and ecx, 0x100
mov dword [ebp - 0x28], ecx
jne 0x42d342
movss xmm0, dword [0x50d568]
jmp 0x42d368
movss xmm0, dword [0x50d59c]
jmp 0x42d368
movss xmm0, dword [0x50d5bc]
jmp 0x42d368
movss xmm0, dword [0x50d5d4]
jmp 0x42d368
movss xmm0, dword [0x50d5ec]
comiss xmm0, dword [esi + 0x54]
jbe 0x42d39a
push 1
lea eax, [ebx + 0x1d4ec]
push eax
lea eax, [ebx + 0x194]
push eax
lea eax, [edx + 0x24]
mov edx, 4
push eax
lea ecx, [edx - 2]
call fcn.00445a90
movss xmm1, dword [0x50d1f8]
add esp, 0x10
movss xmm0, dword [esi]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, xmm1
cvttss2si eax, xmm0
cmp edx, 0x20
ja 0x42d464
cmp eax, 0x20
ja 0x42d464
mov ecx, eax
shl ecx, 5
add ecx, edx
add ecx, eax
lea eax, [ecx - 0x23]
cmp eax, 0x43f
ja 0x42d3e3
lea eax, [ecx + ecx*4]
or dword [ebx + eax*4 + 0x495c], 1
lea eax, [ecx - 0x22]
cmp eax, 0x43f
ja 0x42d3f8
lea eax, [ecx + ecx*4]
or dword [ebx + eax*4 + 0x4970], 1
lea eax, [ecx - 0x21]
cmp eax, 0x43f
ja 0x42d40d
lea eax, [ecx + ecx*4]
or dword [ebx + eax*4 + 0x4984], 1
lea eax, [ecx - 2]
cmp eax, 0x43f
ja 0x42d422
lea eax, [ecx + ecx*4]
or dword [ebx + eax*4 + 0x4bf0], 1
lea eax, [ecx - 1]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], ecx
mov edx, ecx
mov dword [ebp - 0x44], ecx
cmp eax, 0x43f
ja 0x42d442
lea eax, [ecx + ecx*4]
or dword [ebx + eax*4 + 0x4c04], 1
cmp ecx, 0x43f
ja 0x42d455
lea eax, [ecx + ecx*4]
or dword [ebx + eax*4 + 0x4c18], 1
lea eax, [ecx + 0x1f]
cmp eax, 0x43f
ja 0x42d47c
mov eax, dword [ebp - 0x44]
jmp 0x42d471
or edx, 0xffffffff
mov ecx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x54], edx
mov eax, edx
lea eax, [eax + eax*4]
or dword [ebx + eax*4 + 0x4e84], 1
mov eax, dword [ebp - 0x5c]
add eax, 0x20
cmp eax, 0x43f
ja 0x42d497
mov eax, dword [ebp - 0x54]
lea eax, [eax + eax*4]
or dword [ebx + eax*4 + 0x4e98], 1
lea eax, [ecx + 0x21]
cmp eax, 0x43f
ja 0x42d4ac
lea eax, [edx + edx*4]
or dword [ebx + eax*4 + 0x4eac], 1
push dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
push ebx
push dword [ebp - 0x10]
push esi
push edi
call fcn.0042c3d0
mov ecx, dword [ebp - 4]
add esp, 0x14
mov edx, edi
push dword [ebp - 8]
push dword [ebp - 0x10]
push esi
call fcn.0042c540
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
add dword [ebp - 8], 0xf6c
add ecx, 4
add dword [ebp - 4], 0x40
add esi, 0x70
sub dword [ebp - 0xc], 1
movss xmm1, dword [0x50d1f8]
mov dword [ebp - 0x4c], ecx
jne 0x42d280
mov esi, dword [ebp - 0x34]
mov edx, esi
mov ecx, dword [ebp - 0x40]
push ebx
push dword [ebp - 0x10]
push edi
call fcn.004531b0
lea eax, [ebx + 0x1d4ec]
add esp, 0xc
cmp dword [eax], 0
je 0x42d52d
push eax
mov edx, edi
mov ecx, esi
call fcn.00445f00
add esp, 4
mov esi, dword [ebx + 0x1d4e0]
movss xmm6, dword [0x50d1c8]
test esi, esi
je 0x42d654
mov eax, dword [0x5770e0]
mov ecx, dword [ebx + 0x1d4e8]
mov eax, dword [eax + 0x10]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x50e260]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*8]
cvtpd2ps xmm4, xmm0
mulss xmm4, xmm6
cmp ecx, eax
jae 0x42d654
movss xmm5, dword [0x50d388]
mov edi, ecx
lea edx, [edi + 0x14]
comiss xmm4, dword [edx + 8]
jbe 0x42d5b9
lea eax, [esi + esi*4]
movups xmm0, xmmword [edi + eax*8 - 0x28]
movups xmmword [edx - 0x14], xmm0
movups xmm0, xmmword [edi + eax*8 - 0x18]
movups xmmword [edx - 4], xmm0
movq xmm0, qword [edi + eax*8 - 8]
movq qword [edx + 0xc], xmm0
dec dword [ebx + 0x1d4e0]
jmp 0x42d63a
mov eax, dword [edx + 4]
test byte [eax + 0x1c], 1
je 0x42d5d0
movss xmm0, dword [edx - 4]
subss xmm0, xmm5
movss dword [edx - 4], xmm0
movss xmm1, dword [edx - 8]
movss xmm2, dword [edx - 4]
movaps xmm0, xmm1
movss xmm3, dword [edx]
mulss xmm0, xmm6
subss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm6
subss xmm2, xmm0
movss dword [edx - 8], xmm1
movaps xmm0, xmm3
mulss xmm1, xmm6
mulss xmm0, xmm6
addss xmm1, dword [edx - 0x14]
movss dword [edx - 4], xmm2
subss xmm3, xmm0
mulss xmm2, xmm6
movss dword [edx - 0x14], xmm1
addss xmm2, dword [edx - 0x10]
movss dword [edx], xmm3
mulss xmm3, xmm6
movss dword [edx - 0x10], xmm2
addss xmm3, dword [edx - 0xc]
movss dword [edx - 0xc], xmm3
add edx, 0x28
mov esi, dword [ebx + 0x1d4e0]
lea eax, [esi + esi*4]
lea ecx, [edi + eax*8]
lea eax, [edx - 0x14]
cmp eax, ecx
jb 0x42d588
mov edi, dword [ebp - 0x14]
cmp dword [ebx + 0x1d4d4], 0
lea ecx, [ebx + 0x1d4d4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x30], xmm0
je 0x42d67f
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x48]
call fcn.004457e0
add esp, 4
mov eax, dword [ebp - 0x48]
movss xmm0, dword [0x50d558]
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x44]
jae 0x42d79a
nop word [eax + eax]
mov eax, dword [ebx + 0x194]
mov ecx, eax
mov esi, dword [ebx + 0x19c]
mov edx, dword [ebx + 0x198]
shl ecx, 0xb
xor ecx, eax
mov eax, dword [ebx + 0x1a0]
mov edi, eax
mov dword [ebx + 0x19c], eax
shr edi, 0xb
xor edi, ecx
shr edi, 8
xor edi, eax
xor edi, ecx
mov ecx, edx
mov dword [ebx + 0x1a0], edi
mov eax, dword [ebx + 0x19c]
mov dword [ebx + 0x198], eax
mov eax, dword [ebx + 0x1a0]
mov dword [ebx + 0x194], esi
mov esi, eax
shr esi, 0xb
shl ecx, 0xb
xor ecx, edx
mov dword [ebx + 0x19c], eax
xor esi, ecx
shr esi, 8
xor esi, eax
mov eax, 0xaaaaaaab
mul edi
xor esi, ecx
shr edx, 1
mov dword [ebx + 0x1a0], esi
lea eax, [edx + edx*2]
sub edi, eax
mov eax, dword [ebp - 0x10]
push dword [eax + edi*4 + 0x250]
mov eax, 0xd1b71759
mov edi, dword [ebp - 0x14]
mul esi
push ebx
shr edx, 0xd
imul eax, edx, 0x2710
mov edx, edi
push ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp], 0x42400000
push dword [ebp - 4]
sub esi, eax
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x50e260]
cvtpd2ps xmm2, xmm0
mulss xmm2, dword [0x50d190]
addss xmm2, dword [0x50d2cc]
call fcn.00430a80
mov eax, dword [ebp - 4]
add esp, 0x10
add eax, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x44]
jb 0x42d6a0
movss xmm0, dword [0x50d558]
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
jae 0x42d816
mov eax, dword [ebx + 0x194]
movaps xmm3, xmm0
mov edx, eax
shl edx, 0xb
xor edx, eax
mov eax, dword [ebx + 0x198]
mov dword [ebx + 0x194], eax
mov eax, dword [ebx + 0x19c]
mov dword [ebx + 0x198], eax
mov eax, dword [ebx + 0x1a0]
mov ecx, eax
shr ecx, 0xb
xor ecx, edx
mov dword [ebx + 0x19c], eax
shr ecx, 8
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, edx
mov edx, edi
mov dword [ebx + 0x1a0], ecx
and ecx, 3
push dword [eax + ecx*4 + 0x240]
mov ecx, dword [ebp - 0x40]
push ebx
push esi
call fcn.00430960
movss xmm0, dword [0x50d558]
add esi, 0xc
add esp, 0xc
cmp esi, dword [ebp - 0x2c]
jb 0x42d7a2
mov eax, dword [ebp - 0x48]
mov esi, dword [0x5895f0]
mov ecx, dword [0x5895f4]
test eax, eax
je 0x42d843
sub eax, esi
sar eax, 2
cdq
and edx, 0x7ffff
add eax, edx
sar eax, 0x13
btc ecx, eax
mov dword [0x5895f4], ecx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42d864
sub eax, esi
sar eax, 2
cdq
and edx, 0x7ffff
add eax, edx
sar eax, 0x13
btc ecx, eax
mov dword [0x5895f4], ecx
cmp dword [edi + 0x427c], 0
movss xmm2, dword [0x50d20c]
mov dword [ebp - 0x14], 0
jbe 0x42dc12
fld qword [0x50d420]
lea esi, [ebx + 0x3f90]
fstp qword [ebp - 0x60]
fld qword [0x50d410]
lea eax, [edi + 0x3e50]
fstp qword [ebp - 0x28]
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], 0xb
mov dword [ebp - 0x4c], 3
nop dword [eax]
nop word [eax + eax]
movss xmm2, dword [eax - 0x10]
movss xmm0, dword [ebp - 0x38]
subss xmm0, dword [esi - 0x10]
subss xmm2, dword [esi - 0x14]
movss xmm1, dword [eax - 0xc]
subss xmm1, dword [esi - 0xc]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.00457490
mov ecx, dword [ebp - 4]
movaps xmm4, xmm0
movss xmm2, dword [esi + 4]
movzx eax, word [ecx + 4]
test eax, eax
je 0x42d910
subss xmm2, xmm4
jmp 0x42d914
addss xmm2, xmm4
movaps xmm0, xmm2
movss dword [esi + 4], xmm0
movss xmm0, dword [ecx - 0xc]
movss xmm1, dword [ecx - 0x10]
movss xmm3, dword [ebp - 0x38]
movss dword [ebp - 0x70], xmm0
movss xmm0, dword [0x50d20c]
comiss xmm0, xmm4
mov eax, dword [ebp - 0x70]
unpcklps xmm1, xmm3
movq qword [esi - 0x14], xmm1
mov dword [esi - 0xc], eax
jbe 0x42da35
mov eax, dword [edi + 0x426c]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x50e260]
mov eax, dword [ebp - 0x14]
cvtpd2ps xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [0x50d1c8]
cvtsi2sd xmm0, eax
shr eax, 0x1f
mulss xmm1, dword [0x50d464]
addsd xmm0, qword [eax*8 + 0x50e260]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm2
addss xmm1, xmm0
comiss xmm3, xmm1
jbe 0x42d9b9
movss xmm0, dword [0x50d514]
nop dword [eax + eax]
addss xmm1, xmm0
comiss xmm3, xmm1
ja 0x42d9b0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fld qword [ebp - 0x60]
call fcn.004ee140
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
cvtpd2ps xmm0, xmm0
call fcn.004ee070
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 8]
lea ecx, [esi + 0xb]
movd xmm0, esi
mov dword [eax - 0x20], ecx
lea eax, [esi + 1]
mov ecx, 0x14
div ecx
mov eax, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
add edx, 0xb
shr esi, 0x1f
mov dword [eax - 0x1c], edx
movsd xmm1, qword [ebp - 0x30]
addsd xmm0, qword [esi*8 + 0x50e260]
cvtpd2ps xmm1, xmm1
mov esi, eax
lea ecx, [esi - 0x20]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [esi - 0x18], xmm1
jmp 0x42db97
mulss xmm2, dword [0x50d1e0]
movss xmm0, dword [0x50d4d8]
mulss xmm2, xmm0
comiss xmm3, xmm2
jbe 0x42da59
nop
addss xmm2, xmm0
comiss xmm3, xmm2
ja 0x42da50
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fld qword [ebp - 0x28]
call fcn.004ee140
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
cvtpd2ps xmm0, xmm0
call fcn.004ee070
mov dword [ebp - 0x2c], eax
lea ecx, [esi - 0x20]
mov dword [ecx], eax
xor edx, edx
inc eax
movsd xmm1, qword [ebp - 0x58]
div dword [ebp - 0x44]
cvtpd2ps xmm1, xmm1
mov dword [esi - 0x1c], edx
mov edx, dword [ebp - 0x2c]
mov eax, edx
shr eax, 0x1f
mov dword [ebp - 0xc], ecx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x50e260]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [esi - 0x18], xmm1
cmp dword [esi + 0xc], edx
je 0x42db97
mov eax, edx
xor edx, edx
div dword [ebp - 0x4c]
test edx, edx
jne 0x42db97
mov eax, dword [ebp - 4]
movss xmm3, dword [ebp - 0x38]
push ecx
mov dword [ebp - 0x68], edx
movss xmm0, dword [eax - 0xc]
movss xmm2, dword [eax - 0x10]
mov eax, dword [ebp - 0x34]
movss dword [ebp - 0x6c], xmm2
movss dword [ebp - 0x64], xmm0
movss dword [esp], xmm0
lea edx, [eax + 0x4ad4]
lea ecx, [eax + 0x4684]
call fcn.004c27f0
mov eax, dword [ebx + 0x194]
add esp, 4
mov edx, eax
shl edx, 0xb
xor edx, eax
mov eax, dword [ebx + 0x198]
mov dword [ebx + 0x194], eax
mov eax, dword [ebx + 0x19c]
mov dword [ebx + 0x198], eax
mov eax, dword [ebx + 0x1a0]
mov ecx, eax
shr ecx, 0xb
xor ecx, edx
mov dword [ebx + 0x19c], eax
shr ecx, 8
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, edx
mov dword [ebx + 0x1a0], ecx
and ecx, 3
comiss xmm0, dword [ebp - 0x38]
jbe 0x42db72
mov eax, dword [eax + ecx*4 + 0x2b8]
jmp 0x42db79
mov eax, dword [eax + ecx*4 + 0x2a8]
movss xmm3, dword [0x50d558]
mov edx, edi
mov ecx, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00430960
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ecx]
movss xmm6, dword [0x50d238]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
movss xmm0, dword [eax - 8]
subss xmm0, dword [esi - 8]
movss xmm4, dword [eax - 4]
movss xmm5, dword [eax]
add eax, 0x18
mov dword [ebp - 4], eax
mulss xmm0, xmm6
addss xmm0, dword [esi - 8]
movss dword [esi - 8], xmm0
subss xmm4, dword [esi - 4]
mulss xmm4, xmm6
addss xmm4, dword [esi - 4]
movss dword [esi - 4], xmm4
subss xmm5, dword [esi]
mulss xmm5, xmm6
addss xmm5, dword [esi]
movss dword [esi], xmm5
add esi, 0x30
mov dword [ebp - 8], esi
cmp ecx, dword [edi + 0x427c]
jb 0x42d8c0
movss xmm2, dword [0x50d20c]
mov eax, dword [edi + 0x4270]
mov esi, edi
mov dword [ebp - 4], esi
lea eax, [eax + eax*8]
lea eax, [edi + eax*8]
cmp edi, eax
jae 0x42deb9
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [ecx + edi + 0x44], 0
jl 0x42de91
mov eax, 0x38e38e39
imul ecx
mov eax, 0xaaaaaaab
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mul ecx
mov eax, ecx
shr edx, 1
sub eax, edx
and eax, 1
lea edx, [eax + eax*4]
lea eax, [ecx + ecx*4]
mov esi, dword [edx*4 + 0x4fd978]
mov dword [ebp - 0x14], eax
mov eax, dword [edx*4 + 0x4fd974]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x426c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x44], esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x50e260]
mov eax, dword [edx*4 + 0x4fd970]
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
mulss xmm1, dword [0x50d1c8]
shr ecx, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ecx*8 + 0x50e260]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
movss xmm2, dword [ebp - 0x38]
addss xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulss xmm1, dword [eax]
mov eax, esi
shr eax, 0x1f
comiss xmm2, xmm1
addsd xmm0, qword [eax*8 + 0x50e260]
cvtpd2ps xmm3, xmm0
jbe 0x42dcfd
movaps xmm0, xmm3
addss xmm1, xmm0
comiss xmm2, xmm1
ja 0x42dcf1
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd qword [ebp - 0x28], xmm0
xorps xmm0, xmm0
fld qword [ebp - 0x28]
cvtss2sd xmm0, xmm3
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call fcn.004ee140
fstp qword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x50]
cvtpd2ps xmm0, xmm0
call fcn.004ee070
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 0x14]
add ecx, esi
xor edx, edx
movsd xmm1, qword [ebp - 0x50]
cvtpd2ps xmm1, xmm1
mov dword [ebx + eax*4 + 0x4570], ecx
lea eax, [esi + 1]
mov ecx, dword [ebp - 0x14]
div dword [ebp - 0x44]
movd xmm0, esi
add edx, dword [ebp - 0xc]
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
mov dword [ebx + ecx*4 + 0x4574], edx
addsd xmm0, qword [esi*8 + 0x50e260]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [ebx + ecx*4 + 0x4578], xmm1
mov eax, dword [ebx + ecx*4 + 0x4570]
cmp dword [ebx + ecx*4 + 0x457c], eax
je 0x42de7d
mov edx, dword [ebp - 0x2c]
cmp dword [edx*4 + 0x4fd97c], eax
je 0x42ddb2
cmp dword [edx*4 + 0x4fd980], eax
jne 0x42de7d
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x34]
movss xmm0, dword [eax + edi + 8]
movss xmm3, dword [eax + edi + 4]
movss xmm2, dword [esi]
lea edx, [ecx + 0x4ad4]
movss dword [esp], xmm0
add ecx, 0x4684
call fcn.004c27f0
mov eax, dword [ebx + 0x194]
add esp, 4
mov edx, eax
shl edx, 0xb
xor edx, eax
mov eax, dword [ebx + 0x198]
mov dword [ebx + 0x194], eax
mov eax, dword [ebx + 0x19c]
mov dword [ebx + 0x198], eax
mov eax, dword [ebx + 0x1a0]
mov ecx, eax
shr ecx, 0xb
xor ecx, edx
mov dword [ebx + 0x19c], eax
shr ecx, 8
xor ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, edx
mov dword [ebx + 0x1a0], ecx
and ecx, 7
comiss xmm0, dword [ebp - 0x38]
jbe 0x42de3f
mov eax, dword [eax + ecx*4 + 0x1e8]
jmp 0x42de46
mov eax, dword [eax + ecx*4 + 0x1c8]
movss xmm3, dword [0x50d558]
mov edx, edi
mov ecx, dword [ebp - 0x40]
push eax
push ebx
push esi
call fcn.00430960
movss xmm2, dword [0x50d330]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov edx, esi
push ebx
push dword [ebp - 0x10]
push edi
call fcn.00431e30
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x42de80
mov esi, dword [ebp - 4]
mov eax, dword [ebx + ecx*4 + 0x4570]
mov dword [ebx + ecx*4 + 0x457c], eax
mov ecx, dword [ebp - 8]
mov eax, dword [edi + 0x4270]
add esi, 0x48
movss xmm2, dword [0x50d20c]
add ecx, 0x48
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
lea eax, [eax + eax*8]
lea eax, [edi + eax*8]
cmp esi, eax
jb 0x42dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret