Function at 0x509680
Capabilities:
Access peb ldr_data
Check os version

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
push 0xffffffffffffffff
push 0x66f64d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x348
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
mov eax, dword [ebx + 0x14]
lea edi, [ebp - 0x130]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2c4], eax
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x358], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x348], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x338], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebp - 0x328], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [ebp - 0x318], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [ebp - 0x308], xmm0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x260], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ebp - 0x250], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [ebp - 0x240], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebp - 0x230], xmm0
movups xmm0, xmmword [ecx + 0x40]
movups xmmword [ebp - 0x220], xmm0
movq xmm0, qword [ecx + 0x50]
mov ecx, 0x35
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x280]
mov edi, dword [ebp - 0x2c0]
push edi
movq qword [ebp - 0x210], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x527570]
mov dword [ebp - 0x2d0], eax
call fcn.005229b0
movss xmm0, dword [0x67b0b4]
movss xmm2, dword [0x67ed54]
movss dword [ebp - 0x2f4], xmm0
test al, al
jne 0x5097ca
test edi, edi
js 0x5097ca
movss dword [ebp - 0x27c], xmm0
mov dword [ebp - 0x6c], 0x42800000
jmp 0x50981c
movd xmm1, dword [0x78290c]
mov dword [ebp - 0x6c], 0x42800000
cvtdq2ps xmm1, xmm1
divss xmm1, xmm2
movss dword [ebp - 0x27c], xmm1
cmp edi, 0xfffffffe
jne 0x509806
movd xmm0, dword [0x7828fc]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
movss dword [ebp - 0x27c], xmm0
jmp 0x50985a
movss xmm0, dword [ebx + 0x18]
movss dword [ebx + 0x18], xmm0
movss dword [ebp - 0x294], xmm1
test edi, edi
js 0x50985a
mov eax, dword [esi + 4]
imul ecx, edi, 0x1208
cmp byte [ecx + eax + 0x52ba98], 0
mov ecx, esi
je 0x509844
call fcn.005d2840
mov ecx, dword [0x780c78]
movss xmm0, dword [eax + ecx*4 + 0x48]
jmp 0x509855
call fcn.005d2840
mov ecx, dword [0x780c78]
movss xmm0, dword [eax + ecx*4 + 0x28]
movss dword [ebx + 0x18], xmm0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x786af0]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x77269c]
mov dword [ebp - 0x2cc], edi
cmp eax, dword [edi + 0xc]
jg 0x50b7e0
mov eax, dword [0x7726a4]
cmp eax, dword [edi + 0xc]
jg 0x50b835
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x527064]
test eax, eax
je 0x5098da
test byte [eax + 4], 4
jne 0x5098da
mov ecx, esi
call fcn.005d2840
mov ecx, dword [0x780c78]
movss xmm0, dword [eax + ecx*4 + 0x30]
mov ecx, esi
movss dword [0x772698], xmm0
call fcn.005d2840
mov ecx, dword [0x780c78]
movss xmm0, dword [eax + ecx*4 + 0x48]
movss dword [0x7726a0], xmm0
mov ecx, esi
mov byte [ebp - 0x2a9], 0
call fcn.005d2840
mov ecx, dword [ebp - 0x280]
mov edi, eax
mov esi, dword [0x780c78]
call fcn.005d2840
mov ecx, dword [0x780c78]
mov esi, dword [edi + esi*4 + 0x18]
mov edi, dword [ebp - 0x280]
movss xmm0, dword [eax + ecx*4 + 0x30]
mov ecx, edi
movss dword [ebp - 0x2d4], xmm0
call fcn.005d2840
sub esi, dword [ebp - 0x20c]
mov ecx, edi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x680724]
addss xmm0, dword [ebp - 0x2d4]
movss dword [ebp - 0x2b8], xmm0
call fcn.005d2840
mov ecx, dword [0x780c78]
mov esi, dword [eax + ecx*4 + 0x18]
mov ecx, edi
call fcn.005d2840
sub esi, dword [ebp - 0x20c]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [ebp - 0x2c0]
divss xmm0, dword [0x680724]
addss xmm0, dword [0x772698]
movss dword [ebp - 0x28c], xmm0
test esi, esi
js 0x509aaf
mov ecx, dword [edi + 4]
imul eax, esi, 0x1208
cmp byte [eax + ecx + 0x52ba99], 0
je 0x509aaf
cmp dword [0x78042c], 0
je 0x509aaf
cmp dword [0x780434], 0
je 0x509aaf
cmp byte [ecx + 0x527580], 0
jne 0x509aaf
mov eax, dword [ecx + 0x5267f8]
cmp dword [eax + 8], 4
je 0x509aaf
cmp dword [0x780438], 0
je 0x509aaf
cmp dword [0x780440], 0
je 0x509aaf
mov ecx, edi
mov byte [ebp - 0x2a9], 1
call fcn.005d2840
mov dword [ebp - 0x2e4], eax
mov ecx, edi
mov eax, dword [0x780c78]
mov dword [ebp - 0x2d4], eax
call fcn.005d2840
mov ecx, dword [ebp - 0x280]
mov edi, eax
mov esi, dword [0x780c78]
call fcn.005d2840
mov ecx, dword [edi + esi*4 + 0x40]
sub ecx, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x2d4]
dec ecx
mov edi, dword [ebp - 0x280]
movd xmm0, ecx
mov ecx, dword [ebp - 0x2e4]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [ecx + eax*4 + 0x48]
mov ecx, edi
divss xmm0, dword [0x680724]
movss dword [ebp - 0x2b8], xmm0
call fcn.005d2840
mov ecx, dword [0x780c78]
mov esi, dword [eax + ecx*4 + 0x40]
mov ecx, edi
call fcn.005d2840
sub esi, dword [ebp - 0x20c]
dec esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [ebp - 0x2c0]
addss xmm0, dword [0x7726a0]
divss xmm0, dword [0x680724]
movss dword [ebp - 0x28c], xmm0
mov ecx, edi
call fcn.005d2840
movss xmm0, dword [ebp - 0x2b8]
mulss xmm0, dword [0x680724]
movss dword [ebp - 0x2e4], xmm0
cmp dword [ebp - 0x2d0], esi
jne 0x509b3e
mov eax, dword [edi + 4]
cmp byte [eax + 0x527580], 0
je 0x509aeb
cmp dword [eax + 0x527584], 0xffffffff
je 0x509b3e
mov ecx, edi
call fcn.005d2840
cmp dword [eax + 8], 4
je 0x509b3e
mov esi, dword [edi + 4]
mov eax, dword [0x780c78]
movss xmm1, dword [esi + 0x1adc]
movaps xmm0, xmm1
mulss xmm1, dword [esi + eax*8 + 0x510f9c]
mulss xmm0, dword [esi + eax*8 + 0x510f98]
lea eax, [ebp - 0x2a0]
push eax
movss dword [ebp - 0x29c], xmm1
movss dword [ebp - 0x2a0], xmm0
call fcn.0050b8f0
add esp, 4
jmp 0x509b62
movss xmm0, dword [ebx + 0x18]
lea eax, [ebp - 0x260]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push esi
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00506b30
mov esi, dword [edi + 4]
fstp dword [ebp - 0x288]
movss xmm0, dword [ebp - 0x288]
cvtps2pd xmm0, xmm0
call fcn.006434f0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x2d4], xmm0
movss xmm0, dword [ebp - 0x288]
cvtps2pd xmm0, xmm0
call fcn.00643330
mov eax, dword [ebp - 0x2c0]
movss xmm4, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x2a8], xmm0
movss xmm0, dword [ebp - 0x2d4]
movss dword [ebp - 0x2a4], xmm0
cmp eax, 0x3f
jbe 0x509c22
movd xmm2, dword [ebp - 0x25c]
movd xmm3, dword [ebp - 0x258]
movd xmm0, dword [ebp - 0x354]
movd xmm1, dword [ebp - 0x350]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
subss xmm2, xmm0
subss xmm3, xmm1
mulss xmm2, xmm4
mulss xmm3, xmm4
addss xmm2, xmm0
addss xmm3, xmm1
movss dword [ebp - 0x2a0], xmm2
mov edx, dword [ebp - 0x2a0]
movss dword [ebp - 0x29c], xmm3
mov eax, dword [ebp - 0x29c]
jmp 0x509c46
movss xmm0, dword [ebp - 0x27c]
imul eax, eax, 0x1208
movss dword [ebp - 0x27c], xmm0
mov edx, dword [eax + esi + 0x52ba90]
mov eax, dword [eax + esi + 0x52ba94]
movd xmm5, dword [ebp - 0x250]
lea ecx, [esi + 0x510d00]
movd xmm2, dword [ebp - 0x348]
movd xmm3, dword [ebp - 0x254]
movss xmm0, dword [0x67b0a8]
movd xmm1, dword [ebp - 0x34c]
cvtdq2ps xmm5, xmm5
push ecx
mov dword [esp], 0x41200000
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2a0], edx
cvtdq2ps xmm3, xmm3
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2e0], edx
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
mulss xmm5, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
mulss xmm1, xmm0
subss xmm5, xmm2
subss xmm3, xmm1
mulss xmm5, xmm4
mulss xmm3, xmm4
addss xmm5, xmm2
addss xmm3, xmm1
movaps xmm0, xmm5
movss dword [ebp - 0x2bc], xmm5
mulss xmm0, dword [0x67ed54]
movaps xmm1, xmm3
movss dword [ebp - 0x278], xmm3
mulss xmm1, dword [0x67ed54]
movss dword [ebp - 0x264], xmm0
push dword [ebp - 0x264]
movss dword [ebp - 0x268], xmm1
push dword [ebp - 0x268]
push eax
push edx
call fcn.0049bad0
mov eax, dword [ebp - 0x244]
mov ecx, edi
mov esi, dword [ebp - 0x254]
shr eax, 1
not al
mov byte [ebp - 0x60], 0
and al, 1
mov byte [ebp - 0x68], al
lea eax, [esi + 1]
mov dword [ebp - 0x2b4], eax
call fcn.005d2850
mov ecx, dword [ebp - 0x258]
xorps xmm0, xmm0
movd xmm1, dword [ebp - 0x25c]
add ecx, 0x10
movss xmm3, dword [0x67b0b0]
mov edx, eax
cvtdq2ps xmm1, xmm1
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
movss dword [ebp - 0x2d4], xmm0
comiss xmm2, xmm0
jbe 0x509d75
addss xmm2, xmm3
jmp 0x509d79
subss xmm2, xmm3
comiss xmm1, xmm0
cvttss2si eax, xmm2
jbe 0x509d88
addss xmm1, xmm3
jmp 0x509d8c
subss xmm1, xmm3
push eax
cvttss2si eax, xmm1
mov ecx, edx
push eax
call fcn.00628db0
mov ecx, dword [ebp - 0x248]
add esi, 0x1387
mov dword [ebp - 0x2f0], eax
cmp ecx, 0xffffffff
jne 0x509ef5
movss xmm0, dword [ebp - 0x278]
xorps xmm2, xmm2
comiss xmm0, xmm2
ja 0x509f0e
mov byte [ebp - 0x281], 0
imul ecx, dword [ebp - 0x2c0], 0x1208
mov eax, dword [edi + 4]
mov dword [ebp - 0x2d8], ecx
cmp byte [ecx + eax + 0x52b82c], 0
jne 0x509dfd
cmp byte [ecx + eax + 0x52b82d], 0
mov byte [ebp - 0x269], 0
je 0x509e04
mov byte [ebp - 0x269], 1
movss xmm0, dword [ebp - 0x2a0]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x268], xmm0
fld qword [ebp - 0x268]
fld qword [0x6b5fc8]
call fcn.006431f0
fstp qword [ebp - 0x298]
movsd xmm0, qword [ebp - 0x298]
cvtpd2ps xmm0, xmm0
fld qword [ebp - 0x268]
divss xmm0, dword [0x67ed54]
fld qword [0x6b5fd0]
movss dword [ebp - 0x2b0], xmm0
call fcn.006431f0
fstp qword [ebp - 0x268]
movsd xmm1, qword [ebp - 0x268]
xorps xmm0, xmm0
cvtpd2ps xmm1, xmm1
movss xmm2, dword [ebp - 0x2b0]
comiss xmm0, xmm2
divss xmm1, dword [0x680738]
movss dword [ebp - 0x270], xmm1
jbe 0x509e9d
addss xmm2, dword [0x67b0b4]
movss dword [ebp - 0x2b0], xmm2
comiss xmm0, xmm1
jbe 0x509eb2
addss xmm1, dword [0x67b0b4]
movss dword [ebp - 0x270], xmm1
mov eax, dword [0x735428]
push ecx
mov dword [esp], 0
lea ecx, [ebp - 0x58]
push dword [eax + 0x2c]
call fcn.00472150
cmp dword [ebp - 0x2f0], 0
jne 0x509f1a
mov eax, dword [0x735428]
sub esp, 8
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], 0x3f800000
add eax, 0x48
mov dword [esp], 0
jmp 0x509fe8
cmp ecx, 1
jne 0x509dc8
xorps xmm2, xmm2
comiss xmm2, dword [ebp - 0x278]
jbe 0x509dc8
mov byte [ebp - 0x281], 1
jmp 0x509dcf
cmp dword [ebp - 0x2b4], 2
ja 0x509f85
cmp byte [ebp - 0x269], 0
mov eax, dword [0x735428]
mov eax, dword [eax + 0x2c]
je 0x509f6e
xorps xmm0, xmm0
comiss xmm0, dword [ebp - 0x2a8]
jbe 0x509f45
add eax, 0x6c
jmp 0x509f4a
add eax, 0x90
sub esp, 8
lea ecx, [ebp - 0x58]
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
push eax
call fcn.00471d10
mov byte [ebp - 0x60], 1
jmp 0x509ff1
sub esp, 8
add eax, 0x24
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
jmp 0x509fe8
cmp byte [ebp - 0x281], 0
jne 0x509ff1
mov eax, dword [0x735428]
mov eax, dword [eax + 0x2c]
cmp esi, 0x270e
jbe 0x509fcb
cmp dword [ebp - 0x254], 0
jge 0x509fb9
movss xmm0, dword [ebp - 0x270]
add eax, 0xd8
sub esp, 8
jmp 0x509fdb
movss xmm0, dword [ebp - 0x270]
add eax, 0xfc
sub esp, 8
jmp 0x509fdb
movss xmm0, dword [ebp - 0x2b0]
sub esp, 8
add eax, 0xb4
mov dword [esp + 4], 0x3f800000
movss dword [esp], xmm0
push eax
lea ecx, [ebp - 0x58]
call fcn.00471d10
mov esi, dword [ebp - 0x214]
test esi, esi
jne 0x50a05b
movss xmm0, dword [ebp - 0x28c]
lea eax, [ebp - 0x2b0]
mulss xmm0, dword [0x67ed48]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x294], 0x3f800000
xorps xmm2, xmm2
mov dword [ebp - 0x270], esi
comiss xmm2, xmm0
movss dword [ebp - 0x2b0], xmm0
cmovbe ecx, eax
lea eax, [ebp - 0x294]
comiss xmm0, dword [0x67b0b4]
cmovbe eax, ecx
movss xmm0, dword [eax]
mov eax, dword [0x735428]
mov eax, dword [eax + 0x2c]
add eax, 0x120
jmp 0x50a0be
cmp esi, 5
jne 0x50a0d7
movss xmm0, dword [ebp - 0x28c]
lea eax, [ebp - 0x270]
addss xmm0, xmm0
mov dword [ebp - 0x2b0], 0x3f800000
xorps xmm2, xmm2
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x294]
comiss xmm2, xmm0
movss dword [ebp - 0x270], xmm0
cmovbe ecx, eax
lea eax, [ebp - 0x2b0]
comiss xmm0, dword [0x67b0b4]
cmovbe eax, ecx
movss xmm0, dword [eax]
mov eax, dword [0x735428]
mov eax, dword [eax + 0x2c]
add eax, 0x144
sub esp, 8
lea ecx, [ebp - 0x58]
mov dword [esp + 4], 0x3f800000
movss dword [esp], xmm0
push eax
call fcn.00471d10
cmp dword [ebp - 0x2f0], 0
je 0x50a2fa
cmp byte [ebp - 0x281], 0
je 0x50a2fa
movss xmm0, dword [ebp - 0x2bc]
mulss xmm0, dword [0x680724]
movss xmm2, dword [ebp - 0x278]
mulss xmm2, dword [0x680724]
movss dword [ebp - 0x264], xmm0
mov ecx, dword [ebp - 0x264]
movss dword [ebp - 0x268], xmm2
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x264], ecx
movss xmm1, dword [ebp - 0x264]
mulss xmm1, xmm0
mov dword [ebp - 0x268], eax
movss xmm0, dword [ebp - 0x268]
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x50a167
sqrtsd xmm0, xmm0
jmp 0x50a16c
call fcn.00649080
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x6b0a2c]
jbe 0x50a2fa
cmp dword [0x7862c0], 0
je 0x50a194
mov esi, dword [0x7862c8]
mov edx, dword [0x7862cc]
jmp 0x50a19b
call fcn.00625aa0
mov esi, eax
mov dword [ebp - 0x270], edx
call fcn.00625a90
push 0
push 0xa
push edx
push eax
call fcn.00632e60
sub esi, dword [0x7726a8]
mov ecx, eax
mov eax, dword [ebp - 0x270]
sbb eax, dword [0x7726ac]
cmp eax, edx
jl 0x50a224
jg 0x50a1cf
cmp esi, ecx
jbe 0x50a224
cmp dword [0x7817e4], 0
je 0x50a1fe
push dword [ebp - 0x2dc]
mov ecx, dword [edi + 4]
push dword [ebp - 0x2e0]
add ecx, 0x5110e0
push ecx
mov dword [esp], 0x3e800000
push 0x12
push 2
call fcn.00513df0
cmp dword [0x7862c0], 0
je 0x50a214
mov eax, dword [0x7862c8]
mov edx, dword [0x7862cc]
jmp 0x50a219
call fcn.00625aa0
mov dword [0x7726a8], eax
mov dword [0x7726ac], edx
movss xmm0, dword [ebp - 0x278]
movss xmm1, dword [ebp - 0x2bc]
mov esi, dword [edi + 4]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x50a255
sqrtsd xmm0, xmm0
jmp 0x50a25a
call fcn.00649080
mov ecx, dword [ebp - 0x248]
xorps xmm1, xmm1
imul eax, ecx, 0xffffff9c
cvtsd2ss xmm1, xmm0
push ecx
mov dword [ebp - 0x264], 0xc2480000
movd xmm0, eax
lea eax, [ecx*4]
cvtdq2ps xmm0, xmm0
sub eax, ecx
lea ecx, [esi + 0x5110a8]
neg eax
add eax, eax
mulss xmm1, xmm0
movss xmm0, dword [ebp - 0x29c]
addss xmm0, dword [0x67f058]
movss dword [ebp - 0x268], xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0x294], xmm0
addss xmm1, dword [ebp - 0x2a0]
movss dword [ebp - 0x298], xmm1
movss xmm1, dword [ebp - 0x27c]
movss dword [esp], xmm1
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push dword [ebp - 0x294]
push dword [ebp - 0x298]
call fcn.0049a530
mov esi, dword [ebp - 0x214]
test byte [ebp - 0x64], 2
jne 0x50b018
mov ecx, edi
call fcn.005d28e0
sub esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov edx, dword [ecx + 0x1c4]
mov ecx, eax
mov dword [esp], 0x3f800000
call edx
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, dword [0x684454]
mov ecx, dword [eax]
push ecx
addss xmm0, xmm0
mov edx, dword [ecx + 0x14c]
mov ecx, eax
addss xmm0, dword [ebp - 0x288]
movss dword [esp], xmm0
call edx
cmp dword [ebp - 0x2c0], 0
jge 0x50a3a9
mov ecx, edi
call fcn.005d28e0
sub esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], 0x3f000000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov edx, dword [ecx + 0x1c4]
mov ecx, eax
mov dword [esp], 0x3f800000
call edx
test esi, esi
mov dword [ebp - 0x2bc], 5
lea eax, [ebp - 0x214]
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x294]
cmovns ecx, eax
cmp esi, 5
lea eax, [ebp - 0x2bc]
cmovle eax, ecx
mov ecx, edi
mov eax, dword [eax]
mov dword [ebp - 0x288], eax
call fcn.005d28e0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
mov ecx, dword [edi + 4]
mov edi, dword [ebp - 0x288]
push dword [ecx + edi*4 + 0x575bd8]
mov ecx, eax
call edx
xor ecx, ecx
xorps xmm0, xmm0
comiss xmm0, dword [ebp - 0x2a8]
mov eax, edi
mov edi, dword [ebp - 0x280]
seta cl
mov dword [ebp - 0x294], ecx
lea eax, [ecx + eax*2]
mov ecx, edi
mov dword [ebp - 0x2b0], eax
call fcn.005d28e0
movss xmm0, dword [ebp - 0x27c]
sub esp, 0x10
mov ecx, dword [eax]
movss dword [esp + 0xc], xmm0
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov edx, dword [ecx + 0x1c4]
mov ecx, eax
mov dword [esp], 0x3f800000
call edx
mov eax, dword [ebp - 0x2a8]
mov dh, byte [ebp - 0x269]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x264], eax
test dh, dh
je 0x50a49e
cmp dword [ebp - 0x2f0], 0
je 0x50a49e
cmp dword [ebp - 0x2b4], 2
ja 0x50a49e
mov dl, 1
jmp 0x50a4a0
xor dl, dl
mov byte [ebp - 0x269], dl
test esi, esi
jne 0x50a663
mov eax, dword [0x735428]
xorps xmm0, xmm0
movss xmm1, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x288]
addss xmm1, dword [ebp - 0x29c]
mov eax, dword [eax + 0x90]
movss xmm2, dword [ebp - 0x24]
addss xmm2, dword [ebp - 0x2a0]
shl ecx, 6
comiss xmm0, dword [ebp - 0x2a8]
addss xmm1, dword [ecx + eax + 0x30]
movss dword [ebp - 0x2bc], xmm2
movss dword [ebp - 0x274], xmm2
movss dword [ebp - 0x2b4], xmm1
movss dword [ebp - 0x270], xmm1
jbe 0x50a524
subss xmm2, dword [ecx + eax + 0x2c]
movss dword [ebp - 0x2bc], xmm2
movss dword [ebp - 0x274], xmm2
test dl, dl
je 0x50a540
addss xmm1, dword [0x67f054]
movss dword [ebp - 0x2b4], xmm1
movss dword [ebp - 0x270], xmm1
test dh, dh
je 0x50a5a7
imul ecx, dword [0x780c78], 0xbc
push 0
add ecx, 0x52b0b0
add ecx, dword [edi + 4]
call fcn.00629ac0
fstp dword [ebp - 0x294]
movss xmm0, dword [ebp - 0x294]
comiss xmm0, dword [ebp - 0x28c]
ja 0x50a5a4
mov ecx, edi
call fcn.005d28e0
xorps xmm0, xmm0
comiss xmm0, dword [ebp - 0x2a8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14c]
jbe 0x50a59a
movss xmm0, dword [0x67ed54]
jmp 0x50a60a
movss xmm0, dword [0x6b0a2c]
jmp 0x50a60a
xorps xmm0, xmm0
comiss xmm0, dword [ebp - 0x2a8]
mov ecx, edi
jbe 0x50a5e4
call fcn.005d28e0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, dword [0x684454]
movss xmm1, dword [0x6addf0]
mov ecx, dword [eax]
addss xmm0, xmm0
push ecx
mov edx, dword [ecx + 0x14c]
subss xmm1, xmm0
movss dword [esp], xmm1
jmp 0x50a610
call fcn.005d28e0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, dword [0x684454]
mov ecx, dword [eax]
addss xmm0, xmm0
mov edx, dword [ecx + 0x14c]
subss xmm0, dword [0x684450]
push ecx
movss dword [esp], xmm0
mov ecx, eax
call edx
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x2b4]
sub esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2bc]
mov edx, dword [ecx + 0x194]
mov ecx, eax
movss dword [esp], xmm0
push dword [ebp - 0x2b0]
push dword [edi + 8]
call edx
jmp 0x50af0f
cmp esi, 5
jne 0x50ab91
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x270], eax
mov eax, dword [0x735428]
movss xmm0, dword [ebp - 0x270]
shl ecx, 6
mov dword [ebp - 0x278], ecx
mov eax, dword [eax + 0x90]
addss xmm0, dword [eax + ecx + 0x30]
movss dword [ebp - 0x28c], xmm0
movss dword [ebp - 0x270], xmm0
test dl, dl
je 0x50a6d8
addss xmm0, dword [0x67f054]
movss dword [ebp - 0x28c], xmm0
movss dword [ebp - 0x270], xmm0
xorps xmm0, xmm0
mov ecx, edi
comiss xmm0, dword [ebp - 0x2a8]
jbe 0x50a75d
call fcn.005d28e0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, dword [0x684454]
mov ecx, dword [eax]
movss xmm1, dword [0x6addf0]
addss xmm0, xmm0
push ecx
mov edx, dword [ecx + 0x14c]
mov ecx, eax
subss xmm1, xmm0
movss dword [esp], xmm1
call edx
mov eax, dword [0x735428]
xorps xmm2, xmm2
movss xmm0, dword [ebp - 0x274]
mov ecx, dword [ebp - 0x278]
mov eax, dword [eax + 0x90]
subss xmm0, dword [eax + ecx + 0x2c]
movaps xmm1, xmm0
movss dword [ebp - 0x274], xmm0
movss xmm0, dword [ebp - 0x28c]
addss xmm1, dword [0x680718]
addss xmm0, xmm2
jmp 0x50a7ac
call fcn.005d28e0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, dword [0x684454]
mov ecx, dword [eax]
push ecx
addss xmm0, xmm0
mov edx, dword [ecx + 0x14c]
mov ecx, eax
subss xmm0, dword [0x684450]
movss dword [esp], xmm0
call edx
movss xmm1, dword [ebp - 0x274]
xorps xmm2, xmm2
movss xmm0, dword [ebp - 0x28c]
subss xmm1, dword [0x680718]
subss xmm0, xmm2
mov ecx, dword [edi + 4]
add ecx, 0x5110a8
movss dword [ebp - 0x2e4], xmm0
movss xmm0, dword [ebp - 0x27c]
push ecx
movss dword [esp], xmm0
mov dword [ebp - 0x294], 0x41400000
push dword [ebp - 0x294]
mov dword [ebp - 0x298], 0x42000000
push dword [ebp - 0x298]
movss dword [ebp - 0x2e8], xmm1
push dword [ebp - 0x2e4]
push dword [ebp - 0x2e8]
call fcn.0049a340
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x28c]
sub esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x274]
mov edx, dword [ecx + 0x194]
mov ecx, eax
movss dword [esp], xmm0
push dword [ebp - 0x2b0]
push dword [edi + 8]
call edx
movss xmm0, dword [0x6aff00]
comiss xmm0, dword [ebp - 0x2b8]
jb 0x50af0f
mov eax, dword [0x735428]
mov ecx, dword [ebp - 0x278]
mov eax, dword [eax + 0x90]
cmp dword [eax + ecx + 0x10], 0
je 0x50af0f
call fcn.00643190
mov ecx, dword [0x735428]
mov esi, dword [ebp - 0x278]
cdq
mov ecx, dword [ecx + 0x90]
idiv dword [ecx + esi + 0x10]
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [0x7726b4]
mov esi, edx
mov dword [ebp - 0x2b8], esi
cmp eax, dword [ecx + 0xc]
jg 0x50b88a
mov ecx, edi
call fcn.005d2840
cmp dword [eax + 8], 4
jne 0x50a8dc
mov ecx, edi
call fcn.005d2890
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
cmp byte [eax], 0
jmp 0x50a8ed
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x527064]
test eax, eax
je 0x50a8fd
test byte [eax + 4], 4
je 0x50a8fd
mov esi, dword [0x7726b0]
mov dword [ebp - 0x2b8], esi
jmp 0x50a903
mov dword [0x7726b0], esi
mov eax, dword [0x735428]
mov ecx, dword [ebp - 0x278]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + ecx + 0x14]
cmp dword [eax + esi*4], 0
je 0x50af09
cmp byte [ebp - 0x2a9], 0
je 0x50a94d
mov eax, dword [ebp - 0x2ec]
movd xmm2, dword [eax + 4]
movd xmm3, dword [eax + 8]
mov eax, dword [ebp - 0x2c4]
movd xmm0, dword [eax + 4]
movd xmm1, dword [eax + 8]
jmp 0x50a97e
imul ecx, dword [ebp - 0x2c0], 0xec
mov eax, dword [edi + 4]
movd xmm2, dword [ecx + eax + 0x5275f4]
movd xmm3, dword [ecx + eax + 0x5275f8]
movd xmm0, dword [ecx + eax + 0x52759c]
movd xmm1, dword [ecx + eax + 0x5275a0]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
subss xmm2, xmm0
xorps xmm0, xmm0
cvtdq2ps xmm3, xmm3
movss dword [ebp - 0x2c8], xmm2
mov eax, dword [ebp - 0x2c8]
subss xmm3, xmm1
movss xmm1, dword [0x67ed80]
movss xmm2, dword [0x6845f4]
movss dword [ebp - 0x2b4], xmm0
mov dword [ebp - 0x268], eax
movss xmm0, dword [ebp - 0x268]
andps xmm0, xmm1
movss dword [ebp - 0x2c4], xmm3
comiss xmm0, xmm2
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x264], ecx
ja 0x50aa23
movss xmm0, dword [ebp - 0x264]
andps xmm0, xmm1
comiss xmm0, xmm2
ja 0x50aa23
mov dword [ebp - 0x2c8], 0x3f800000
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2c4], 0
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], ecx
jmp 0x50aa6c
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.004b8ef0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 0x268], ecx
call fcn.0050b8f0
fstp dword [ebp - 0x2c4]
movss xmm0, dword [ebp - 0x2c4]
add esp, 0xc
movss dword [ebp - 0x2b4], xmm0
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x2b4]
mov ecx, dword [eax]
push ecx
movss dword [esp], xmm0
mov edx, dword [ecx + 0x14c]
mov ecx, eax
call edx
mov eax, dword [ebp - 0x2e0]
lea edi, [esi + esi]
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x2dc]
movss xmm2, dword [ebp - 0x274]
mov dword [ebp - 0x270], eax
mov eax, dword [0x735428]
mov eax, dword [eax + 0x90]
movss xmm1, dword [eax + ecx + 0x34]
mov ecx, dword [ebp - 0x280]
movaps xmm0, xmm1
mulss xmm0, dword [ebp - 0x268]
mulss xmm1, dword [ebp - 0x264]
subss xmm2, xmm0
movss xmm0, dword [ebp - 0x270]
subss xmm0, xmm1
movss dword [ebp - 0x274], xmm2
movss dword [ebp - 0x270], xmm0
call fcn.005d28e0
mov edx, dword [ebp - 0x288]
mov ecx, dword [eax]
mov esi, dword [ecx + 0xa8]
mov ecx, dword [ebp - 0x2b8]
lea edx, [ecx + edx*2]
mov ecx, dword [ebp - 0x280]
add edx, dword [ebp - 0x288]
mov ecx, dword [ecx + 4]
push dword [ecx + edx*4 + 0x575c74]
mov ecx, eax
call esi
mov ecx, dword [ebp - 0x280]
call fcn.005d28e0
movss xmm0, dword [ebp - 0x270]
sub esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x274]
mov edx, dword [ecx + 0x194]
mov ecx, dword [ebp - 0x288]
movss dword [esp], xmm0
push edi
mov edi, dword [ebp - 0x280]
push dword [edi + ecx*4 + 0xc]
mov ecx, eax
call edx
jmp 0x50af09
movss xmm0, dword [ebp - 0x2e4]
xorps xmm3, xmm3
divss xmm0, dword [0x67ed48]
movss xmm1, dword [0x67b0b4]
comiss xmm1, xmm0
jbe 0x50abc8
mulss xmm0, dword [0x684454]
cvtps2pd xmm0, xmm0
call fcn.006434f0
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
mov eax, dword [0x735428]
mov ecx, dword [ebp - 0x288]
movss xmm1, dword [ebp - 0x264]
movss xmm0, dword [ebp - 0x268]
mov eax, dword [eax + 0x90]
shl ecx, 6
cmp byte [ebp - 0x269], 0
mov dword [ebp - 0x2b8], ecx
movss xmm2, dword [eax + ecx + 0x2c]
movaps xmm4, xmm2
mulss xmm2, xmm1
mulss xmm1, xmm3
addss xmm2, dword [ebp - 0x29c]
mulss xmm4, xmm0
mulss xmm1, dword [0x6806f4]
addss xmm4, dword [ebp - 0x2a0]
mulss xmm0, xmm3
subss xmm2, xmm1
mulss xmm0, dword [0x6806f4]
addss xmm2, dword [eax + ecx + 0x30]
subss xmm4, xmm0
movss dword [ebp - 0x28c], xmm2
movss dword [ebp - 0x2bc], xmm4
movss dword [ebp - 0x274], xmm4
movss dword [ebp - 0x270], xmm2
je 0x50ac7a
addss xmm2, dword [0x67f054]
movss dword [ebp - 0x28c], xmm2
movss dword [ebp - 0x270], xmm2
cmp esi, 1
jne 0x50aca0
cmp dword [0x782e04], 0
je 0x50aca0
subss xmm2, dword [0x6806ec]
movss dword [ebp - 0x28c], xmm2
movss dword [ebp - 0x270], xmm2
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x28c]
sub esp, 0x10
mov ecx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2bc]
mov edx, dword [ecx + 0x194]
mov ecx, eax
movss dword [esp], xmm0
push dword [ebp - 0x2b0]
push dword [edi + 8]
call edx
cmp esi, 1
je 0x50acf8
cmp esi, 2
jne 0x50af0f
mov eax, dword [0x735428]
mov ecx, dword [eax + 0x90]
mov eax, dword [ebp - 0x2b8]
cmp dword [ecx + eax + 0x10], 0
je 0x50af0f
movss xmm3, dword [ecx + eax + 0x3c]
xorps xmm1, xmm1
movss xmm2, dword [ebp - 0x2e4]
movaps xmm0, xmm3
addss xmm0, dword [0x67f054]
movss dword [ebp - 0x2b4], xmm1
comiss xmm0, xmm2
jbe 0x50ad65
divss xmm2, xmm3
movss xmm0, dword [0x67b0c0]
maxss xmm2, xmm1
minss xmm2, dword [0x67b0b4]
addss xmm2, xmm2
subss xmm0, xmm2
movss dword [ebp - 0x2b4], xmm0
call fcn.00643190
mov ecx, dword [0x735428]
mov esi, dword [ebp - 0x2b8]
cdq
mov ecx, dword [ecx + 0x90]
idiv dword [ecx + esi + 0x10]
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [0x7726bc]
mov esi, edx
cmp eax, dword [ecx + 0xc]
jg 0x50b8bc
mov ecx, edi
call fcn.005d2840
cmp dword [eax + 8], 4
jne 0x50adbc
mov ecx, edi
call fcn.005d2890
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
cmp byte [eax], 0
jmp 0x50adcd
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x527064]
test eax, eax
je 0x50add7
test byte [eax + 4], 4
je 0x50add7
mov esi, dword [0x7726b8]
jmp 0x50addd
mov dword [0x7726b8], esi
movss xmm1, dword [ebp - 0x2b4]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x50af09
mov eax, dword [0x735428]
mov ecx, dword [ebp - 0x2b8]
mov edx, dword [eax + 0x90]
mov eax, dword [edx + ecx + 0x14]
cmp dword [eax + esi*4], 0
je 0x50af09
comiss xmm0, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x294]
lea eax, [eax + esi*2]
mov dword [ebp - 0x294], eax
movss xmm3, dword [edx + ecx + 0x38]
movss xmm4, dword [0x67b120]
xorps xmm3, xmm4
jbe 0x50ae3c
xorps xmm3, xmm4
movss xmm1, dword [edx + ecx + 0x34]
mov ecx, edi
movss xmm0, dword [ebp - 0x264]
movaps xmm2, xmm1
mulss xmm2, dword [ebp - 0x268]
xorps xmm0, xmm4
mulss xmm1, dword [ebp - 0x264]
addss xmm2, dword [ebp - 0x2bc]
mulss xmm0, xmm3
addss xmm1, dword [ebp - 0x28c]
mulss xmm3, dword [ebp - 0x268]
addss xmm2, xmm0
addss xmm1, xmm3
movss dword [ebp - 0x2ec], xmm2
movss dword [ebp - 0x2c4], xmm1
call fcn.005d28e0
mov ecx, dword [ebp - 0x288]
lea edx, [esi + ecx*2]
mov esi, dword [eax]
add edx, ecx
mov ecx, dword [edi + 4]
push dword [ecx + edx*4 + 0x575c74]
mov ecx, eax
call dword [esi + 0xa8]
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x2c4]
sub esp, 0x10
mov ecx, dword [ebp - 0x288]
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2ec]
movss dword [esp], xmm0
push dword [ebp - 0x294]
push dword [edi + ecx*4 + 0xc]
mov ecx, eax
call dword [edx + 0x194]
mov esi, dword [ebp - 0x214]
mov ecx, edi
call fcn.005d28e0
sub esp, 0x10
mov ecx, eax
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov ecx, edi
call fcn.005d28e0
push ecx
mov ecx, eax
mov dword [esp], 0
mov edx, dword [eax]
call dword [edx + 0x14c]
sub esi, 1
je 0x50afbc
sub esi, 1
je 0x50afa6
sub esi, 1
jne 0x50b018
mov dword [ebp - 0x268], 0xc0800000
mov dword [ebp - 0x264], 0x40e00000
movss xmm0, dword [ebp - 0x27c]
push ecx
movss dword [esp], xmm0
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push ecx
mov dword [esp], 0xbfc90fdb
jmp 0x50aff2
mov dword [ebp - 0x268], 0xc0a00000
mov dword [ebp - 0x264], 0x40800000
jmp 0x50af82
movss xmm0, dword [ebp - 0x27c]
push ecx
movss dword [esp], xmm0
mov dword [ebp - 0x264], 0x40800000
push dword [ebp - 0x264]
mov dword [ebp - 0x268], 0xc1700000
push dword [ebp - 0x268]
push ecx
mov dword [esp], 0xc016cbe4
push dword [ebp - 0x2a4]
lea eax, [ebp - 0x130]
mov ecx, edi
push dword [ebp - 0x2a8]
push dword [ebp - 0x270]
push dword [ebp - 0x274]
push eax
call fcn.00507f40
mov esi, dword [ebp - 0x2c0]
cmp dword [ebp - 0x2d0], esi
jne 0x50b151
cmp dword [0x78201c], 0
mov eax, dword [0x782dc4]
je 0x50b03c
test eax, eax
jns 0x50b045
cmp eax, 1
jne 0x50b151
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2d0], eax
test esi, esi
js 0x50b0f1
mov ecx, edi
call fcn.005d2840
mov ecx, dword [0x780c78]
movss xmm4, dword [eax + ecx*4 + 0x28]
mov eax, dword [edi + 4]
imul ecx, esi, 0xec
movd xmm3, dword [ecx + eax + 0x5275f8]
movd xmm1, dword [ecx + eax + 0x5275a0]
movd xmm2, dword [ecx + eax + 0x5275f4]
movd xmm0, dword [ecx + eax + 0x52759c]
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm0, xmm0
subss xmm3, xmm1
subss xmm2, xmm0
mulss xmm3, xmm4
mulss xmm2, xmm4
addss xmm3, xmm1
addss xmm2, xmm0
movss dword [ebp - 0x264], xmm3
mov eax, dword [ebp - 0x264]
movss dword [ebp - 0x268], xmm2
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x2cc], eax
mov ecx, 0x35
lea esi, [ebp - 0x130]
lea edi, [ebp - 0x208]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x280]
mov ecx, edi
call fcn.005d2970
push 0
push ecx
mov dword [esp], 0x3f000000
lea ecx, [ebp - 0x208]
push dword [ebp - 0x2d0]
push dword [ebp - 0x2cc]
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push dword [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.0053ba60
mov esi, dword [ebp - 0x2c0]
mov ecx, edi
call fcn.005d2970
movss xmm0, dword [ebp - 0x27c]
push 0
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x130]
push dword [ebp - 0x2dc]
push dword [ebp - 0x2e0]
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push dword [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.0053ba60
lea eax, [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0053aaa0
movss xmm1, dword [ebp - 0x2f8]
add esp, 0xc
test byte [ebp - 0x64], 1
movaps xmm0, xmm1
mulss xmm0, dword [ebp - 0x54]
mulss xmm1, dword [ebp - 0x50]
addss xmm0, dword [ebp - 0x2a0]
addss xmm1, dword [ebp - 0x29c]
movss dword [ebp - 0x2a8], xmm0
movss dword [ebp - 0x2a4], xmm1
je 0x50b238
movss xmm0, dword [ebp - 0x27c]
push ecx
mov ecx, dword [edi + 4]
movss dword [esp], xmm0
add ecx, 0x5110a8
mov dword [ebp - 0x264], 0x42000000
push dword [ebp - 0x264]
mov dword [ebp - 0x268], 0x42000000
push dword [ebp - 0x268]
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
call fcn.004999b0
test byte [ebp - 0x224], 4
mov ecx, dword [ebp - 0x2d8]
je 0x50b355
mov eax, dword [edi + 4]
cmp byte [eax + ecx + 0x52b82c], 0
jne 0x50b355
mov ecx, edi
call fcn.005d28e0
mov ecx, dword [edi + 4]
mov edx, dword [eax]
push dword [ecx + 0x575d94]
mov ecx, eax
call dword [edx + 0xa8]
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x27c]
sub esp, 0x10
mov ecx, eax
mov edx, dword [eax]
movss dword [esp + 0xc], xmm0
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x29c]
sub esp, 0x10
subss xmm0, dword [0x680720]
mov ecx, eax
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2a0]
addss xmm0, dword [0x6b0a20]
movss dword [esp], xmm0
push 0x14
push dword [edi + 8]
call dword [edx + 0x194]
mov ecx, edi
call fcn.005d28e0
sub esp, 0x10
mov ecx, eax
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov ecx, edi
call fcn.005d28e0
push ecx
mov ecx, eax
mov dword [esp], 0
mov edx, dword [eax]
call dword [edx + 0x14c]
mov ecx, dword [ebp - 0x2d8]
test esi, esi
js 0x50b7c0
cmp dword [0x780450], 0
je 0x50b3a3
mov eax, dword [edi + 4]
cmp byte [eax + ecx + 0x52b82c], 0
je 0x50b3a3
mov ecx, edi
call fcn.005d2840
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
call eax
test al, al
je 0x50b3bd
xor ecx, ecx
mov eax, 4
cmp dword [0x780c78], ecx
cmove ecx, eax
mov eax, dword [edi + 4]
cmp esi, dword [ecx + eax + 0x574a3c]
jne 0x50b3bd
cmp dword [0x780138], 0
je 0x50b4b0
test byte [ebp - 0x224], 2
je 0x50b4b0
mov ecx, edi
call fcn.005d28e0
mov ecx, dword [edi + 4]
mov edx, dword [eax]
push dword [ecx + 0x575db4]
mov ecx, eax
call dword [edx + 0xa8]
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x27c]
sub esp, 0x10
mov ecx, eax
mov edx, dword [eax]
movss dword [esp + 0xc], xmm0
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov ecx, edi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x29c]
sub esp, 0x10
subss xmm0, dword [0x680720]
mov ecx, eax
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2a0]
addss xmm0, dword [0x6b0a20]
movss dword [esp], xmm0
push 0x1c
push dword [edi + 8]
call dword [edx + 0x194]
mov ecx, edi
call fcn.005d28e0
sub esp, 0x10
mov ecx, eax
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov ecx, edi
call fcn.005d28e0
push ecx
mov ecx, eax
mov dword [esp], 0
mov edx, dword [eax]
call dword [edx + 0x14c]
cmp dword [0x7804d0], 0
je 0x50b7c0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x2d8]
cmp byte [eax + ecx + 0x52b81e], 0
jne 0x50b7c0
cmp byte [eax + ecx + 0x52b827], 0
jne 0x50b7c0
cmp dword [eax + ecx + 0x52b27c], 0xffffffff
je 0x50b7c0
mov ecx, edi
call fcn.005d2840
mov ecx, dword [ebp - 0x280]
mov edi, eax
mov esi, dword [0x780c78]
call fcn.005d2840
mov ecx, dword [ebp - 0x280]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + esi*4 + 0x20]
mov esi, dword [ebp - 0x2d8]
sub ecx, dword [edx + esi + 0x52b27c]
movd xmm1, ecx
mov ecx, dword [0x780c78]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax + ecx*4 + 0x38]
subss xmm0, dword [edx + esi + 0x52b278]
mov esi, dword [ebp - 0x280]
mov ecx, esi
addss xmm1, xmm0
movss dword [ebp - 0x278], xmm1
call fcn.005d2840
movss xmm1, dword [ebp - 0x278]
xorps xmm0, xmm0
comiss xmm1, xmm0
movss xmm2, dword [0x67ed54]
subss xmm2, xmm1
movss dword [ebp - 0x2d0], xmm2
jb 0x50b7c0
comiss xmm2, xmm0
jbe 0x50b7c0
movss xmm0, dword [0x67b0b4]
mov ecx, esi
movss dword [ebp - 0x2cc], xmm0
call fcn.005d2840
movss xmm0, dword [0x6806f4]
comiss xmm0, dword [ebp - 0x2d0]
jbe 0x50b5d1
mov ecx, esi
call fcn.005d2840
movss xmm1, dword [ebp - 0x2d0]
divss xmm1, dword [0x6806f4]
movss dword [ebp - 0x2cc], xmm1
mov ecx, esi
call fcn.005d2840
movss xmm0, dword [0x67ed48]
comiss xmm0, dword [ebp - 0x278]
jbe 0x50b608
mov ecx, esi
call fcn.005d2840
movss xmm0, dword [ebp - 0x278]
divss xmm0, dword [0x67ed48]
movss dword [ebp - 0x2f4], xmm0
mov ecx, esi
call fcn.005d2840
movss xmm0, dword [0x6806f4]
comiss xmm0, dword [ebp - 0x278]
jbe 0x50b63f
mov ecx, esi
call fcn.005d2840
movss xmm0, dword [ebp - 0x278]
divss xmm0, dword [0x6806f4]
movss dword [ebp - 0x2d4], xmm0
mov ecx, esi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x2d4]
mov esi, eax
mulss xmm0, dword [0x67ed48]
mov edi, dword [esi]
cvtps2pd xmm0, xmm0
call fcn.006434f0
cvtsd2ss xmm0, xmm0
push ecx
mov ecx, esi
mulss xmm0, dword [0x6b5fc0]
movss dword [esp], xmm0
call dword [edi + 0x14c]
mov esi, dword [ebp - 0x280]
mov ecx, esi
call fcn.005d28e0
movss xmm0, dword [ebp - 0x2cc]
sub esp, 0x10
mulss xmm0, dword [ebp - 0x27c]
mov ecx, eax
mov edx, dword [eax]
movss dword [esp + 0xc], xmm0
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov eax, dword [esi + 4]
mov ecx, esi
mov edi, dword [ebp - 0x2d8]
mov edi, dword [eax + edi + 0x52b274]
add edi, 0x10
call fcn.005d28e0
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x2d8]
mov esi, dword [eax]
mov ecx, dword [edx + ecx + 0x52b274]
push dword [edx + ecx*4 + 0x575d84]
mov ecx, eax
call dword [esi + 0xa8]
mov esi, dword [ebp - 0x280]
mov ecx, esi
call fcn.005d28e0
movss xmm1, dword [ebp - 0x2f4]
sub esp, 0x10
movaps xmm0, xmm1
mov ecx, eax
mulss xmm0, dword [0x680728]
mov edx, dword [eax]
mulss xmm1, dword [0x680718]
mulss xmm0, dword [0x6b5fbc]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp - 0x29c]
subss xmm0, dword [0x6b0ef0]
mov dword [esp + 8], 0x3f800000
subss xmm0, xmm1
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x2a0]
movss dword [esp], xmm0
push edi
push dword [esi + 8]
call dword [edx + 0x194]
mov ecx, esi
call fcn.005d28e0
sub esp, 0x10
mov ecx, eax
mov edx, dword [eax]
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call dword [edx + 0x1c4]
mov ecx, esi
call fcn.005d28e0
push ecx
mov ecx, eax
mov dword [esp], 0
mov edx, dword [eax]
call dword [edx + 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
push 0x77269c
call fcn.00632c66
add esp, 4
cmp dword [0x77269c], 0xffffffff
jne 0x509880
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.005d2840
mov ecx, dword [0x780c78]
push 0x77269c
mov dword [ebp - 4], 0xffffffff
movss xmm0, dword [eax + ecx*4 + 0x30]
movss dword [0x772698], xmm0
call fcn.00632c15
add esp, 4
jmp 0x509880
push 0x7726a4
call fcn.00632c66
add esp, 4
cmp dword [0x7726a4], 0xffffffff
jne 0x509891
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.005d2840
mov ecx, dword [0x780c78]
push 0x7726a4
mov dword [ebp - 4], 0xffffffff
movss xmm0, dword [eax + ecx*4 + 0x48]
movss dword [0x7726a0], xmm0
call fcn.00632c15
add esp, 4
jmp 0x509891
push 0x7726b4
call fcn.00632c66
add esp, 4
cmp dword [0x7726b4], 0xffffffff
jne 0x50a8ba
push 0x7726b4
mov dword [0x7726b0], esi
call fcn.00632c15
add esp, 4
jmp 0x50a8ba
push 0x7726bc
call fcn.00632c66
add esp, 4
cmp dword [0x7726bc], 0xffffffff
jne 0x50ad9a
push 0x7726bc
mov dword [0x7726b8], esi
call fcn.00632c15
add esp, 4
jmp 0x50ad9a