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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f0150
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x58], ebx
call fcn.00468910
xor edx, edx
mov dword [ebx], vtable.CGeom_SNurbs.0
mov eax, 1
mov dword [esp + 0xc0], edx
mov dword [ebx + 0xe0], eax
mov dword [ebx + 0xe4], edx
mov dword [ebx + 0xdc], edx
mov dword [ebx + 0xec], eax
mov dword [ebx + 0xf0], edx
mov dword [ebx + 0xe8], edx
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], edx
mov dword [ebx + 0xf4], edx
mov dword [ebx + 0x104], eax
mov dword [ebx + 0x108], edx
mov dword [ebx + 0x100], edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x34]
mov eax, edi
imul eax, dword [ebp + 0x1c]
cmp dword [ecx + 8], eax
mov byte [esp + 0xc0], 4
setge al
xor ecx, ecx
test al, al
setne cl
mov byte [esp + 0x27], al
mov dword [esp + 0x2c], ecx
cmp byte [ebp + 0x14], dl
je 0x49af6c
or dword [esp + 0x2c], 8
cmp byte [ebp + 0x28], 0
je 0x49af77
or dword [esp + 0x2c], 0x20
cmp byte [ebp + 0x10], 0
movsd xmm0, qword [0x5fb9d0]
je 0x49afbd
mov eax, dword [ebp + 0xc]
mov ecx, 1
lea esi, [edi + eax]
cmp esi, ecx
jle 0x49afbd
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
add eax, 8
lea esp, [esp]
movsd xmm1, qword [eax]
subsd xmm1, qword [eax - 8]
comisd xmm0, xmm1
ja 0x49afb9
inc ecx
add eax, 8
cmp ecx, esi
jl 0x49afa0
jmp 0x49afbd
mov byte [ebp + 0x10], 0
cmp byte [ebp + 0x24], 0
je 0x49affd
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov ecx, 1
add esi, eax
cmp esi, ecx
jle 0x49affd
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
add eax, 8
lea esp, [esp]
movsd xmm1, qword [eax]
subsd xmm1, qword [eax - 8]
comisd xmm0, xmm1
ja 0x49aff9
inc ecx
add eax, 8
cmp ecx, esi
jl 0x49afe0
jmp 0x49affd
mov byte [ebp + 0x24], 0
mov al, byte [ebp + 0x10]
test al, al
je 0x49b009
or dword [esp + 0x2c], 4
cmp byte [ebp + 0x24], 0
je 0x49b014
or dword [esp + 0x2c], 0x10
test al, al
jne 0x49b053
mov esi, dword [ebp + 0xc]
dec esi
cmp esi, edx
jle 0x49b053
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
add edx, edi
mov ecx, eax
lea edx, [eax + edx*8 - 8]
mov dword [esp + 0x48], esi
mov esi, dword [ebp + 0xc]
fld qword [eax + esi*8 - 8]
add ecx, 8
fstp qword [ecx - 8]
sub edx, 8
sub dword [esp + 0x48], 1
fld qword [eax + edi*8]
fstp qword [edx + 8]
jne 0x49b034
xor edx, edx
cmp byte [ebp + 0x24], 0
jne 0x49b09f
mov eax, dword [ebp + 0x20]
dec eax
cmp eax, edx
jle 0x49b09f
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
add edx, esi
dec esi
mov ecx, eax
lea edx, [eax + edx*8 - 8]
mov dword [esp + 0x48], esi
lea esp, [esp]
mov esi, dword [ebp + 0x20]
fld qword [eax + esi*8 - 8]
mov esi, dword [ebp + 0x1c]
fstp qword [ecx]
add ecx, 8
fld qword [eax + esi*8]
sub edx, 8
sub dword [esp + 0x48], 1
fstp qword [edx + 8]
jne 0x49b080
cmp edi, 2
xorps xmm4, xmm4
movsd xmm0, qword [0x5fb9c8]
mov esi, dword [ebp + 0x30]
movsd qword [esp + 0x5c], xmm4
jle 0x49b562
cmp edi, dword [ebp + 0xc]
jle 0x49b562
cmp dword [ebp + 0x1c], 0
mov dword [esp + 0x28], 0
jle 0x49b2b6
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
lea eax, [edi + edi*2 - 6]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
jmp 0x49b103
xorps xmm4, xmm4
cmp edi, 1
movsd qword [esp + 0x4c], xmm4
jle 0x49b189
mov eax, dword [esp + 0x34]
add eax, 0x18
lea ecx, [edi - 1]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esi]
mov eax, dword [esp + 0x3c]
add eax, edx
movsd qword [esp + 0x7c], xmm4
movsd qword [esp + 0x74], xmm4
movsd qword [esp + 0x6c], xmm4
movsd xmm0, qword [eax]
subsd xmm0, qword [eax - 0x18]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [eax - 0x10]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [eax - 8]
lea ecx, [esp + 0x6c]
movsd qword [esp + 0x7c], xmm0
call fcn.004a88b0
fadd qword [esp + 0x4c]
add dword [esp + 0x3c], 0x18
sub dword [esp + 0x48], 1
xorps xmm4, xmm4
fstp qword [esp + 0x4c]
jne 0x49b120
mov eax, dword [esi]
mov ecx, dword [esp + 0x38]
movsd qword [esp + 0x7c], xmm4
movsd qword [esp + 0x74], xmm4
movsd qword [esp + 0x6c], xmm4
movsd xmm0, qword [ecx + eax + 0x18]
subsd xmm0, qword [ecx + eax]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [ecx + eax + 0x20]
subsd xmm0, qword [ecx + eax + 8]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [ecx + eax + 0x28]
subsd xmm0, qword [ecx + eax + 0x10]
lea ecx, [esp + 0x6c]
movsd qword [esp + 0x7c], xmm0
call fcn.004a88b0
fld qword [esp + 0x4c]
fmul qword [0x5fc870]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x49b557
mov eax, dword [esi]
xorps xmm0, xmm0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x74], xmm0
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [edx + eax]
subsd xmm0, qword [ecx + eax]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [edx + eax + 8]
subsd xmm0, qword [ecx + eax + 8]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [edx + eax + 0x10]
subsd xmm0, qword [ecx + eax + 0x10]
lea ecx, [esp + 0x6c]
movsd qword [esp + 0x7c], xmm0
call fcn.004a88b0
fst qword [esp + 0x64]
fld qword [esp + 0x5c]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x49b26f
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 0x5c], xmm0
jmp 0x49b275
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [0x5fa920]
comisd xmm0, xmm1
ja 0x49b2a1
mov eax, dword [esp + 0x30]
add dword [esp + 0x34], eax
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [ebp + 0x1c]
mov dword [esp + 0x28], eax
jl 0x49b100
comisd xmm1, xmm0
jbe 0x49b557
movsd xmm0, qword [0x5fb9c8]
xorps xmm4, xmm4
xor edx, edx
cmp dword [ebp + 0x1c], 4
jl 0x49b4a4
lea eax, [edi + edi*2]
shl eax, 5
lea edx, [edi + edi*8]
lea ecx, [edi + edi*2]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
lea eax, [edi + edi*2]
mov edi, dword [ebp + 0x1c]
add edi, 0xfffffffc
shr edi, 2
add edx, edx
add eax, eax
inc edi
add edx, edx
add eax, eax
mov dword [esp + 0x48], edi
xor ebx, ebx
add edi, edi
add edx, edx
shl ecx, 4
add eax, eax
add edi, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], edi
jmp 0x49b314
mov ebx, dword [esp + 0x3c]
mov edi, dword [esi]
movsd xmm1, qword [eax + edi - 0x18]
addsd xmm1, qword [ebx + edi]
movsd xmm2, qword [eax + edi - 0x10]
addsd xmm2, qword [ebx + edi + 8]
movsd xmm3, qword [eax + edi - 8]
addsd xmm3, qword [ebx + edi + 0x10]
mulsd xmm1, xmm0
movq qword [ebx + edi], xmm1
mulsd xmm2, xmm0
movq qword [ebx + edi + 8], xmm2
mulsd xmm3, xmm0
movq qword [ebx + edi + 0x10], xmm3
mov edi, dword [esi]
movq qword [eax + edi - 0x18], xmm1
movq qword [eax + edi - 0x10], xmm2
movq qword [eax + edi - 8], xmm3
lea edi, [eax + edi - 0x18]
mov edi, dword [esi]
movsd xmm1, qword [ecx + edi - 0x18]
addsd xmm1, qword [eax + edi]
movsd xmm2, qword [ecx + edi - 0x10]
addsd xmm2, qword [eax + edi + 8]
movsd xmm3, qword [ecx + edi - 8]
addsd xmm3, qword [eax + edi + 0x10]
mov ebx, dword [esp + 0x38]
mulsd xmm1, xmm0
movq qword [eax + edi], xmm1
mulsd xmm2, xmm0
movq qword [eax + edi + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + edi + 0x10], xmm3
mov edi, dword [esi]
movq qword [ecx + edi - 0x18], xmm1
movq qword [ecx + edi - 0x10], xmm2
movq qword [ecx + edi - 8], xmm3
lea edi, [ecx + edi - 0x18]
mov edi, dword [esi]
movsd xmm1, qword [edx + edi - 0x18]
addsd xmm1, qword [ecx + edi]
movsd xmm2, qword [edx + edi - 0x10]
addsd xmm2, qword [ecx + edi + 8]
movsd xmm3, qword [edx + edi - 8]
addsd xmm3, qword [ecx + edi + 0x10]
mulsd xmm1, xmm0
movq qword [ecx + edi], xmm1
mulsd xmm2, xmm0
movq qword [ecx + edi + 8], xmm2
mulsd xmm3, xmm0
movq qword [ecx + edi + 0x10], xmm3
mov edi, dword [esi]
movq qword [edx + edi - 0x18], xmm1
movq qword [edx + edi - 0x10], xmm2
movq qword [edx + edi - 8], xmm3
lea edi, [edx + edi - 0x18]
mov edi, dword [esi]
movsd xmm1, qword [ebx + edi - 0x18]
addsd xmm1, qword [edx + edi]
movsd xmm2, qword [ebx + edi - 0x10]
addsd xmm2, qword [edx + edi + 8]
movsd xmm3, qword [ebx + edi - 8]
addsd xmm3, qword [edx + edi + 0x10]
mulsd xmm1, xmm0
movq qword [edx + edi], xmm1
mulsd xmm2, xmm0
movq qword [edx + edi + 8], xmm2
mulsd xmm3, xmm0
movq qword [edx + edi + 0x10], xmm3
mov edi, dword [esi]
lea edi, [ebx + edi - 0x18]
movq qword [edi], xmm1
movq qword [edi + 8], xmm2
movq qword [edi + 0x10], xmm3
mov edi, dword [esp + 0x4c]
add dword [esp + 0x3c], edi
add dword [esp + 0x38], edi
add eax, edi
add ecx, edi
add edx, edi
sub dword [esp + 0x48], 1
jne 0x49b310
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x58]
cmp edx, dword [ebp + 0x1c]
jge 0x49b562
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
lea eax, [edx + 1]
imul eax, edi
mov ecx, edx
imul ecx, edi
lea eax, [eax + eax*2]
add eax, eax
lea ecx, [ecx + ecx*2]
add eax, eax
add ecx, ecx
add eax, eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c]
add ecx, ecx
add ecx, ecx
sub eax, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jmp 0x49b4f0
mov eax, dword [esi]
movsd xmm1, qword [eax + edx - 0x18]
addsd xmm1, qword [eax + ecx]
movsd xmm2, qword [eax + edx - 0x10]
movsd xmm3, qword [eax + edx - 8]
addsd xmm2, qword [eax + ecx + 8]
addsd xmm3, qword [eax + ecx + 0x10]
mulsd xmm1, xmm0
movq qword [eax + ecx], xmm1
mulsd xmm2, xmm0
movq qword [eax + ecx + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + ecx + 0x10], xmm3
mov eax, dword [esi]
lea eax, [eax + edx - 0x18]
movq qword [eax], xmm1
movq qword [eax + 8], xmm2
movq qword [eax + 0x10], xmm3
mov eax, dword [esp + 0x30]
add ecx, eax
add edx, eax
sub dword [esp + 0x48], 1
jne 0x49b4f0
jmp 0x49b562
movsd xmm0, qword [0x5fb9c8]
xorps xmm4, xmm4
mov eax, dword [ebp + 0x1c]
cmp eax, 2
movsd qword [esp + 0x5c], xmm4
jle 0x49b9f3
cmp eax, dword [ebp + 0x20]
jle 0x49b9f3
mov dword [esp + 0x28], 0
test edi, edi
jle 0x49b7ac
mov ecx, eax
lea eax, [ecx - 2]
imul eax, edi
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x34], eax
lea eax, [ecx - 1]
imul eax, edi
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x48], eax
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
jmp 0x49b5d3
xorps xmm4, xmm4
mov eax, dword [ebp + 0x1c]
cmp eax, 1
movsd qword [esp + 0x64], xmm4
jle 0x49b677
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
dec eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
lea ebx, [ebx]
mov eax, dword [esi]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
movsd qword [esp + 0x7c], xmm4
movsd qword [esp + 0x74], xmm4
movsd qword [esp + 0x6c], xmm4
movsd xmm0, qword [eax + edx]
subsd xmm0, qword [eax + ecx]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [eax + edx + 8]
subsd xmm0, qword [eax + ecx + 8]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [eax + edx + 0x10]
subsd xmm0, qword [eax + ecx + 0x10]
lea ecx, [esp + 0x6c]
movsd qword [esp + 0x7c], xmm0
call fcn.004a88b0
fadd qword [esp + 0x64]
mov eax, dword [esp + 0x30]
add dword [esp + 0x3c], eax
add dword [esp + 0x40], eax
fstp qword [esp + 0x64]
sub dword [esp + 0x4c], 1
xorps xmm4, xmm4
jne 0x49b600
mov eax, dword [esi]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
movsd qword [esp + 0x7c], xmm4
movsd qword [esp + 0x74], xmm4
movsd qword [esp + 0x6c], xmm4
movsd xmm0, qword [eax + ecx]
subsd xmm0, qword [eax + edx]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [eax + ecx + 8]
subsd xmm0, qword [eax + edx + 8]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [eax + ecx + 0x10]
subsd xmm0, qword [eax + edx + 0x10]
lea ecx, [esp + 0x6c]
movsd qword [esp + 0x7c], xmm0
call fcn.004a88b0
fld qword [esp + 0x64]
fmul qword [0x5fc870]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x49b9f3
mov eax, dword [esi]
xorps xmm0, xmm0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x74], xmm0
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [eax + edx]
subsd xmm0, qword [eax + ecx]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [eax + edx + 8]
subsd xmm0, qword [eax + ecx + 8]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [eax + edx + 0x10]
subsd xmm0, qword [eax + ecx + 0x10]
lea ecx, [esp + 0x6c]
movsd qword [esp + 0x7c], xmm0
call fcn.004a88b0
fst qword [esp + 0x4c]
fld qword [esp + 0x5c]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x49b760
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 0x5c], xmm0
jmp 0x49b766
movsd xmm0, qword [esp + 0x5c]
movsd xmm1, qword [0x5fa920]
comisd xmm0, xmm1
ja 0x49b79a
mov eax, dword [esp + 0x28]
mov ecx, 0x18
add dword [esp + 0x38], ecx
add dword [esp + 0x44], ecx
add dword [esp + 0x48], ecx
add dword [esp + 0x34], ecx
inc eax
cmp eax, edi
mov dword [esp + 0x28], eax
jl 0x49b5d0
comisd xmm1, xmm0
jbe 0x49b9f3
movsd xmm0, qword [0x5fb9c8]
xor edx, edx
cmp edi, 4
jl 0x49b960
mov ecx, dword [ebp + 0x1c]
dec ecx
imul ecx, edi
lea ecx, [ecx + ecx*2]
lea edx, [edi - 4]
shr edx, 2
add ecx, ecx
inc edx
add ecx, ecx
mov dword [esp + 0x4c], edx
add edx, edx
xor eax, eax
add ecx, ecx
add edx, edx
mov dword [esp + 0x28], edx
lea esp, [esp]
mov edx, dword [esi]
movsd xmm1, qword [edx + ecx]
addsd xmm1, qword [edx + eax]
movsd xmm2, qword [edx + ecx + 8]
addsd xmm2, qword [edx + eax + 8]
movsd xmm3, qword [edx + ecx + 0x10]
addsd xmm3, qword [edx + eax + 0x10]
mulsd xmm1, xmm0
movq qword [edx + eax], xmm1
mulsd xmm2, xmm0
movq qword [edx + eax + 8], xmm2
mulsd xmm3, xmm0
movq qword [edx + eax + 0x10], xmm3
mov edx, dword [esi]
movq qword [edx + ecx], xmm1
movq qword [edx + ecx + 8], xmm2
movq qword [edx + ecx + 0x10], xmm3
add edx, ecx
mov edx, dword [esi]
movsd xmm1, qword [edx + ecx + 0x18]
addsd xmm1, qword [edx + eax + 0x18]
movsd xmm2, qword [edx + ecx + 0x20]
addsd xmm2, qword [edx + eax + 0x20]
movsd xmm3, qword [edx + ecx + 0x28]
addsd xmm3, qword [edx + eax + 0x28]
mulsd xmm1, xmm0
movq qword [edx + eax + 0x18], xmm1
mulsd xmm2, xmm0
movq qword [edx + eax + 0x20], xmm2
mulsd xmm3, xmm0
movq qword [edx + eax + 0x28], xmm3
mov edx, dword [esi]
movq qword [edx + ecx + 0x18], xmm1
movq qword [edx + ecx + 0x20], xmm2
movq qword [edx + ecx + 0x28], xmm3
lea edx, [edx + ecx + 0x18]
mov edx, dword [esi]
movsd xmm1, qword [edx + ecx + 0x30]
addsd xmm1, qword [edx + eax + 0x30]
movsd xmm2, qword [edx + ecx + 0x38]
addsd xmm2, qword [edx + eax + 0x38]
movsd xmm3, qword [edx + ecx + 0x40]
addsd xmm3, qword [edx + eax + 0x40]
lea ebx, [ecx + 0x30]
mulsd xmm1, xmm0
movq qword [edx + eax + 0x30], xmm1
mulsd xmm2, xmm0
movq qword [edx + eax + 0x38], xmm2
mulsd xmm3, xmm0
movq qword [edx + eax + 0x40], xmm3
mov edx, dword [esi]
movq qword [edx + ebx], xmm1
movq qword [edx + ebx + 8], xmm2
movq qword [edx + ebx + 0x10], xmm3
add edx, ebx
mov edx, dword [esi]
movsd xmm1, qword [edx + ecx + 0x48]
addsd xmm1, qword [edx + eax + 0x48]
movsd xmm2, qword [edx + ecx + 0x50]
addsd xmm2, qword [edx + eax + 0x50]
movsd xmm3, qword [edx + ecx + 0x58]
addsd xmm3, qword [edx + eax + 0x58]
lea ebx, [ecx + 0x48]
mulsd xmm1, xmm0
movq qword [edx + eax + 0x48], xmm1
mulsd xmm2, xmm0
movq qword [edx + eax + 0x50], xmm2
mulsd xmm3, xmm0
movq qword [edx + eax + 0x58], xmm3
mov edx, dword [esi]
add edx, ebx
movq qword [edx], xmm1
add eax, 0x60
add ecx, 0x60
sub dword [esp + 0x4c], 1
movq qword [edx + 8], xmm2
movq qword [edx + 0x10], xmm3
jne 0x49b7e0
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
cmp edx, edi
jge 0x49b9f3
mov eax, dword [ebp + 0x1c]
dec eax
imul eax, edi
add eax, edx
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
lea ecx, [edx + edx*2]
add ecx, ecx
add eax, eax
mov dword [esp + 0x48], eax
add ecx, ecx
mov eax, edi
add ecx, ecx
sub eax, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
movsd xmm1, qword [eax + edx]
addsd xmm1, qword [eax + ecx]
movsd xmm2, qword [eax + edx + 8]
movsd xmm3, qword [eax + edx + 0x10]
addsd xmm2, qword [eax + ecx + 8]
addsd xmm3, qword [eax + ecx + 0x10]
mulsd xmm1, xmm0
movq qword [eax + ecx], xmm1
mulsd xmm2, xmm0
movq qword [eax + ecx + 8], xmm2
mulsd xmm3, xmm0
movq qword [eax + ecx + 0x10], xmm3
mov eax, dword [esi]
add eax, edx
movq qword [eax], xmm1
add ecx, 0x18
add edx, 0x18
sub dword [esp + 0x4c], 1
movq qword [eax + 8], xmm2
movq qword [eax + 0x10], xmm3
jne 0x49b993
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
push eax
push edi
mov ecx, ebx
call fcn.00485ca0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
mov ecx, ebx
call fcn.0048fdf0
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
mov ecx, ebx
call fcn.0048fee0
cmp byte [esp + 0x27], 0
je 0x49ba77
mov edx, dword [ebp + 0x34]
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x49ba77
mov edi, dword [ebx + 0xcc]
imul edi, dword [ebx + 0xc8]
cmp dword [ebx + 0xf0], edi
jge 0x49ba5f
push edi
lea ecx, [ebx + 0xe8]
call fcn.00412880
mov eax, dword [esp + 0x4c]
mov edx, dword [ebx + 0xe8]
lea ecx, [edi*8]
push ecx
push eax
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [esi]
push eax
mov ecx, ebx
call fcn.004982e0
fld qword [0x5ff790]
mov cl, byte [0x616388]
push 1
sub esp, 8
fstp qword [esp]
push 0x1f4
push 3
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x64]
mov byte [esp + 0x3f], cl
push eax
mov ecx, ebx
mov byte [0x616388], 0
call fcn.0048e230
test al, al
je 0x49bad9
mov eax, dword [esp + 0x4c]
cmp eax, dword [ebx + 0x10c]
jge 0x49bad9
mov ecx, dword [ebx + 0xc8]
dec ecx
cmp eax, ecx
jle 0x49bad9
mov dword [ebx + 0x10c], eax
mov dl, byte [esp + 0x27]
mov byte [0x616388], dl
fld qword [ebx + 0x38]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, ebx
fld qword [ebx + 0x30]
fstp qword [esp]
call fcn.00484ae0
fld qword [0x5ff790]
mov al, byte [0x616388]
xor esi, esi
push esi
sub esp, 8
fstp qword [esp]
push 0x1f4
push 3
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
mov byte [esp + 0x43], al
mov byte [0x616388], 0
call fcn.0048e230
test al, al
je 0x49bb52
mov eax, dword [esp + 0x4c]
cmp eax, dword [ebx + 0x110]
jge 0x49bb52
mov ecx, dword [ebx + 0xcc]
dec ecx
cmp eax, ecx
jle 0x49bb52
mov dword [ebx + 0x110], eax
mov dl, byte [esp + 0x27]
mov byte [0x616388], dl
fld qword [ebx + 0x48]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, ebx
fld qword [ebx + 0x40]
fstp qword [esp]
call fcn.00484f50
movsd xmm1, qword [ebx + 0x30]
movsd xmm0, qword [0x5ff780]
movsd xmm2, qword [ebp + 0x38]
subsd xmm1, xmm0
comisd xmm2, xmm1
jbe 0x49bbd6
movsd xmm1, qword [ebx + 0x38]
addsd xmm1, xmm0
comisd xmm1, xmm2
jbe 0x49bbd6
movapd xmm3, xmm0
addsd xmm3, xmm2
movsd xmm2, qword [ebp + 0x40]
comisd xmm2, xmm3
jbe 0x49bbd6
comisd xmm1, xmm2
jbe 0x49bbd6
fld qword [ebp + 0x40]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, ebx
fld qword [ebp + 0x38]
fstp qword [esp]
call fcn.00484ae0
movsd xmm0, qword [0x5ff780]
movsd xmm1, qword [ebx + 0x40]
movsd xmm2, qword [ebp + 0x48]
subsd xmm1, xmm0
comisd xmm2, xmm1
jbe 0x49bc25
movapd xmm1, xmm0
addsd xmm1, qword [ebx + 0x48]
comisd xmm1, xmm2
jbe 0x49bc25
addsd xmm0, xmm2
movsd xmm2, qword [ebp + 0x50]
comisd xmm2, xmm0
jbe 0x49bc25
comisd xmm1, xmm2
jbe 0x49bc25
fld qword [ebp + 0x50]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, ebx
fld qword [ebp + 0x48]
fstp qword [esp]
call fcn.00484f50
fld qword [0x5fdae0]
sub esp, 8
mov ecx, ebx
fstp qword [esp]
call fcn.0048ea10
mov al, byte [0x616388]
mov byte [esp + 0x27], al
mov byte [0x616388], 0
mov eax, dword [ebx + 0xc8]
cmp eax, 0x19
jle 0x49bcca
mov ecx, dword [ebx + 0x10]
fld qword [0x5fcaf8]
push 1
sub esp, 8
fstp qword [esp]
lea eax, [eax + eax*2]
lea eax, [eax + eax - 6]
push eax
push ecx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
call fcn.0048e230
test al, al
je 0x49bcca
mov eax, dword [ebx + 0xc8]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
lea eax, [eax + eax - 6]
cmp eax, ecx
jl 0x49bc9d
mov eax, ecx
movsd xmm0, qword [ebx + 0x38]
subsd xmm0, qword [ebx + 0x30]
cvtsi2sd xmm1, eax
divsd xmm0, xmm1
mov ecx, ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x10c], eax
movsd qword [ebx + 0x20], xmm0
call fcn.00468d50
mov dword [ebx + 0xb8], esi
mov eax, dword [ebx + 0xcc]
cmp eax, 0x19
jle 0x49bd66
mov ecx, dword [ebx + 0x14]
fld qword [0x5fcaf8]
push esi
sub esp, 8
lea eax, [eax + eax*2]
fstp qword [esp]
lea eax, [eax + eax - 6]
push eax
push ecx
mov dword [esp + 0x60], ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.0048e230
test al, al
je 0x49bd5b
mov eax, dword [ebx + 0xcc]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
lea eax, [eax + eax - 6]
cmp eax, ecx
jl 0x49bd22
mov eax, ecx
movsd xmm0, qword [ebx + 0x48]
subsd xmm0, qword [ebx + 0x40]
cvtsi2sd xmm1, eax
divsd xmm0, xmm1
mov ecx, ebx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x110], eax
movsd qword [ebx + 0x28], xmm0
call fcn.00468d50
mov dl, byte [esp + 0x27]
mov dword [ebx + 0xb8], esi
mov byte [0x616388], dl
jmp 0x49bd70
mov al, byte [esp + 0x27]
mov byte [0x616388], al
jmp 0x49bd70
mov cl, byte [esp + 0x27]
mov byte [0x616388], cl
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x50