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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.__SNurbs_
push edi
mov esi, ecx
call fcn.004785b0
cmp byte [edi + 0x98], 0
je 0x4984a9
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xc8]
xor ebx, ebx
push ebx
push ebx
push eax
push ecx
mov ecx, edi
call fcn.005bf210
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0xd0]
push ebx
push ebx
push edx
push eax
mov ecx, edi
call fcn.005bf210
mov ecx, dword [esi + 0xd8]
push 1
push str.__Control_
push ecx
mov ecx, edi
call fcn.005bf120
mov eax, dword [esi + 0xc8]
imul eax, dword [esi + 0xcc]
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
jle 0x49843d
dec eax
push 1
mov ecx, edi
cmp dword [esp + 0x28], eax
je 0x4983ff
mov edx, dword [esi + 0xdc]
lea eax, [edx + ebx]
push 0
jmp 0x49840c
mov eax, dword [esi + 0xdc]
add eax, ebx
push str.__CtrlPoints_
fld qword [eax + 0x10]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [eax + 8]
fstp qword [esp + 8]
fld qword [eax]
fstp qword [esp]
call fcn.005bef40
mov eax, dword [esp + 0x24]
inc eax
add ebx, 0x18
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
jl 0x4983e7
test byte [esi + 0xd8], 1
je 0x49845c
mov ecx, dword [esi + 0xe8]
push 1
push str.__Weight_
push eax
push ecx
mov ecx, edi
call fcn.005c0470
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0xd0]
mov eax, dword [esi + 0xf4]
push 1
push str.__NodalU_
push edx
push eax
mov ecx, edi
call fcn.005c0470
mov ecx, dword [esi + 0xd4]
add ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x100]
push 1
push 0x5fdaf0
push ecx
push edx
mov ecx, edi
call fcn.005c0470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movsd xmm0, qword [0x5fcab8]
comisd xmm0, xmmword [edi]
lea eax, [esi + 0xcc]
lea ebx, [esi + 0xc8]
push 2
jbe 0x49857c
lea ecx, [esi + 0xd0]
push ecx
push eax
push ebx
mov ecx, edi
call fcn.005bff50
push 0
lea ecx, [esp + 0x26]
push ecx
lea edx, [esp + 0x28]
lea eax, [esi + 0xd4]
push edx
push eax
mov ecx, edi
call fcn.005c0c50
push 0
lea eax, [esp + 0x22]
push eax
lea ecx, [esp + 0x2b]
push ecx
lea edx, [esp + 0x2d]
push edx
mov ecx, edi
call fcn.005c0ce0
push 0
lea eax, [esp + 0x23]
push eax
mov ecx, edi
call fcn.005bfe60
cmp byte [esp + 0x1e], 0
mov dword [esi + 0xd8], 0
je 0x498534
mov dword [esi + 0xd8], 1
cmp byte [esp + 0x1f], 0
je 0x498542
or dword [esi + 0xd8], 2
cmp byte [esp + 0x20], 0
je 0x498550
or dword [esi + 0xd8], 4
cmp byte [esp + 0x21], 0
je 0x49855e
or dword [esi + 0xd8], 8
cmp byte [esp + 0x22], 0
je 0x49856c
or dword [esi + 0xd8], 0x10
cmp byte [esp + 0x23], 0
je 0x4985ac
or dword [esi + 0xd8], 0x20
jmp 0x4985ac
push eax
push ebx
mov ecx, edi
call fcn.005bfcc0
push 0
lea eax, [esi + 0xd4]
lea ecx, [esi + 0xd0]
push eax
push ecx
mov ecx, edi
call fcn.005bfcc0
lea eax, [esi + 0xd8]
push 0
push eax
mov ecx, edi
call fcn.005bfbe0
movzx ecx, byte [esi + 0x1c]
mov dl, byte [esi + 0x1d]
mov al, byte [esi + 0x1e]
movsd xmm0, qword [esi + 0x30]
mov byte [esp + 0x30], cl
movzx ecx, byte [esi + 0x1f]
mov byte [esp + 0x2c], dl
mov edx, dword [esi + 0x10]
mov byte [esp + 0x34], cl
mov ecx, dword [esi + 0xd8]
push ecx
mov ecx, dword [esi + 0xcc]
mov byte [esp + 0x3c], al
mov eax, dword [esi + 0x14]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0xd4]
push edx
mov edx, dword [ebx]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xd0]
push eax
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [esi + 0x40]
push ecx
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [esi + 0x48]
push edx
mov ecx, esi
movsd qword [esp + 0x6c], xmm0
call fcn.00485ca0
mov eax, dword [ebx]
imul eax, dword [esi + 0xcc]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x4986a0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], eax
push 2
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x84]
push edx
mov ecx, edi
call fcn.005bf840
mov eax, dword [esi + 0xdc]
mov ecx, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd xmm2, qword [esp + 0x78]
add eax, ecx
add ecx, 0x18
sub dword [esp + 0x24], 1
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm0
movsd qword [eax + 0x10], xmm1
mov dword [esp + 0x28], ecx
jne 0x498647
mov eax, dword [esp + 0x3c]
test byte [esi + 0xd8], 1
je 0x4986ba
push 2
push eax
mov eax, dword [esi + 0xe8]
push eax
mov ecx, edi
call fcn.005bf9c0
mov ecx, dword [ebx]
add ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0xf4]
push 2
push ecx
push edx
mov ecx, edi
call fcn.005bf9c0
mov eax, dword [esi + 0xd4]
add eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0x100]
push 2
push eax
push ecx
mov ecx, edi
call fcn.005bf9c0
mov ecx, dword [esi + 0xfc]
mov eax, dword [esi + 0xd0]
cmp ecx, eax
xorps xmm4, xmm4
jl 0x498711
mov edx, dword [esi + 0xf4]
movsd xmm2, qword [edx + eax*8 - 8]
jmp 0x498715
movapd xmm2, xmm4
mov ebx, dword [ebx]
movsd xmm0, qword [0x5fb270]
add eax, ebx
cmp ecx, eax
movsd qword [esi + 0x50], xmm2
jl 0x498753
mov ecx, dword [esi + 0xd8]
shr ecx, 2
test cl, 1
je 0x498746
mov edx, dword [esi + 0xf4]
movsd xmm3, qword [edx + eax*8 - 8]
jmp 0x498757
mov eax, dword [esi + 0xf4]
movsd xmm3, qword [eax + ebx*8]
jmp 0x498757
movapd xmm3, xmm0
mov edx, dword [esi + 0x108]
mov eax, dword [esi + 0xd4]
cmp edx, eax
movsd qword [esi + 0x58], xmm3
jl 0x49877a
mov ecx, dword [esi + 0x100]
movsd xmm1, qword [ecx + eax*8 - 8]
jmp 0x49877e
movapd xmm1, xmm4
mov ecx, dword [esi + 0xcc]
add eax, ecx
cmp edx, eax
movsd qword [esi + 0x60], xmm1
jl 0x4987b6
mov edx, dword [esi + 0xd8]
shr edx, 4
test dl, 1
je 0x4987ab
mov ecx, dword [esi + 0x100]
movsd xmm0, qword [ecx + eax*8 - 8]
jmp 0x4987b6
mov edx, dword [esi + 0x100]
movsd xmm0, qword [edx + ecx*8]
mov eax, dword [esp + 0x40]
movsd qword [esi + 0x68], xmm0
movsd qword [esi + 0x28], xmm4
movsd qword [esi + 0x20], xmm4
test eax, eax
jle 0x49881d
movsd xmm1, qword [esp + 0x50]
comisd xmm2, xmm1
mov cl, byte [esp + 0x30]
mov dl, byte [esp + 0x2c]
movsd xmm0, qword [esp + 0x48]
movsd qword [esi + 0x30], xmm1
movsd qword [esi + 0x38], xmm0
mov dword [esi + 0x10], eax
mov byte [esi + 0x1c], cl
mov byte [esi + 0x1d], dl
jbe 0x4987ff
movapd xmm1, xmm2
dec eax
comisd xmm0, xmm3
jbe 0x49880a
movapd xmm0, xmm3
dec eax
subsd xmm0, xmm1
cvtsi2sd xmm1, eax
divsd xmm0, xmm1
movsd qword [esi + 0x20], xmm0
jmp 0x498841
fld qword [esp + 0x48]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x64]
fstp qword [esp]
push eax
push ecx
mov ecx, esi
call fcn.004703e0
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x4988a3
movsd xmm1, qword [esp + 0x60]
mov dl, byte [esp + 0x38]
mov cl, byte [esp + 0x34]
movsd xmm2, qword [esi + 0x60]
comisd xmm2, xmm1
movsd xmm0, qword [esp + 0x58]
movsd qword [esi + 0x40], xmm1
movsd qword [esi + 0x48], xmm0
mov dword [esi + 0x14], eax
mov byte [esi + 0x1e], dl
mov byte [esi + 0x1f], cl
jbe 0x498880
movapd xmm1, xmm2
dec eax
movsd xmm2, qword [esi + 0x68]
comisd xmm0, xmm2
jbe 0x498890
movapd xmm0, xmm2
dec eax
subsd xmm0, xmm1
cvtsi2sd xmm1, eax
divsd xmm0, xmm1
movsd qword [esi + 0x28], xmm0
jmp 0x4988c7
fld qword [esp + 0x58]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esp + 0x74]
fstp qword [esp]
push edx
push eax
call fcn.00470420
mov ecx, esi
call fcn.0048fd10
fld qword [esi + 0x38]
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esi + 0x30]
fstp qword [esp]
call eax
mov ecx, esi
call fcn.0048fd80
fld qword [esi + 0x48]
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esi + 0x40]
fstp qword [esp]
call eax
movsd xmm0, qword [0x5fcab8]
comisd xmm0, xmmword [edi]
jbe 0x498932
fld qword [0x5fd338]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [0x5fb9d0]
fstp qword [esp]
call fcn.004910f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4