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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e4550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
push 0x20
call fcn.004bb163
add esp, 4
mov dword [esp + 0xc], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0xe8], edi
je 0x47c622
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
jmp 0x47c624
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edi
push 0x20
mov dword [esp + 0xec], 1
call fcn.004bb163
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0xe8], 2
je 0x47c66e
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
jmp 0x47c670
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
push 0x20
mov byte [esp + 0xec], 3
call fcn.004bb163
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0xe8], 4
je 0x47c6ad
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
jmp 0x47c6af
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
push 0x20
mov byte [esp + 0xec], 5
call fcn.004bb163
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0xe8], 6
je 0x47c6ec
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
jmp 0x47c6ee
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
push 0x20
mov byte [esp + 0xec], 7
call fcn.004bb163
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0xe8], 8
je 0x47c72b
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
jmp 0x47c72d
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edi
push 0x20
mov byte [esp + 0xec], 9
call fcn.004bb163
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0xe8], 0xa
je 0x47c774
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.00480020
mov edi, eax
xor ebx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebx
mov esi, dword [0x51809c]
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xb
call fcn.0044bf60
mov dword [esp + 0x54], 0x4ef92c
mov dword [esp + 0x6c], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x48]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x34]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x70], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [edx], ebx
mov eax, dword [ecx]
cmp eax, ebx
mov ebx, dword [ebp + 0x10]
mov byte [esp + 0xe8], 0xc
mov dword [0x5180a0], eax
je 0x47c844
xor edx, edx
mov eax, 0x518080
add ecx, 4
cmp edx, dword [ebp + 0x30]
jge 0x47c806
mov esi, dword [ecx]
jmp 0x47c80c
mov esi, dword [0x518078]
mov dword [eax], esi
add eax, 4
inc edx
add ecx, 4
cmp eax, 0x51809c
jl 0x47c7fd
mov eax, dword [0x518080]
test eax, eax
je 0x47c844
mov eax, dword [ebp + 8]
push eax
push str.spline_data_entered_with__d_data_points_n
call fcn.0047c2b0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
push edx
push ebx
call fcn.004835c0
add esp, 0x14
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push esi
dec eax
push ecx
push ebx
mov dword [0x5180ac], eax
call fcn.00483d90
add esp, 0xc
test eax, eax
je 0x47c96f
push eax
push str.spline_data__Error_number__d_in_input_data_n
call fcn.0047c2b0
add esp, 8
mov dword [esp + 0x54], 0x4ef92c
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xd
call fcn.00486610
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xb
mov dword [esp + 0x54], 0x4ef928
call fcn.00486150
mov ecx, dword [edi + 0x1c]
mov byte [esp + 0xe8], 9
dec ecx
mov eax, ecx
mov dword [edi + 0x1c], ecx
test eax, eax
jne 0x47c8c8
test edi, edi
je 0x47c8c8
push 1
mov ecx, edi
call fcn.00482510
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 7
mov edx, dword [ecx + 0x1c]
dec edx
mov eax, edx
mov dword [ecx + 0x1c], edx
test eax, eax
jne 0x47c8ec
test ecx, ecx
je 0x47c8ec
push 1
call fcn.00482510
mov edx, dword [esp + 0x3c]
mov byte [esp + 0xe8], 5
lea eax, [edx + 0x1c]
mov edx, dword [edx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47c916
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47c916
push 1
call fcn.00482510
mov eax, dword [esp + 0x30]
mov byte [esp + 0xe8], 3
add eax, 0x1c
mov edx, dword [eax]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47c93f
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x47c93f
push 1
call fcn.00482510
mov ecx, dword [esp + 0x20]
mov byte [esp + 0xe8], 1
mov edx, dword [ecx + 0x1c]
lea eax, [ecx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47cb24
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x47cb24
jmp 0x47cb1d
mov eax, dword [0x5180ac]
mov dword [esp + 0x2c], 0
test eax, eax
jl 0x47c9f5
lea edx, [esp + 0xc]
lea ecx, [esp + 0x84]
push edx
call fcn.0047e0b0
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
jne 0x47ca1e
mov eax, dword [esp + 0x88]
test eax, eax
je 0x47c9af
mov esi, dword [eax]
jmp 0x47c9b1
xor esi, esi
push 0x18
call fcn.004bb163
add esp, 4
test eax, eax
je 0x47c9ce
mov ecx, 6
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x38]
jmp 0x47c9d0
xor eax, eax
lea edx, [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x5c]
call fcn.00486410
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x5180ac]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x47c980
mov esi, dword [ebp + 0x18]
cmp dword [ebp + 8], 2
jne 0x47cb61
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
push ecx
push edx
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.004837e0
mov edi, dword [esp + 0x48]
add esp, 0x10
jmp 0x47dade
mov eax, dword [ebp + 8]
push eax
push str.spline_data__Less_than__d_points_in_input_data_n
call fcn.0047c2b0
add esp, 8
mov dword [esp + 0x54], 0x4ef92c
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xe
call fcn.00486610
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xb
mov dword [esp + 0x54], 0x4ef928
call fcn.00486150
mov ecx, dword [edi + 0x1c]
mov byte [esp + 0xe8], 9
dec ecx
mov eax, ecx
mov dword [edi + 0x1c], ecx
test eax, eax
jne 0x47ca83
test edi, edi
je 0x47ca83
push 1
mov ecx, edi
call fcn.00482510
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 7
mov edx, dword [ecx + 0x1c]
dec edx
mov eax, edx
mov dword [ecx + 0x1c], edx
test eax, eax
jne 0x47caa7
test ecx, ecx
je 0x47caa7
push 1
call fcn.00482510
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0xe8], 5
mov edx, dword [ecx + 0x1c]
lea eax, [ecx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47cad1
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47cad1
push 1
call fcn.00482510
mov edx, dword [esp + 0x30]
mov byte [esp + 0xe8], 3
lea eax, [edx + 0x1c]
mov edx, dword [edx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47cafb
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x47cafb
push 1
call fcn.00482510
mov eax, dword [esp + 0x20]
mov byte [esp + 0xe8], 1
add eax, 0x1c
mov edx, dword [eax]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47cb24
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x47cb24
push 1
call fcn.00482510
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [ecx + 0x1c]
dec eax
mov dword [ecx + 0x1c], eax
jne 0x47cb47
test ecx, ecx
je 0x47cb47
push 1
call fcn.00482510
mov eax, 3
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x54]
call fcn.00486300
lea ecx, [esp + 0x54]
mov edi, eax
call fcn.0047dcd0
lea ecx, [esp + 0x54]
call fcn.00486300
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, eax
call fcn.0047dd00
mov eax, dword [eax]
test eax, eax
mov dword [0x51807c], eax
je 0x47cbbe
cmp dword [ebp + 8], 4
jge 0x47cbbe
mov eax, dword [0x518078]
mov dword [0x51807c], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.0047dce0
mov edx, dword [eax]
mov eax, dword [ebp + 0x1c]
fld qword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x74], edx
fmul qword [0x4f1fa0]
mov edx, dword [ebp + 0x58]
mov dword [0x5180c0], eax
mov eax, dword [ebp + 0x54]
mov dword [0x5180c4], ecx
mov ecx, dword [ebp + 0x50]
push edx
mov edx, dword [ebp + 0x4c]
push eax
fstp qword [esp + 0x94]
mov eax, dword [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
fld qword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
push eax
fmul qword [0x4f1d20]
mov eax, dword [ebp + 0x14]
push ecx
push edx
push esi
push eax
lea ecx, [esp + 0x78]
fstp qword [0x518070]
push ebx
push ecx
call fcn.00483010
mov eax, dword [0x51807c]
add esp, 0x2c
test eax, eax
je 0x47cc47
mov edx, dword [0x5180ac]
dec edx
mov dword [0x5180a8], edx
jmp 0x47cc51
mov eax, dword [0x5180ac]
mov dword [0x5180a8], eax
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
lea eax, [ecx - 1]
mov ecx, edi
push eax
call fcn.0047f880
mov edx, eax
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], eax
call fcn.00486300
push 0
mov ecx, edi
mov esi, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.0047f880
mov edx, eax
xor eax, eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x2c], eax
mov dword [edx], eax
mov dword [edx + 4], eax
call fcn.004861a0
test eax, eax
je 0x47cd29
lea ecx, [esp + 0x54]
call fcn.00486300
lea ecx, [esp + 0xc8]
push esi
push ecx
mov ecx, eax
mov dword [esp + 0x58], eax
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb0]
call fcn.0047dd70
fadd qword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc eax
push eax
mov dword [esp + 0x30], eax
fstp qword [esp + 0x48]
call fcn.0047f880
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
mov dword [eax], edx
mov dword [eax + 4], ecx
lea ecx, [esp + 0x54]
call fcn.004861a0
test eax, eax
jne 0x47ccb7
mov eax, dword [0x51809c]
mov edi, dword [esp + 0x38]
mov esi, dword [ebp + 0x3c]
test eax, eax
je 0x47d770
mov edx, dword [esp + 0x70]
mov eax, dword [ebx + 4]
mov ecx, dword [0x51807c]
inc edx
mov dword [esp + 0x70], edx
mov edx, dword [0x518078]
mov dword [0x5180a4], eax
dec eax
test ecx, ecx
mov dword [esp + 0x50], edx
mov dword [0x518068], eax
je 0x47cd6d
mov dword [0x5180a4], eax
mov ecx, dword [ebp + 0x38]
mov edi, dword [esp + 0x1c]
lea eax, [eax + eax*2 + 1]
xor esi, esi
mov dword [ecx], eax
mov eax, dword [ebx + 4]
dec eax
mov ecx, edi
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.0047f880
mov edx, eax
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x10], ecx
mov ecx, ebx
mov dword [ebx + 0x14], eax
call fcn.004861a0
test eax, eax
je 0x47ce1a
mov ecx, ebx
call fcn.00486300
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
push eax
call fcn.0047f880
mov edx, dword [eax]
mov ecx, edi
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x80], eax
mov eax, esi
fld qword [esp + 0x7c]
fsub qword [esp + 0x44]
push eax
inc esi
fstp qword [esp + 0x10]
call fcn.0047f880
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], ecx
mov ecx, ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
call fcn.004861a0
test eax, eax
jne 0x47cdb5
mov eax, dword [0x5180a0]
test eax, eax
je 0x47ce90
mov eax, dword [0x518088]
test eax, eax
je 0x47ce90
push str.spline_data__Chord_lengths_of_spans
call fcn.0047c2b0
mov eax, dword [ebx + 4]
add esp, 4
xor esi, esi
dec eax
test eax, eax
jle 0x47ce83
mov eax, esi
mov ecx, 6
cdq
idiv ecx
test edx, edx
jne 0x47ce5e
push 0x50a5a4
call fcn.0047c2b0
add esp, 4
push esi
mov ecx, edi
call fcn.0047f880
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
push str._12.4f
call fcn.0047c2b0
mov eax, dword [ebx + 4]
add esp, 0xc
inc esi
dec eax
cmp esi, eax
jl 0x47ce43
push 0x50a5a4
call fcn.0047c2b0
add esp, 4
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x34]
xor esi, esi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x14], esi
mov edx, dword [0x5180ac]
or edi, 0xffffffff
add eax, edx
mov dword [esp + 0x14], edi
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], esi
call fcn.0047f880
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, dword [0x5180ac]
test eax, eax
jl 0x47d049
cmp esi, dword [esp + 0x2c]
jne 0x47cf96
mov ecx, dword [esp + 0x34]
inc edi
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x30]
push eax
fstp qword [esp + 0x10]
call fcn.0047f880
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [eax], edx
push esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
call fcn.0047f880
mov edx, dword [eax]
mov ecx, ebx
mov dword [esp + 0x44], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
call fcn.004861a0
test eax, eax
je 0x47d049
mov ecx, ebx
call fcn.00486300
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
cmp edx, ecx
jne 0x47cf8b
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
inc edi
mov dword [esp + 0x14], edi
lea eax, [edx + esi]
fild dword [esp + 0x14]
push eax
fstp qword [esp + 0x10]
call fcn.0047f880
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, ebx
mov dword [eax + 4], edx
call fcn.004861a0
test eax, eax
je 0x47d049
mov ecx, ebx
call fcn.00486300
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x47d03b
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
jne 0x47cfd5
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0047f880
mov ecx, dword [esp + 0x28]
push esi
mov dword [esp + 0x1c], eax
call fcn.0047f880
fld qword [eax]
fsub qword [esp + 0x44]
mov ecx, dword [esp + 0x18]
fdiv qword [ecx]
jmp 0x47cfdb
fld qword [0x4e9da8]
fcom qword [0x4f1f98]
fnstsw ax
test ah, 0x41
je 0x47cff0
fstp st(0)
fld qword [0x4f1f98]
fld qword [0x4e7f50]
fsub qword [0x4f1f98]
fstp qword [esp + 0xc]
fcom qword [esp + 0xc]
fnstsw ax
test ah, 1
jne 0x47d011
fstp st(0)
fld qword [esp + 0xc]
fild dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
fadd st(1)
lea eax, [edx + esi]
push eax
fstp qword [esp + 0x10]
fstp st(0)
call fcn.0047f880
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [0x5180ac]
inc esi
cmp esi, eax
jle 0x47cede
mov eax, dword [0x5180a0]
test eax, eax
je 0x47d0db
mov eax, dword [0x518090]
test eax, eax
je 0x47d0db
push str.spline_data__Initial_parameters_n
call fcn.0047c2b0
mov eax, dword [esp + 0x5c]
add esp, 4
xor esi, esi
test eax, eax
jle 0x47d0c7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add eax, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
push esi
mov dword [esp + 0x1c], eax
call fcn.0047f880
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edi, eax
call fcn.0047f880
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [edi]
mov edx, dword [eax]
mov eax, dword [edi + 4]
push edx
push eax
push ecx
push esi
push str.__Point__5d____Chord_12.4f____Initial_parameter_12.6f_n
call fcn.0047c2b0
mov eax, dword [esp + 0x70]
add esp, 0x18
inc esi
cmp esi, eax
jl 0x47d076
mov edx, dword [0x5180ac]
push edx
push str.__poif___d_n
call fcn.0047c2b0
add esp, 8
mov eax, dword [0x5180a4]
mov ecx, dword [esp + 0x24]
lea eax, [ecx + eax - 1]
mov ecx, dword [esp + 0x20]
push eax
call fcn.0047f880
mov dword [eax], 0
mov esi, 1
mov dword [eax + 4], 0
mov eax, dword [0x518068]
cmp eax, esi
jle 0x47d19d
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0047f880
mov ecx, dword [esp + 0x1c]
lea edi, [esi - 1]
push edi
mov dword [esp + 0x1c], eax
call fcn.0047f880
mov edx, dword [esp + 0x18]
fld qword [eax]
fadd qword [edx]
fst qword [esp + 0xc]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
jne 0x47d171
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add eax, esi
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x1c], eax
call fcn.0047f880
fld qword [eax]
fdiv qword [esp + 0xc]
mov ecx, dword [esp + 0x18]
fstp qword [ecx]
jmp 0x47d18f
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [edx + esi]
push eax
call fcn.0047f880
mov dword [eax], 0
mov dword [eax + 4], 0xbff00000
mov eax, dword [0x518068]
inc esi
cmp esi, eax
jl 0x47d111
mov eax, dword [0x51807c]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x47d21e
mov eax, dword [0x5180a4]
push 0
mov ecx, esi
lea edi, [eax - 1]
call fcn.0047f880
push edi
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0047f880
mov ecx, dword [esp + 0x18]
fld qword [eax]
fadd qword [ecx]
fst qword [esp + 0xc]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
jne 0x47d214
mov edx, dword [0x5180a4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
lea edi, [edx - 1]
call fcn.0047f880
push edi
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0047f880
fld qword [eax]
fdiv qword [esp + 0xc]
mov ecx, dword [esp + 0x18]
fstp qword [ecx]
jmp 0x47d2d6
mov edx, dword [esp + 0x24]
push edx
jmp 0x47d2c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
call fcn.0047f880
mov dword [eax], 0
push 0
mov ecx, esi
mov dword [eax + 4], 0
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x47d26c
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0047f880
mov dword [eax], 0
mov dword [eax + 4], 0xbff00000
mov edx, dword [0x5180a4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [eax + edx - 1]
push eax
call fcn.0047f880
mov dword [eax], 0
mov dword [eax + 4], 0x3ff00000
mov ecx, dword [0x5180a4]
lea eax, [ecx - 2]
mov ecx, esi
push eax
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x47d2d6
mov edx, dword [0x5180a4]
mov eax, dword [esp + 0x24]
lea eax, [eax + edx - 1]
push eax
mov ecx, dword [esp + 0x24]
call fcn.0047f880
mov dword [eax], 0
mov dword [eax + 4], 0xbff00000
mov eax, dword [0x5180a0]
test eax, eax
je 0x47d357
mov eax, dword [0x51808c]
test eax, eax
je 0x47d357
push str.spline_data__Data_point_interpolation_ratios
call fcn.0047c2b0
mov eax, dword [0x5180a4]
add esp, 4
xor esi, esi
test eax, eax
jle 0x47d34a
mov eax, esi
mov ecx, 6
cdq
idiv ecx
test edx, edx
jne 0x47d31b
push 0x50a5a4
call fcn.0047c2b0
add esp, 4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [edx + esi]
push eax
call fcn.0047f880
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str._12.4f
call fcn.0047c2b0
mov eax, dword [0x5180a4]
add esp, 0xc
inc esi
cmp esi, eax
jl 0x47d300
push 0x50a5a4
call fcn.0047c2b0
add esp, 4
mov edi, dword [esp + 0x38]
mov esi, dword [ebp + 0x44]
mov dword [esp + 0x14], 1
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x3c]
push eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
push eax
sub esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004824f0
sub esp, 8
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x108], 0xf
call fcn.004824f0
lea ecx, [esp + 0x70]
mov byte [esp + 0x104], 0xc
push ecx
call fcn.004804f0
add esp, 0x20
mov dword [esp + 0xc], eax
test eax, eax
jne 0x47d86d
sub esp, 8
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], edi
mov edx, dword [edi + 0x1c]
inc edx
mov dword [edi + 0x1c], edx
mov dword [eax + 4], 0
sub esp, 8
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0xfc], 0x11
call fcn.004824f0
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x3c]
push eax
push esi
push ecx
lea edx, [esp + 0x4c]
sub esp, 8
mov byte [esp + 0x10c], 0x12
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.004824f0
lea eax, [esp + 0x78]
mov byte [esp + 0x10c], 0xc
push eax
call fcn.00482530
add esp, 0x28
test eax, eax
jne 0x47d9a5
mov eax, dword [0x5180a0]
test eax, eax
je 0x47d538
mov eax, dword [0x518080]
test eax, eax
je 0x47d46c
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
push str.spline_data__Iterations__d__d__Max_error__12.6f_n
call fcn.0047c2b0
add esp, 0x14
mov eax, dword [0x518094]
test eax, eax
je 0x47d4e7
push str.spline_data__Max_distance_of_given_point_from_curve_in_each_span
call fcn.0047c2b0
mov eax, dword [0x518068]
add esp, 4
xor esi, esi
test eax, eax
jle 0x47d4d7
mov eax, esi
mov ecx, 6
cdq
idiv ecx
test edx, edx
jne 0x47d4a8
push 0x50a5a4
call fcn.0047c2b0
add esp, 4
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + esi]
push eax
call fcn.0047f880
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push str._12.4f
call fcn.0047c2b0
mov eax, dword [0x518068]
add esp, 0xc
inc esi
cmp esi, eax
jl 0x47d48d
push 0x50a5a4
call fcn.0047c2b0
mov esi, dword [ebp + 0x44]
add esp, 4
mov eax, dword [0x518090]
test eax, eax
je 0x47d538
push str.spline_data__Revised_parameters_n
call fcn.0047c2b0
mov eax, dword [esp + 0x5c]
add esp, 4
xor esi, esi
test eax, eax
jle 0x47d535
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add eax, esi
push eax
call fcn.0047f880
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
push esi
push str.__Point__5d____Parameter_12.6f_n
call fcn.0047c2b0
mov eax, dword [esp + 0x68]
add esp, 0x10
inc esi
cmp esi, eax
jl 0x47d507
mov esi, dword [ebp + 0x44]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x47d366
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x47d560
mov eax, dword [esp + 0x74]
test eax, eax
je 0x47d75d
mov esi, dword [ebp + 0x44]
fld qword [esi]
fcomp qword [esp + 0x8c]
fnstsw ax
test ah, 0x41
jne 0x47d75d
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
xor edi, edi
and eax, 4
mov dword [ebx + 0x14], edi
add eax, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [0x518068]
cmp eax, edi
jle 0x47d72a
mov ecx, ebx
call fcn.004861a0
mov ecx, ebx
call fcn.00486300
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.0047f880
fld qword [eax]
fcomp qword [esp + 0x8c]
fnstsw ax
test ah, 0x41
jne 0x47d70f
mov ecx, dword [esp + 0x38]
push edi
call fcn.0047f880
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
cmp ecx, edx
jl 0x47d70f
lea esi, [edi - 1]
test esi, esi
jge 0x47d60c
mov eax, dword [0x51807c]
test eax, eax
mov eax, dword [0x518068]
je 0x47d608
lea esi, [eax - 1]
test esi, esi
jl 0x47d65e
mov ecx, dword [esp + 0x38]
push esi
call fcn.0047f880
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jl 0x47d659
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add esi, eax
add eax, edi
push eax
mov ebx, ecx
call fcn.0047f880
push esi
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.0047f880
mov ecx, dword [esp + 0xc]
fld qword [ecx]
fmul qword [0x4ef458]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x47d70f
mov eax, dword [0x518068]
lea esi, [edi + 1]
cmp esi, eax
jl 0x47d675
mov ecx, dword [0x51807c]
test ecx, ecx
je 0x47d671
xor esi, esi
cmp esi, eax
jge 0x47d6be
mov ecx, dword [esp + 0x38]
push esi
call fcn.0047f880
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
cmp ecx, edx
jl 0x47d6be
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add esi, eax
add eax, edi
push eax
mov ebx, ecx
call fcn.0047f880
push esi
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.0047f880
mov ecx, dword [esp + 0xc]
fld qword [ecx]
fmul qword [0x4ef458]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x47d70f
mov edx, dword [0x51809c]
push 4
mov dword [esp + 0x54], edx
call fcn.004bb163
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x47d6ef
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov esi, ecx
mov eax, dword [eax]
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ecx], eax
jmp 0x47d6f1
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.004861c0
lea ecx, [esp + 0x78]
push esi
push ecx
mov ecx, ebx
call fcn.00486410
mov ecx, ebx
call fcn.004861a0
mov edx, dword [esp + 0x18]
mov ebx, dword [ebp + 0x10]
inc edi
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [0x518068]
cmp edi, eax
jl 0x47d5a1
mov eax, dword [0x5180a0]
test eax, eax
je 0x47d75d
mov eax, dword [0x518080]
test eax, eax
je 0x47d75d
mov ecx, dword [esp + 0x70]
inc ecx
push ecx
push str.spline_data_ready_for_iteration__d_n
call fcn.0047c2b0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push edx
push eax
push ebx
call fcn.004835c0
add esp, 0x14
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x47cd3d
mov esi, dword [ebp + 0x3c]
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x40]
push ecx
push edx
push eax
push esi
lea edx, [esp + 0x40]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
call fcn.004824f0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x6c]
push eax
push ecx
push edx
call fcn.0047e0e0
mov ecx, dword [ebp + 0x14]
add esp, 0x24
xor eax, eax
mov edx, dword [ecx + 0x10]
test edx, edx
sete al
xor edx, edx
test eax, eax
setne dl
mov eax, edx
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x47dade
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0xc], eax
dec eax
mov ecx, ebx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
call fcn.00486300
mov edi, dword [eax]
mov eax, dword [esp + 0xc]
add eax, 0xfffffffe
test eax, eax
jl 0x47d860
lea ecx, [eax + eax*2]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
mov ecx, ebx
call fcn.004861c0
mov ecx, ebx
call fcn.00486300
mov ecx, dword [eax]
mov dword [esp + 0xc], eax
cmp ecx, edi
jne 0x47d844
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push edx
push eax
mov ecx, esi
call fcn.004861e0
mov ecx, esi
call fcn.00486370
mov ecx, esi
call fcn.00486370
mov ecx, esi
call fcn.00486370
mov eax, dword [ebp + 0x38]
add dword [eax], 0xfffffffd
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x50]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x14]
sub ecx, 3
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
jne 0x47d800
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
jmp 0x47dae2
mov dword [esp + 0x54], 0x4ef92c
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0x10
call fcn.00486610
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xb
mov dword [esp + 0x54], 0x4ef928
call fcn.00486150
mov ecx, dword [edi + 0x1c]
mov byte [esp + 0xe8], 9
dec ecx
mov eax, ecx
mov dword [edi + 0x1c], ecx
test eax, eax
jne 0x47d8c8
test edi, edi
je 0x47d8c8
mov ecx, edi
call fcn.0047f860
push edi
call fcn.004bb18c
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 7
mov edx, dword [ecx + 0x1c]
dec edx
mov eax, edx
mov dword [ecx + 0x1c], edx
test eax, eax
jne 0x47d8ec
test ecx, ecx
je 0x47d8ec
push 1
call fcn.00482510
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0xe8], 5
mov edx, dword [ecx + 0x1c]
lea eax, [ecx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47d916
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47d916
push 1
call fcn.00482510
mov edx, dword [esp + 0x30]
mov byte [esp + 0xe8], 3
lea eax, [edx + 0x1c]
mov edx, dword [edx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47d940
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x47d940
push 1
call fcn.00482510
mov eax, dword [esp + 0x20]
mov byte [esp + 0xe8], 1
add eax, 0x1c
mov edx, dword [eax]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47d969
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x47d969
push 1
call fcn.00482510
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [ecx + 0x1c]
dec eax
mov dword [ecx + 0x1c], eax
jne 0x47d98c
test ecx, ecx
je 0x47d98c
push 1
call fcn.00482510
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x54], 0x4ef92c
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0x13
call fcn.00486610
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xb
mov dword [esp + 0x54], 0x4ef928
call fcn.00486150
mov ecx, dword [edi + 0x1c]
mov byte [esp + 0xe8], 9
dec ecx
mov eax, ecx
mov dword [edi + 0x1c], ecx
test eax, eax
jne 0x47da00
test edi, edi
je 0x47da00
mov ecx, edi
call fcn.0047f860
push edi
call fcn.004bb18c
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 7
mov edx, dword [ecx + 0x1c]
dec edx
mov eax, edx
mov dword [ecx + 0x1c], edx
test eax, eax
jne 0x47da24
test ecx, ecx
je 0x47da24
push 1
call fcn.00482510
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0xe8], 5
mov edx, dword [ecx + 0x1c]
lea eax, [ecx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47da4e
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47da4e
push 1
call fcn.00482510
mov edx, dword [esp + 0x30]
mov byte [esp + 0xe8], 3
lea eax, [edx + 0x1c]
mov edx, dword [edx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47da78
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x47da78
push 1
call fcn.00482510
mov eax, dword [esp + 0x20]
mov byte [esp + 0xe8], 1
add eax, 0x1c
mov edx, dword [eax]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47daa1
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x47daa1
push 1
call fcn.00482510
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [ecx + 0x1c]
dec eax
mov dword [ecx + 0x1c], eax
jne 0x47dac4
test ecx, ecx
je 0x47dac4
push 1
call fcn.00482510
mov eax, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x28]
mov eax, dword [0x5180a0]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x47db2e
mov eax, dword [0x518080]
test eax, eax
je 0x47db2e
mov edx, dword [esp + 0x70]
push edx
push str.spline_data_finished_this_piece_after__d_iterations._n
call fcn.0047c2b0
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x44]
push ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push str.__R.m.s._error__12.6f__Max_error__12.6f_at_point__d_n
call fcn.0047c2b0
add esp, 0x20
mov dword [esp + 0x54], 0x4ef92c
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0x14
call fcn.00486610
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0xb
mov dword [esp + 0x54], 0x4ef928
call fcn.00486150
mov ecx, dword [edi + 0x1c]
mov byte [esp + 0xe8], 9
dec ecx
mov eax, ecx
mov dword [edi + 0x1c], ecx
test eax, eax
jne 0x47db94
test edi, edi
je 0x47db94
mov eax, dword [edi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [edi + 0x10]
push eax
call fcn.004bb18c
push edi
call fcn.004bb18c
add esp, 0xc
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0xe8], 7
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x47dbc8
test esi, esi
je 0x47dbc8
mov eax, dword [esi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [esi + 0x10]
push eax
call fcn.004bb18c
push esi
call fcn.004bb18c
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xe8], 5
add eax, 0x1c
mov edx, dword [eax]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47dc05
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x47dc05
mov eax, dword [esi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [esi + 0x10]
push eax
call fcn.004bb18c
push esi
call fcn.004bb18c
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov byte [esp + 0xe8], 3
mov edx, dword [ecx + 0x1c]
lea eax, [ecx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47dc43
mov esi, dword [esp + 0x30]
test esi, esi
je 0x47dc43
mov eax, dword [esi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [esi + 0x10]
push eax
call fcn.004bb18c
push esi
call fcn.004bb18c
add esp, 0xc
mov edx, dword [esp + 0x20]
mov byte [esp + 0xe8], 1
lea eax, [edx + 0x1c]
mov edx, dword [edx + 0x1c]
dec edx
mov ecx, edx
mov dword [eax], edx
test ecx, ecx
jne 0x47dc81
mov esi, dword [esp + 0x20]
test esi, esi
je 0x47dc81
mov eax, dword [esi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [esi + 0x10]
push eax
call fcn.004bb18c
push esi
call fcn.004bb18c
add esp, 0xc
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xe8], 0xffffffff
dec eax
mov dword [ebx + 0x1c], eax
jne 0x47dcb4
test ebx, ebx
je 0x47dcb4
mov eax, dword [ebx + 0x14]
push eax
call fcn.004bb18c
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.004bb18c
push ebx
call fcn.004bb18c
add esp, 0xc
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret