Function at 0x51fbd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f4778
mov eax, dword fs:[0]
push eax
sub esp, 0x268
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor esi, esi
mov eax, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x280], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov ebx, dword [ebp + 8]
fld qword [ebx + 0x18]
sub esp, 0x18
fld qword [ebx + 0x10]
mov byte [esp + 0x298], al
fld qword [ebp + 0x30]
lea eax, [esp + 0x44]
fstp qword [esp + 0x10]
lea ecx, [esp + 0x84]
fxch st(1)
fstp qword [esp + 8]
fstp qword [esp]
push eax
push ecx
mov ecx, ebx
call fcn.004f2c30
mov edi, eax
cmp edi, 2
jge 0x51fc96
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.MSVCR90.dll_free]
cmp eax, esi
je 0x51fc7a
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
cmp eax, esi
je 0x521abd
push eax
call edi
jmp 0x521aba
mov eax, dword [ebx + 0xc]
cmp eax, 0xc
je 0x51fdaa
cmp edi, 4
jge 0x51fdaa
movsd xmm0, qword [ebx + 0x10]
movsd qword [esp + 0x8c], xmm0
movsd xmm0, qword [ebx + 0x18]
push 8
lea ecx, [esp + 0x70]
movsd qword [esp + 0xa8], xmm0
mov edi, 6
call fcn.00412980
push 8
lea ecx, [esp + 0x30]
call fcn.00412880
movsd xmm0, qword [esp + 0xa4]
subsd xmm0, qword [esp + 0x8c]
divsd xmm0, qword [0x5fcab8]
movsd qword [esp + 0x144], xmm0
xor esi, esi
jmp 0x51fd10
mov eax, dword [esp + 0x6c]
fld qword [esp + 0x8c]
lea edx, [esi + esi*2]
lea ecx, [eax + edx*8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
sub esp, 8
lea eax, [esp + 0xb4]
fstp qword [esp]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
call edx
movq xmm0, qword [eax]
mov ecx, dword [esp + 0x18]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov eax, dword [esp + 0x2c]
movsd xmm0, qword [esp + 0x8c]
movsd qword [eax + esi*8], xmm0
cmp esi, 4
jne 0x51fd87
movsd xmm0, qword [esp + 0xa4]
movsd qword [esp + 0x8c], xmm0
jmp 0x51fd9d
movsd xmm1, qword [esp + 0x144]
addsd xmm1, xmm0
movsd qword [esp + 0x8c], xmm1
inc esi
cmp esi, edi
jl 0x51fd10
xor esi, esi
jmp 0x51fdb3
cmp edi, 2
jle 0x51fe6b
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push 3
push edi
call fcn.0057c4c0
movsd xmm0, qword [ebx + 0x10]
movsd xmm1, qword [ebx + 0x18]
add esp, 0x14
xor eax, eax
cmp edi, 4
subsd xmm1, xmm0
jl 0x51fe46
lea edx, [edi - 3]
mov ecx, dword [esp + 0x2c]
movsd xmm2, qword [ecx + eax*8]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd qword [ecx + eax*8], xmm2
mov ecx, dword [esp + 0x2c]
movsd xmm2, qword [ecx + eax*8 + 8]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd qword [ecx + eax*8 + 8], xmm2
mov ecx, dword [esp + 0x2c]
movapd xmm2, xmm1
mulsd xmm2, qword [ecx + eax*8 + 0x10]
addsd xmm2, xmm0
movsd qword [ecx + eax*8 + 0x10], xmm2
mov ecx, dword [esp + 0x2c]
movsd xmm2, qword [ecx + eax*8 + 0x18]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd qword [ecx + eax*8 + 0x18], xmm2
add eax, 4
cmp eax, edx
jl 0x51fde1
cmp eax, edi
jge 0x51fe6b
lea ebx, [ebx]
mov ecx, dword [esp + 0x2c]
movsd xmm2, qword [ecx + eax*8]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd qword [ecx + eax*8], xmm2
inc eax
cmp eax, edi
jl 0x51fe50
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], esi
lea esi, [edi + 2]
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], 0xa
call fcn.00412980
xor eax, eax
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x284], 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0xa
call fcn.00412980
xor eax, eax
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x284], 3
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0xa
call fcn.00412880
fld qword [ebx + 0x10]
mov al, byte [ebx + 0x38]
mov edx, dword [ebx]
mov edx, dword [edx + 0x6c]
sub esp, 8
mov byte [esp + 0x1f], al
fstp qword [esp]
lea eax, [esp + 0x104]
push eax
mov ecx, ebx
mov byte [esp + 0x28c], 4
mov dword [esp + 0x24], edi
mov byte [esp + 0x2b], 0
call edx
lea ecx, [esp + 0xfc]
call fcn.004a8b50
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
jbe 0x51ff64
mov eax, dword [esp + 0x6c]
movsd xmm0, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x20]
movsd xmm2, qword [eax + 0x28]
subsd xmm0, qword [eax]
subsd xmm1, qword [eax + 8]
subsd xmm2, qword [eax + 0x10]
lea ecx, [esp + 0xfc]
movq qword [esp + 0xfc], xmm0
movq qword [esp + 0x104], xmm1
movq qword [esp + 0x10c], xmm2
call fcn.004a8b50
fstp st(0)
fld qword [ebx + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax + 0x6c]
sub esp, 8
lea ecx, [esp + 0x11c]
fstp qword [esp]
push ecx
mov ecx, ebx
call edx
lea ecx, [esp + 0x114]
call fcn.004a8b50
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
jbe 0x51fff1
mov ecx, dword [esp + 0x6c]
lea eax, [edi + edi*2 - 6]
lea eax, [ecx + eax*8]
lea edx, [edi + edi*2]
movsd xmm0, qword [ecx + edx*8 - 0x18]
movsd xmm1, qword [ecx + edx*8 - 0x10]
movsd xmm2, qword [ecx + edx*8 - 8]
subsd xmm0, qword [eax]
subsd xmm1, qword [eax + 8]
subsd xmm2, qword [eax + 0x10]
lea ecx, [ecx + edx*8 - 0x18]
lea ecx, [esp + 0x114]
movq qword [esp + 0x114], xmm0
movq qword [esp + 0x11c], xmm1
movq qword [esp + 0x124], xmm2
call fcn.004a8b50
fstp st(0)
cmp byte [esp + 0x17], 0
mov esi, dword [ebp + 0xc]
je 0x52014a
cmp byte [ebx + 0x39], 0
jne 0x52003d
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x104]
call fcn.004a8ae0
lea ecx, [esp + 0xac]
call fcn.004a88b0
fld qword [0x5fcaf8]
fcompi st(1)
fstp st(0)
jbe 0x52014a
movsd xmm0, qword [esp + 0x114]
addsd xmm0, qword [esp + 0xfc]
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [esp + 0x11c]
addsd xmm0, qword [esp + 0x104]
movsd qword [esp + 0x4c], xmm0
movsd xmm0, qword [esp + 0x124]
addsd xmm0, qword [esp + 0x10c]
lea ecx, [esp + 0x44]
movsd qword [esp + 0x54], xmm0
call fcn.004a8b50
fstp st(0)
movsd xmm0, qword [esp + 0x44]
movsd xmm1, qword [esp + 0x4c]
movsd xmm2, qword [esp + 0x54]
mov eax, dword [ebp + 0x10]
movq qword [esp + 0x114], xmm0
movq qword [esp + 0x11c], xmm1
movq qword [esp + 0x124], xmm2
movq qword [esp + 0xfc], xmm0
movsd xmm0, qword [eax]
addsd xmm0, qword [esi]
movq qword [esp + 0x104], xmm1
movsd xmm1, qword [esi + 8]
addsd xmm1, qword [eax + 8]
movq qword [esp + 0x10c], xmm2
movsd xmm2, qword [esi + 0x10]
addsd xmm2, qword [eax + 0x10]
lea ecx, [esp + 0x44]
movq qword [esp + 0x44], xmm0
movq qword [esp + 0x4c], xmm1
movq qword [esp + 0x54], xmm2
call fcn.004a8b50
fstp st(0)
mov eax, dword [ebp + 0x10]
movsd xmm0, qword [esp + 0x44]
movsd xmm1, qword [esp + 0x4c]
movsd xmm2, qword [esp + 0x54]
movq qword [eax], xmm0
movq qword [eax + 8], xmm1
movq qword [eax + 0x10], xmm2
movq qword [esi], xmm0
movq qword [esi + 8], xmm1
movq qword [esi + 0x10], xmm2
mov byte [esp + 0x1f], 1
mov edx, dword [ebp + 0x24]
xorps xmm0, xmm0
push edx
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x1f], 0
movsd qword [esp + 0x194], xmm0
movsd qword [esp + 0x18c], xmm0
movsd qword [esp + 0x184], xmm0
call fcn.004a8ae0
lea ecx, [esp + 0x214]
call fcn.004a8b50
fld qword [0x5ff770]
fcompi st(1)
fstp st(0)
jbe 0x5201a4
xor edi, edi
jmp 0x521a51
lea ecx, [esp + 0x214]
push ecx
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0xc8]
push edx
call fcn.004a8ae0
lea ecx, [esp + 0xc4]
call fcn.004a8b50
fstp st(0)
fld qword [ebp + 0x1c]
lea eax, [esp + 0x17c]
push eax
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x1f4]
push edx
call fcn.004a8ee0
movsd xmm0, qword [esp + 0x1e4]
movsd xmm1, qword [esp + 0x1ec]
movapd xmm3, xmm0
mulsd xmm3, qword [esi]
movapd xmm2, xmm1
mulsd xmm2, qword [esi + 8]
addsd xmm3, xmm2
movsd xmm2, qword [esp + 0x1f4]
movapd xmm4, xmm2
mulsd xmm4, qword [esi + 0x10]
addsd xmm3, xmm4
xorps xmm4, xmm4
comisd xmm4, xmm3
movsd xmm3, qword [0x5fc740]
jbe 0x52026d
xorpd xmm0, xmm3
xorpd xmm1, xmm3
xorpd xmm2, xmm3
mov byte [esp + 0x17], 1
movsd qword [esp + 0x1e4], xmm0
movsd qword [esp + 0x1ec], xmm1
movsd qword [esp + 0x1f4], xmm2
movq xmm0, qword [esi]
lea eax, [esp + 0xc4]
movq qword [esp + 0x14c], xmm0
movq xmm0, qword [esi + 8]
push eax
lea ecx, [esp + 0x180]
movq qword [esp + 0x158], xmm0
movq xmm0, qword [esi + 0x10]
push ecx
lea ecx, [esp + 0x154]
movq qword [esp + 0x164], xmm0
call fcn.004a9310
fstp st(0)
lea ecx, [esp + 0x14c]
call fcn.004a8b50
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
jbe 0x520324
movsd xmm0, qword [esp + 0xc4]
mulsd xmm0, qword [esi]
movsd xmm1, qword [esp + 0xcc]
mulsd xmm1, qword [esi + 8]
addsd xmm0, xmm1
movsd xmm1, qword [esp + 0xd4]
mulsd xmm1, qword [esi + 0x10]
addsd xmm0, xmm1
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd xmm0, qword [0x5ff700]
jbe 0x520316
xorpd xmm0, xmmword [0x5fc740]
movsd qword [esp + 0xf4], xmm1
jmp 0x5203e0
fld qword [0x5ff770]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x15c]
call fcn.004a9d00
fst qword [esp + 0xf4]
fld qword [0x5ff700]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x52037b
movsd xmm0, qword [esp + 0xf4]
subsd xmm0, qword [0x616648]
movsd qword [esp + 0xf4], xmm0
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0xcc]
call fcn.004a8ae0
fld qword [0x5ff770]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x158]
push ecx
mov ecx, esi
call fcn.004a9d00
fst qword [esp + 0x8c]
fld qword [0x5ff700]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x5203e9
movsd xmm0, qword [esp + 0x8c]
subsd xmm0, qword [0x616648]
movsd qword [esp + 0x8c], xmm0
mov edx, dword [ebp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x11c]
call fcn.004a8ae0
lea ecx, [esp + 0x22c]
call fcn.004a8b50
fld qword [0x5ff770]
fcompi st(1)
fstp st(0)
jbe 0x520420
xor edi, edi
jmp 0x521a51
lea ecx, [esp + 0x22c]
push ecx
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0xb0]
push edx
call fcn.004a8ae0
movq xmm0, qword [esp + 0xac]
movq qword [esp + 0xc4], xmm0
movq xmm0, qword [esp + 0xb4]
movq qword [esp + 0xcc], xmm0
movq xmm0, qword [esp + 0xbc]
lea ecx, [esp + 0xc4]
movq qword [esp + 0xd4], xmm0
call fcn.004a8b50
fstp st(0)
fld qword [ebp + 0x1c]
lea eax, [esp + 0x17c]
push eax
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x1ac]
push edx
call fcn.004a8ee0
cmp byte [esp + 0x17], 0
je 0x5204f6
movsd xmm0, qword [0x5fc740]
movsd xmm1, qword [esp + 0x19c]
xorpd xmm1, xmm0
movsd qword [esp + 0x19c], xmm1
movsd xmm1, qword [esp + 0x1a4]
xorpd xmm1, xmm0
movsd qword [esp + 0x1a4], xmm1
movsd xmm1, qword [esp + 0x1ac]
xorpd xmm1, xmm0
movsd qword [esp + 0x1ac], xmm1
mov eax, dword [ebp + 0x10]
movq xmm0, qword [eax]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x4c]
movq qword [esp + 0x5c], xmm0
call fcn.004a9310
fstp st(0)
movq xmm0, qword [esp + 0x44]
movq qword [esp + 0x14c], xmm0
movq xmm0, qword [esp + 0x4c]
movq qword [esp + 0x154], xmm0
movq xmm0, qword [esp + 0x54]
lea ecx, [esp + 0x14c]
movq qword [esp + 0x15c], xmm0
call fcn.004a8b50
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
jbe 0x5205cf
mov eax, dword [ebp + 0x10]
movsd xmm0, qword [eax + 8]
mulsd xmm0, qword [esp + 0xcc]
movsd xmm1, qword [eax]
mulsd xmm1, qword [esp + 0xc4]
addsd xmm0, xmm1
movsd xmm1, qword [eax + 0x10]
mulsd xmm1, qword [esp + 0xd4]
addsd xmm0, xmm1
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd xmm0, qword [0x5ff700]
jbe 0x5205c6
xorpd xmm0, xmmword [0x5fc740]
movapd xmm2, xmm1
jmp 0x520698
fld qword [0x5ff770]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x15c]
call fcn.004a9d00
fst qword [esp + 0x94]
fld qword [0x5ff700]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x520626
movsd xmm0, qword [esp + 0x94]
subsd xmm0, qword [0x616648]
movsd qword [esp + 0x94], xmm0
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0xcc]
call fcn.004a8ae0
fld qword [0x5ff770]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x158]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004a9d00
fst qword [esp + 0xa4]
fld qword [0x5ff700]
movsd xmm0, qword [esp + 0xa4]
movsd xmm2, qword [esp + 0x94]
fxch st(1)
xorps xmm1, xmm1
fcompi st(1)
fstp st(0)
jbe 0x520698
subsd xmm0, qword [0x616648]
mov eax, dword [esp + 0x2c]
subsd xmm0, qword [esp + 0x8c]
subsd xmm2, qword [esp + 0xf4]
mov edx, dword [esp + 0x5c]
movsd xmm7, qword [ebp + 0x14]
add edi, edi
add edi, edi
add edi, edi
movsd qword [esp + 0x20c], xmm0
movsd xmm0, qword [eax]
movsd qword [esp + 0x204], xmm2
movsd xmm2, qword [eax + edi - 8]
mov eax, dword [esp + 0x6c]
subsd xmm2, xmm0
movsd qword [esp + 0x194], xmm0
movq xmm0, qword [eax]
movq qword [edx], xmm0
movq xmm0, qword [eax + 8]
mov ecx, dword [esp + 0x5c]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x78], edi
xor edi, edi
cmp dword [ebp + 0x28], edi
movq qword [edx + 0x10], xmm0
movsd xmm6, qword [0x5fc860]
mov eax, dword [esp + 0x6c]
movsd qword [esp + 0x144], xmm2
movsd qword [esp + 0x94], xmm7
jle 0x520864
movsd xmm3, qword [esi + 8]
movsd xmm4, qword [esi]
movsd xmm5, qword [esi + 0x10]
lea esp, [esp]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + edi*4]
movsd xmm0, qword [edx + 0x70]
movsd xmm2, qword [edx + 0x68]
lea ecx, [edx + 0x68]
mulsd xmm0, xmm3
mulsd xmm2, xmm4
addsd xmm0, xmm2
movsd xmm2, qword [ecx + 0x10]
mulsd xmm2, xmm5
addsd xmm0, xmm2
add edx, 0x20
andpd xmm0, xmm6
comisd xmm0, xmmword [0x5ff770]
jbe 0x52085a
movq xmm0, qword [eax]
push esi
movq qword [esp + 0x48], xmm0
movq xmm0, qword [eax + 8]
push ecx
movq qword [esp + 0x54], xmm0
movq xmm0, qword [eax + 0x10]
push edx
lea ecx, [esp + 0x50]
movq qword [esp + 0x60], xmm0
call fcn.004a91c0
fstp st(0)
mov eax, dword [esp + 0x6c]
movsd xmm1, qword [esp + 0x44]
subsd xmm1, qword [eax]
movsd xmm0, qword [esp + 0x4c]
subsd xmm0, qword [eax + 8]
movsd xmm2, qword [esp + 0x54]
movsd xmm3, qword [esi + 8]
movsd xmm4, qword [esi]
subsd xmm2, qword [eax + 0x10]
movsd xmm5, qword [esi + 0x10]
movsd xmm6, qword [0x5fc860]
mulsd xmm1, xmm4
mulsd xmm0, xmm3
addsd xmm0, xmm1
mulsd xmm2, xmm5
addsd xmm0, xmm2
movapd xmm1, xmm0
andpd xmm1, xmm6
comisd xmm1, xmmword [0x5ff758]
xorps xmm1, xmm1
jbe 0x520851
movapd xmm2, xmm0
mulsd xmm2, qword [ebp + 0x14]
comisd xmm2, xmm1
jbe 0x520851
movsd xmm2, qword [esp + 0x94]
comisd xmm2, xmm0
jbe 0x520851
movapd xmm7, xmm0
movsd qword [esp + 0x94], xmm7
jmp 0x52085a
movsd xmm7, qword [esp + 0x94]
inc edi
cmp edi, dword [ebp + 0x28]
jl 0x520750
movsd xmm4, qword [eax + 8]
movsd xmm2, qword [esi + 8]
movsd xmm3, qword [esi + 0x10]
mulsd xmm2, xmm7
addsd xmm4, xmm2
movsd xmm2, qword [eax + 0x10]
movapd xmm0, xmm7
mulsd xmm0, qword [esi]
addsd xmm0, qword [eax]
mov eax, dword [esp + 0x38]
movq qword [eax], xmm0
mov ecx, dword [esp + 0x38]
movq qword [ecx + 8], xmm4
mov edx, dword [esp + 0x38]
mulsd xmm3, xmm7
addsd xmm2, xmm3
movq qword [edx + 0x10], xmm2
mov eax, dword [esp + 0x2c]
fld qword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
fstp qword [ecx]
mov edi, 1
dec eax
cmp eax, edi
mov dword [esp + 0xa0], edi
movsd qword [esp + 0x1c4], xmm1
movsd qword [esp + 0x1bc], xmm1
movsd qword [esp + 0x1b4], xmm1
movsd qword [esp + 0x1dc], xmm1
movsd qword [esp + 0x1d4], xmm1
movsd qword [esp + 0x1cc], xmm1
movsd qword [esp + 0x174], xmm1
movsd qword [esp + 0x16c], xmm1
movsd qword [esp + 0x164], xmm1
movsd qword [esp + 0x13c], xmm1
movsd qword [esp + 0x134], xmm1
movsd qword [esp + 0x12c], xmm1
mov dword [esp + 0x68], edi
jle 0x520e75
mov edi, 0x18
mov esi, edi
jmp 0x520953
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
fld qword [eax + ecx*8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x6c]
sub esp, 8
lea eax, [esp + 0xb4]
fstp qword [esp]
push eax
mov ecx, ebx
call edx
movq xmm0, qword [eax]
movq qword [esp + 0x1b4], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x1bc], xmm0
movq xmm0, qword [eax + 0x10]
lea ecx, [esp + 0x1b4]
movq qword [esp + 0x1c4], xmm0
call fcn.004a8b50
fstp st(0)
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x1bc]
call fcn.004a8ae0
movq xmm0, qword [esp + 0xac]
movq qword [esp + 0x1cc], xmm0
movq xmm0, qword [esp + 0xb4]
movq qword [esp + 0x1d4], xmm0
movq xmm0, qword [esp + 0xbc]
lea ecx, [esp + 0x1cc]
movq qword [esp + 0x1dc], xmm0
call fcn.004a8b50
fld qword [0x5ff770]
fcompi st(1)
fstp st(0)
ja 0x520e46
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
movsd xmm0, qword [edx + eax*8]
subsd xmm0, qword [esp + 0x194]
mulsd xmm0, qword [esp + 0x204]
divsd xmm0, qword [esp + 0x144]
mov ebx, dword [ebp + 0x24]
addsd xmm0, qword [esp + 0xf4]
lea ecx, [esp + 0x1cc]
push ecx
lea edx, [esp + 0xb0]
push edx
mov ecx, ebx
movsd qword [esp + 0x204], xmm0
call fcn.004a8ae0
movq xmm0, qword [esp + 0xac]
movq qword [esp + 0xc4], xmm0
movq xmm0, qword [esp + 0xb4]
movq qword [esp + 0xcc], xmm0
movq xmm0, qword [esp + 0xbc]
lea ecx, [esp + 0xc4]
movq qword [esp + 0xd4], xmm0
call fcn.004a8b50
fstp st(0)
movsd xmm0, qword [esp + 0x1fc]
addsd xmm0, qword [ebp + 0x1c]
lea eax, [esp + 0x17c]
push eax
sub esp, 8
movsd qword [esp], xmm0
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0xbc]
push edx
mov ecx, ebx
call fcn.004a8ee0
cmp byte [esp + 0x17], 0
movq xmm0, qword [eax]
movsd qword [esp + 0x164], xmm0
movq xmm1, qword [eax + 8]
movsd qword [esp + 0x16c], xmm1
movq xmm2, qword [eax + 0x10]
movsd qword [esp + 0x174], xmm2
je 0x520b42
movsd xmm3, qword [0x5fc740]
xorpd xmm0, xmm3
xorpd xmm1, xmm3
xorpd xmm2, xmm3
movsd qword [esp + 0x164], xmm0
movsd qword [esp + 0x16c], xmm1
movsd qword [esp + 0x174], xmm2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
fld qword [eax + ecx*8]
lea edx, [esp + 0x164]
fsub qword [esp + 0x194]
push edx
lea eax, [esp + 0xe0]
push eax
fmul qword [esp + 0x214]
lea ecx, [esp + 0xcc]
fdiv qword [esp + 0x14c]
fadd qword [esp + 0x94]
fstp qword [esp + 0x84]
call fcn.004a8ae0
fld qword [esp + 0x7c]
lea ecx, [esp + 0x17c]
push ecx
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x178]
call fcn.004a8ee0
movq xmm0, qword [eax]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
movsd xmm1, qword [ebp + 0x14]
movq qword [esp + 0x12c], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x134], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x13c], xmm0
movq xmm0, qword [esi + ecx]
lea eax, [esi + ecx]
movq qword [edi + edx], xmm0
movq xmm0, qword [eax + 8]
lea ecx, [edi + edx]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov eax, dword [esp + 0x6c]
movsd xmm4, qword [esp + 0x13c]
movsd xmm5, qword [esp + 0x134]
movsd xmm3, qword [esp + 0x12c]
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
movsd qword [esp + 0xa4], xmm1
jle 0x520d7e
movsd xmm2, qword [0x5fc860]
nop
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + ebx*4]
movsd xmm0, qword [edx + 0x70]
lea ecx, [edx + 0x68]
mulsd xmm0, xmm5
movapd xmm6, xmm3
mulsd xmm6, qword [ecx]
addsd xmm0, xmm6
movsd xmm6, qword [ecx + 0x10]
mulsd xmm6, xmm4
addsd xmm0, xmm6
add edx, 0x20
andpd xmm0, xmm2
comisd xmm0, xmmword [0x5ff770]
jbe 0x520d74
movq xmm0, qword [esi + eax]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [esi + eax + 8]
movq qword [esp + 0x4c], xmm0
movq xmm0, qword [esi + eax + 0x10]
lea eax, [esp + 0x12c]
push eax
push ecx
push edx
lea ecx, [esp + 0x50]
movq qword [esp + 0x60], xmm0
call fcn.004a91c0
fstp st(0)
mov eax, dword [esp + 0x6c]
movsd xmm0, qword [esp + 0x44]
subsd xmm0, qword [esi + eax]
movsd xmm1, qword [esp + 0x4c]
subsd xmm1, qword [esi + eax + 8]
movsd xmm2, qword [esp + 0x54]
subsd xmm2, qword [esi + eax + 0x10]
movsd xmm3, qword [esp + 0x12c]
movsd xmm5, qword [esp + 0x134]
movsd xmm4, qword [esp + 0x13c]
mulsd xmm1, xmm5
mulsd xmm0, xmm3
addsd xmm0, xmm1
mulsd xmm2, xmm4
addsd xmm0, xmm2
movsd xmm2, qword [0x5fc860]
movapd xmm1, xmm0
andpd xmm1, xmm2
comisd xmm1, xmmword [0x5ff758]
jbe 0x520d6b
movapd xmm1, xmm0
mulsd xmm1, qword [ebp + 0x14]
comisd xmm1, xmmword [0x5fa830]
movsd xmm1, qword [esp + 0xa4]
jbe 0x520d74
comisd xmm1, xmm0
jbe 0x520d74
movapd xmm1, xmm0
movsd qword [esp + 0xa4], xmm1
jmp 0x520d74
movsd xmm1, qword [esp + 0xa4]
inc ebx
cmp ebx, dword [ebp + 0x28]
jl 0x520c50
movsd xmm2, qword [esi + eax + 8]
mov ecx, dword [esp + 0x38]
movapd xmm0, xmm1
mulsd xmm0, xmm5
addsd xmm2, xmm0
movsd xmm0, qword [esi + eax + 0x10]
mulsd xmm3, xmm1
addsd xmm3, qword [esi + eax]
movq qword [edi + ecx], xmm3
lea eax, [edi + ecx]
movq qword [eax + 8], xmm2
mulsd xmm1, xmm4
addsd xmm0, xmm1
movq qword [eax + 0x10], xmm0
mov eax, dword [esp + 0x38]
xorps xmm0, xmm0
movsd qword [esp + 0x54], xmm0
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [edi + eax]
subsd xmm0, qword [edi + eax - 0x18]
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [edi + eax + 8]
subsd xmm0, qword [edi + eax - 0x10]
movsd qword [esp + 0x4c], xmm0
movsd xmm0, qword [edi + eax + 0x10]
subsd xmm0, qword [edi + eax - 8]
lea ecx, [esp + 0x44]
movsd qword [esp + 0x54], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x520e46
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
fld qword [edx + eax*8]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x20]
fstp qword [ecx + eax*8]
inc eax
mov dword [esp + 0xa0], eax
add edi, 0x18
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
inc ecx
lea edx, [eax - 1]
add esi, 0x18
cmp ecx, edx
mov dword [esp + 0x68], ecx
jl 0x520950
movsd xmm6, qword [0x5fc860]
xorps xmm1, xmm1
mov edi, dword [esp + 0xa0]
jmp 0x520e79
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
movsd xmm7, qword [ebp + 0x14]
lea esi, [eax + eax*2]
add esi, esi
lea ebx, [edi + edi*2]
add ebx, ebx
add esi, esi
add ebx, ebx
add esi, esi
movq xmm0, qword [edx + esi - 0x18]
add ebx, ebx
lea eax, [edx + esi - 0x18]
add ecx, ebx
cmp dword [ebp + 0x28], 0
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
movsd qword [esp + 0x94], xmm7
mov dword [esp + 0x18], 0
jle 0x521023
mov eax, dword [ebp + 0x10]
movsd xmm3, qword [eax + 8]
movsd xmm4, qword [eax]
movsd xmm5, qword [eax + 0x10]
mov eax, dword [esp + 0x6c]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [edx]
mov edx, dword [esp + 0x18]
mov edx, dword [ecx + edx*4]
movsd xmm0, qword [edx + 0x70]
lea ecx, [edx + 0x68]
mulsd xmm0, xmm3
movapd xmm2, xmm4
mulsd xmm2, qword [ecx]
addsd xmm0, xmm2
movsd xmm2, qword [ecx + 0x10]
mulsd xmm2, xmm5
addsd xmm0, xmm2
add edx, 0x20
andpd xmm0, xmm6
comisd xmm0, xmmword [0x5ff770]
jbe 0x52100f
movq xmm0, qword [esi + eax - 0x18]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [esi + eax - 0x10]
movq qword [esp + 0x4c], xmm0
movq xmm0, qword [esi + eax - 8]
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
lea ecx, [esp + 0x50]
movq qword [esp + 0x60], xmm0
call fcn.004a91c0
fstp st(0)
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x6c]
movsd xmm1, qword [esp + 0x4c]
subsd xmm1, qword [esi + eax - 0x10]
movsd xmm3, qword [ecx + 8]
movsd xmm0, qword [esp + 0x44]
subsd xmm0, qword [esi + eax - 0x18]
movsd xmm2, qword [esp + 0x54]
movsd xmm4, qword [ecx]
movsd xmm5, qword [ecx + 0x10]
subsd xmm2, qword [esi + eax - 8]
movapd xmm6, xmm3
mulsd xmm6, xmm1
mulsd xmm0, xmm4
addsd xmm0, xmm6
movsd xmm6, qword [0x5fc860]
movapd xmm1, xmm5
mulsd xmm1, xmm2
addsd xmm0, xmm1
movapd xmm1, xmm0
andpd xmm1, xmm6
comisd xmm1, xmmword [0x5ff758]
xorps xmm1, xmm1
jbe 0x521006
movapd xmm2, xmm0
mulsd xmm2, qword [ebp + 0x14]
comisd xmm2, xmm1
jbe 0x521006
movsd xmm2, qword [esp + 0x94]
comisd xmm2, xmm0
jbe 0x521006
movapd xmm7, xmm0
movsd qword [esp + 0x94], xmm7
jmp 0x52100f
movsd xmm7, qword [esp + 0x94]
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, dword [ebp + 0x28]
mov dword [esp + 0x18], ecx
jl 0x520eec
jmp 0x521027
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x10]
movsd xmm2, qword [ecx + 8]
movsd xmm0, qword [ecx]
movsd xmm3, qword [ecx + 0x10]
movsd xmm4, qword [eax + esi - 0x10]
mov ecx, dword [esp + 0x38]
mulsd xmm2, xmm7
addsd xmm4, xmm2
movsd xmm2, qword [eax + esi - 8]
mulsd xmm0, xmm7
addsd xmm0, qword [eax + esi - 0x18]
lea eax, [ecx + ebx]
movq qword [eax], xmm0
movq qword [eax + 8], xmm4
mulsd xmm3, xmm7
addsd xmm2, xmm3
movq qword [eax + 0x10], xmm2
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
fld qword [edx + eax - 8]
mov ecx, dword [esp + 0x20]
fstp qword [ecx + edi*8]
inc edi
cmp edi, 2
jne 0x52112a
push 0xe0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x78], eax
xor edi, edi
mov byte [esp + 0x280], 5
cmp eax, edi
je 0x5210c9
push edi
lea edx, [esp + 0x24]
push edx
push edi
push edi
lea ecx, [esp + 0x6c]
push ecx
push 2
push 2
mov ecx, eax
call fcn.00508b40
jmp 0x5210cb
xor eax, eax
push 0xe0
mov byte [esp + 0x284], 4
mov ebx, eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x280], 6
cmp eax, edi
je 0x521119
push edi
lea edx, [esp + 0x24]
push edx
push edi
push edi
lea ecx, [esp + 0x48]
push ecx
push 2
push 2
mov ecx, eax
call fcn.00508b40
mov byte [esp + 0x280], 4
mov esi, eax
jmp 0x521944
xor eax, eax
mov byte [esp + 0x280], 4
mov esi, eax
jmp 0x521944
lea edx, [edi + 2]
xor esi, esi
push edx
lea ecx, [esp + 0x80]
movsd qword [esp + 0xf0], xmm1
movsd qword [esp + 0xe8], xmm1
movsd qword [esp + 0xe0], xmm1
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm1
movsd qword [esp + 0x48], xmm1
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], esi
mov dword [esp + 0x80], esi
call fcn.00412880
xor eax, eax
cmp edi, 4
mov byte [esp + 0x280], 7
jl 0x5211d9
lea ecx, [edi - 3]
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8]
mov edx, dword [esp + 0x7c]
fstp qword [edx + eax*8]
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8 + 8]
mov edx, dword [esp + 0x7c]
fstp qword [edx + eax*8 + 8]
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8 + 0x10]
mov edx, dword [esp + 0x7c]
fstp qword [edx + eax*8 + 0x10]
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8 + 0x18]
mov edx, dword [esp + 0x7c]
fstp qword [edx + eax*8 + 0x18]
add eax, 4
cmp eax, ecx
jl 0x521194
cmp eax, edi
jge 0x5211f3
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
fld qword [ecx + eax*8]
mov edx, dword [esp + 0x7c]
fstp qword [edx + eax*8]
inc eax
cmp eax, edi
jl 0x5211e0
movq xmm0, qword [esp + 0xfc]
movq qword [esp + 0xdc], xmm0
movq xmm0, qword [esp + 0x104]
movq qword [esp + 0xe4], xmm0
movq xmm0, qword [esp + 0x10c]
movq qword [esp + 0xec], xmm0
movq xmm0, qword [esp + 0x114]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [esp + 0x11c]
lea eax, [edi - 1]
cmp eax, esi
movq qword [esp + 0x4c], xmm0
movq xmm0, qword [esp + 0x124]
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x78], eax
jl 0x5213b7
lea ecx, [eax + 1]
cmp ecx, 4
jl 0x52136c
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x5c]
movq xmm0, qword [edx + ecx]
movq qword [edx + ecx + 0x18], xmm0
movq xmm0, qword [edx + ecx + 8]
movq qword [edx + ecx + 0x20], xmm0
movq xmm0, qword [edx + ecx + 0x10]
movq qword [edx + ecx + 0x28], xmm0
add edx, ecx
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8]
sub eax, 4
fstp qword [edx + eax*8 + 0x28]
mov edx, dword [esp + 0x5c]
movq xmm0, qword [edx + ecx - 0x18]
movq qword [edx + ecx], xmm0
movq xmm0, qword [edx + ecx - 0x10]
movq qword [edx + ecx + 8], xmm0
movq xmm0, qword [edx + ecx - 8]
movq qword [edx + ecx + 0x10], xmm0
add edx, ecx
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8 + 0x18]
fstp qword [edx + eax*8 + 0x20]
mov esi, dword [esp + 0x5c]
movq xmm0, qword [esi + ecx - 0x30]
movq qword [esi + ecx - 0x18], xmm0
movq xmm0, qword [esi + ecx - 0x28]
movq qword [esi + ecx - 0x10], xmm0
movq xmm0, qword [esi + ecx - 0x20]
lea edx, [esi + ecx - 0x30]
movq qword [esi + ecx - 8], xmm0
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8 + 0x10]
lea esi, [esi + ecx - 0x18]
fstp qword [edx + eax*8 + 0x18]
mov esi, dword [esp + 0x5c]
movq xmm0, qword [esi + ecx - 0x48]
lea edx, [esi + ecx - 0x48]
movq qword [esi + ecx - 0x30], xmm0
movq xmm0, qword [edx + 8]
lea esi, [esi + ecx - 0x30]
movq qword [esi + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [esi + 0x10], xmm0
mov edx, dword [esp + 0x20]
fld qword [edx + eax*8 + 8]
sub ecx, 0x60
cmp eax, 3
fstp qword [edx + eax*8 + 0x10]
jge 0x521280
test eax, eax
jl 0x5213b7
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
add edx, edx
lea esp, [esp]
mov ecx, dword [esp + 0x5c]
movq xmm0, qword [ecx + edx]
add ecx, edx
movq qword [ecx + 0x18], xmm0
movq xmm0, qword [ecx + 8]
movq qword [ecx + 0x20], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ecx + 0x28], xmm0
mov ecx, dword [esp + 0x20]
fld qword [ecx + eax*8]
dec eax
fstp qword [ecx + eax*8 + 0x10]
sub edx, 0x18
test eax, eax
jge 0x521380
mov eax, dword [esp + 0x5c]
lea ebx, [edi + 1]
mov esi, ebx
lea edx, [esi + esi*2]
movq xmm0, qword [eax + edx*8 - 0x18]
movq qword [eax + edx*8], xmm0
movq xmm0, qword [eax + edx*8 - 0x10]
movq qword [eax + edx*8 + 8], xmm0
movq xmm0, qword [eax + edx*8 - 8]
movq qword [eax + edx*8 + 0x10], xmm0
movsd xmm0, qword [0x5fb9c8]
lea eax, [eax + edx*8]
mov eax, dword [esp + 0x20]
fld qword [eax + esi*8 - 8]
inc esi
fstp qword [eax + esi*8 - 8]
mov eax, dword [esp + 0x5c]
movsd xmm1, qword [eax + 0x30]
addsd xmm1, qword [eax]
movsd xmm2, qword [eax + 0x38]
addsd xmm2, qword [eax + 8]
movsd xmm3, qword [eax + 0x40]
addsd xmm3, qword [eax + 0x10]
mulsd xmm1, xmm0
movq qword [eax + 0x18], xmm1
add eax, 0x18
mulsd xmm2, xmm0
movq qword [eax + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + 0x10], xmm3
mov eax, dword [esp + 0x20]
movsd xmm1, qword [eax + 0x10]
addsd xmm1, qword [eax]
mulsd xmm1, xmm0
movsd qword [eax + 8], xmm1
mov edx, dword [esp + 0x5c]
lea ecx, [esi + esi*2 - 9]
lea eax, [edx + ecx*8]
lea ecx, [esi + esi*2]
movsd xmm1, qword [edx + ecx*8 - 0x18]
addsd xmm1, qword [eax]
movsd xmm2, qword [edx + ecx*8 - 0x10]
addsd xmm2, qword [eax + 8]
movsd xmm3, qword [edx + ecx*8 - 8]
addsd xmm3, qword [eax + 0x10]
lea ecx, [edx + ecx*8 - 0x18]
mulsd xmm1, xmm0
lea eax, [esi + esi*2 - 6]
movq qword [edx + eax*8], xmm1
lea eax, [edx + eax*8]
mulsd xmm2, xmm0
movq qword [eax + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + 0x10], xmm3
mov eax, dword [esp + 0x20]
movsd xmm1, qword [eax + esi*8 - 8]
addsd xmm1, qword [eax + esi*8 - 0x18]
mulsd xmm1, xmm0
push 0xe0
movsd qword [eax + esi*8 - 0x10], xmm1
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x280], 8
test eax, eax
je 0x521503
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x6c]
push edx
push 3
push esi
mov ecx, eax
call fcn.00508b40
jmp 0x521505
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
movsd xmm0, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x20]
movsd xmm2, qword [eax + 0x28]
subsd xmm0, qword [eax]
subsd xmm1, qword [eax + 8]
subsd xmm2, qword [eax + 0x10]
lea ecx, [esp + 0xdc]
mov byte [esp + 0x280], 7
movq qword [esp + 0xdc], xmm0
movq qword [esp + 0xe4], xmm1
movq qword [esp + 0xec], xmm2
call fcn.004a8b50
fstp st(0)
mov ecx, dword [esp + 0x38]
lea eax, [edi + edi*2 - 6]
lea eax, [ecx + eax*8]
lea edx, [edi + edi*2]
movsd xmm0, qword [ecx + edx*8 - 0x18]
movsd xmm1, qword [ecx + edx*8 - 0x10]
movsd xmm2, qword [ecx + edx*8 - 8]
subsd xmm0, qword [eax]
subsd xmm1, qword [eax + 8]
subsd xmm2, qword [eax + 0x10]
lea ecx, [ecx + edx*8 - 0x18]
lea ecx, [esp + 0x44]
movq qword [esp + 0x44], xmm0
movq qword [esp + 0x4c], xmm1
movq qword [esp + 0x54], xmm2
call fcn.004a8b50
fstp st(0)
cmp byte [esp + 0x1f], 0
jne 0x5215ba
xor ebx, ebx
xor esi, esi
jmp 0x5218d9
movsd xmm0, qword [esp + 0xdc]
addsd xmm0, qword [esp + 0x44]
movsd qword [esp + 0xac], xmm0
movsd xmm0, qword [esp + 0x4c]
addsd xmm0, qword [esp + 0xe4]
movsd qword [esp + 0xb4], xmm0
movsd xmm0, qword [esp + 0x54]
addsd xmm0, qword [esp + 0xec]
lea ecx, [esp + 0xac]
movsd qword [esp + 0xbc], xmm0
call fcn.004a8b50
fstp st(0)
movsd xmm0, qword [esp + 0xac]
movsd xmm1, qword [esp + 0xb4]
movsd xmm2, qword [esp + 0xbc]
lea eax, [esp + 0xdc]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x44]
movq qword [esp + 0x44], xmm0
movq qword [esp + 0x4c], xmm1
movq qword [esp + 0x54], xmm2
movq qword [esp + 0xdc], xmm0
movq qword [esp + 0xe4], xmm1
movq qword [esp + 0xec], xmm2
mov dword [esp + 0x18], ecx
test eax, eax
jl 0x5217c7
lea edx, [eax + 1]
cmp edx, 4
jl 0x52177c
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
nop
mov edx, dword [esp + 0x38]
movq xmm0, qword [edx + ecx]
movq qword [edx + ecx + 0x18], xmm0
movq xmm0, qword [edx + ecx + 8]
movq qword [edx + ecx + 0x20], xmm0
movq xmm0, qword [edx + ecx + 0x10]
movq qword [edx + ecx + 0x28], xmm0
add edx, ecx
mov edx, dword [esp + 0x7c]
fld qword [edx + eax*8]
sub eax, 4
fstp qword [edx + eax*8 + 0x28]
mov edx, dword [esp + 0x38]
movq xmm0, qword [edx + ecx - 0x18]
movq qword [edx + ecx], xmm0
movq xmm0, qword [edx + ecx - 0x10]
movq qword [edx + ecx + 8], xmm0
movq xmm0, qword [edx + ecx - 8]
movq qword [edx + ecx + 0x10], xmm0
add edx, ecx
mov edx, dword [esp + 0x7c]
fld qword [edx + eax*8 + 0x18]
fstp qword [edx + eax*8 + 0x20]
mov esi, dword [esp + 0x38]
movq xmm0, qword [esi + ecx - 0x30]
movq qword [esi + ecx - 0x18], xmm0
movq xmm0, qword [esi + ecx - 0x28]
movq qword [esi + ecx - 0x10], xmm0
movq xmm0, qword [esi + ecx - 0x20]
lea edx, [esi + ecx - 0x30]
movq qword [esi + ecx - 8], xmm0
mov edx, dword [esp + 0x7c]
fld qword [edx + eax*8 + 0x10]
lea esi, [esi + ecx - 0x18]
fstp qword [edx + eax*8 + 0x18]
mov esi, dword [esp + 0x38]
movq xmm0, qword [esi + ecx - 0x48]
lea edx, [esi + ecx - 0x48]
movq qword [esi + ecx - 0x30], xmm0
movq xmm0, qword [edx + 8]
lea esi, [esi + ecx - 0x30]
movq qword [esi + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [esi + 0x10], xmm0
mov edx, dword [esp + 0x7c]
fld qword [edx + eax*8 + 8]
sub ecx, 0x60
cmp eax, 3
fstp qword [edx + eax*8 + 0x10]
jge 0x521690
test eax, eax
jl 0x5217c7
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
add edx, edx
lea esp, [esp]
mov ecx, dword [esp + 0x38]
movq xmm0, qword [ecx + edx]
add ecx, edx
movq qword [ecx + 0x18], xmm0
movq xmm0, qword [ecx + 8]
movq qword [ecx + 0x20], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ecx + 0x28], xmm0
mov ecx, dword [esp + 0x7c]
fld qword [ecx + eax*8]
dec eax
fstp qword [ecx + eax*8 + 0x10]
sub edx, 0x18
test eax, eax
jge 0x521790
mov eax, dword [esp + 0x38]
movsd xmm1, qword [eax]
addsd xmm1, qword [eax + 0x30]
movsd xmm2, qword [eax + 0x38]
addsd xmm2, qword [eax + 8]
movsd xmm3, qword [eax + 0x40]
addsd xmm3, qword [eax + 0x10]
movsd xmm0, qword [0x5fb9c8]
mulsd xmm1, xmm0
movq qword [eax + 0x18], xmm1
add eax, 0x18
mulsd xmm2, xmm0
movq qword [eax + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + 0x10], xmm3
mov eax, dword [esp + 0x7c]
movsd xmm1, qword [eax + 0x10]
addsd xmm1, qword [eax]
mulsd xmm1, xmm0
movsd qword [eax + 8], xmm1
mov eax, dword [esp + 0x38]
mov edi, ebx
lea edx, [edi + edi*2]
movq xmm1, qword [eax + edx*8 - 0x18]
movq qword [eax + edx*8], xmm1
movq xmm1, qword [eax + edx*8 - 0x10]
movq qword [eax + edx*8 + 8], xmm1
movq xmm1, qword [eax + edx*8 - 8]
movq qword [eax + edx*8 + 0x10], xmm1
lea eax, [eax + edx*8]
mov eax, dword [esp + 0x7c]
fld qword [eax + edi*8 - 8]
mov ebx, dword [esp + 0x18]
fstp qword [eax + edi*8]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0xa0]
inc edi
lea ecx, [edi + edi*2 - 9]
movsd xmm1, qword [edx + ecx*8]
lea eax, [edx + ecx*8]
lea ecx, [edi + edi*2]
movsd xmm2, qword [edx + ecx*8 - 0x10]
addsd xmm2, qword [eax + 8]
movsd xmm3, qword [edx + ecx*8 - 8]
addsd xmm3, qword [eax + 0x10]
addsd xmm1, qword [edx + ecx*8 - 0x18]
lea ecx, [edx + ecx*8 - 0x18]
mulsd xmm1, xmm0
lea eax, [edi + edi*2 - 6]
movq qword [edx + eax*8], xmm1
lea eax, [edx + eax*8]
mulsd xmm2, xmm0
movq qword [eax + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + 0x10], xmm3
mov eax, dword [esp + 0x7c]
movsd xmm1, qword [eax + edi*8 - 8]
addsd xmm1, qword [eax + edi*8 - 0x18]
mulsd xmm1, xmm0
movsd qword [eax + edi*8 - 0x10], xmm1
push 0xe0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x280], 9
test eax, eax
je 0x521913
push 0
lea ecx, [esp + 0x80]
push ecx
push ebx
push esi
lea edx, [esp + 0x48]
push edx
push 3
push edi
mov ecx, eax
call fcn.00508b40
jmp 0x521915
xor eax, eax
mov esi, eax
mov eax, dword [esp + 0x7c]
xor edi, edi
mov byte [esp + 0x280], 4
cmp eax, edi
je 0x521933
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
xor edi, edi
cmp byte [ebx + 4], 0
je 0x521a39
cmp byte [esi + 4], 0
je 0x521a39
push 0xd0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x78], eax
mov byte [esp + 0x280], 0xa
cmp eax, edi
je 0x521980
push esi
push ebx
mov ecx, eax
call fcn.004e83f0
mov edi, eax
fld1
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fldz
mov byte [esp + 0x290], 4
fstp qword [esp]
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll_free]
xor ebx, ebx
cmp eax, ebx
je 0x5219c9
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x5219df
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
cmp eax, ebx
je 0x5219f5
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
cmp eax, ebx
je 0x521a0b
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
cmp eax, ebx
je 0x521a21
push eax
call esi
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
je 0x521a47
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll_free]
cmp eax, edi
je 0x521a65
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
cmp eax, edi
je 0x521a7b
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x521a91
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edi
cmp eax, edi
je 0x521aa7
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
cmp eax, edi
je 0x521abd
push eax
call esi
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret