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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e4638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x180], 2
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov ecx, dword [0x518068]
lea eax, [ecx - 1]
mov ecx, dword [ebp + 0x2c]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jle 0x4825ca
mov edi, dword [ebp + 0x24]
lea ebx, [eax + 1]
lea esi, [ecx + eax]
sub edi, ecx
sub eax, ebx
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0x20]
lea edx, [edi + esi]
push edx
call fcn.0047f880
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
push esi
mov dword [eax + 4], 0
call fcn.0047f880
dec esi
dec ebx
mov dword [eax], 0
jne 0x48259e
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x2c], esi
mov eax, dword [ebx + 8]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], eax
call fcn.00486300
mov dword [esp + 0x38], eax
mov eax, dword [0x5180a8]
mov dword [esp + 0x10], esi
cmp eax, esi
mov esi, dword [ebp + 0xc]
jl 0x4829d0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
lea edi, [ecx + edx]
mov ecx, esi
push edi
call fcn.0047f880
fld qword [eax]
call fcn.004a3514
push edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0047f880
fild dword [esp + 0xc]
fsubr qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x4829b6
mov eax, dword [0x51807c]
test eax, eax
jne 0x482687
mov eax, dword [esp + 0x10]
mov ecx, dword [0x5180ac]
cmp eax, ecx
jne 0x482687
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xa0]
dec esi
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x14], esi
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x68]
mov dword [esp + 0x20], 3
rep movsd dword es:[edi], dword [esi]
jmp 0x482725
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x14]
lea esi, [esi + esi*2]
cmp esi, eax
jle 0x4826d3
lea ecx, [esi - 3]
lea edx, [esp + 0x84]
push ecx
push edx
mov ecx, ebx
call fcn.004861e0
mov ecx, ebx
call fcn.00486300
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push esi
push eax
mov ecx, ebx
call fcn.004861e0
mov ecx, ebx
call fcn.00486300
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov edi, 3
mov ecx, ebx
call fcn.004861a0
mov ecx, ebx
call fcn.00486300
mov dword [esi], eax
add esi, 4
dec edi
jne 0x4826e4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x148]
push edx
push eax
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x68]
mov dword [esp + 0x20], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
lea edx, [esp + 0x80]
push ecx
push edx
mov ecx, esi
call fcn.004861e0
mov ecx, esi
call fcn.00486300
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x160]
mov ecx, dword [esp + ecx*4 + 0x2c]
mov dword [esp + 0x14], ecx
push ecx
push edx
mov ecx, eax
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x4c]
lea eax, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x6c]
call fcn.00482ff0
fst qword [esp + 0x44]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x48279f
mov ecx, dword [0x4f1f98]
mov edx, dword [0x4f1f9c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x4c]
push eax
call fcn.00482ff0
fstp qword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
lea eax, [esp + 0xd4]
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.0047ffe0
mov edx, dword [esp + 0x44]
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0xe8]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.0047f7b0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, 6
lea edi, [esp + 0xb8]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x482864
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x482864
mov ecx, dword [0x4f1f9c]
mov edx, dword [0x4f1f98]
mov eax, dword [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0047dd00
cmp dword [eax], 0
je 0x482864
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xb8]
lea eax, [esp + 0x100]
push edx
push eax
mov ecx, edi
call fcn.00497ea0
mov ecx, 6
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x130]
push ecx
push edx
mov ecx, edi
call fcn.00497ea0
mov ecx, 6
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x118]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00497ee0
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4c]
call fcn.0047dd70
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x20]
fstp qword [esp + 0x14]
lea esi, [edx + eax]
push esi
call fcn.0047f880
fld qword [esp + 0x14]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x4828f5
mov edi, dword [ebp + 0x20]
push esi
mov ecx, edi
call fcn.0047f880
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x4828f8
mov edi, dword [ebp + 0x20]
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x48293f
mov ecx, dword [esp + 0x10]
mov edx, dword [0x5180a8]
cmp ecx, edx
je 0x48293f
mov edx, dword [ebp + 0x24]
mov ecx, edi
lea esi, [edx + eax - 1]
push esi
call fcn.0047f880
fld qword [esp + 0x14]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x48293f
push esi
mov ecx, edi
call fcn.0047f880
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x48298d
mov eax, dword [0x51807c]
test eax, eax
je 0x48298d
mov eax, dword [0x518068]
mov esi, dword [ebp + 0x24]
add eax, esi
mov ecx, edi
push eax
call fcn.0047f880
fld qword [esp + 0x14]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x48298d
mov ecx, dword [0x518068]
lea eax, [esi + ecx]
mov ecx, edi
push eax
call fcn.0047f880
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x18]
fld qword [esp + 0x14]
fcomp qword [edx]
fnstsw ax
test ah, 0x41
jne 0x4829b6
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [0x5180a8]
mov esi, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x4825fb
mov edx, dword [0x518068]
mov eax, dword [esp + 0xc]
mov edi, dword [ebp + 0x20]
dec edx
cmp eax, edx
je 0x482a8a
push str.spline_parameters__mismatch_in_counters_for_spans_n
call fcn.0047c2b0
mov ecx, dword [esi + 0x1c]
add esp, 4
dec ecx
mov byte [esp + 0x180], 1
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x482a1c
test esi, esi
je 0x482a1c
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov ecx, dword [edi + 0x1c]
mov byte [esp + 0x180], 0
dec ecx
mov eax, ecx
mov dword [edi + 0x1c], ecx
test eax, eax
jne 0x482a45
test edi, edi
je 0x482a45
mov ecx, edi
call fcn.0047f860
push edi
call fcn.004bb18c
add esp, 4
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x180], 0xffffffff
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
jne 0x482a70
test esi, esi
je 0x482a70
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x51807c]
test eax, eax
je 0x482abb
mov eax, dword [ebx + 8]
mov ecx, ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
call fcn.00486300
mov edi, dword [esp + 0x38]
mov ecx, 6
mov esi, eax
mov dword [esp + 0x2c], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, dword [eax + 8]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 8]
mov ecx, ebx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edi
call fcn.00486300
mov dword [esp + 0x38], eax
mov eax, dword [0x5180ac]
test eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edi
jle 0x482ec2
jmp 0x482b03
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, esi
add eax, edi
push eax
mov dword [esp + 0x18], eax
call fcn.0047f880
fld qword [eax]
call fcn.004a3514
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
push ecx
mov ecx, esi
fstp qword [esp + 0x40]
call fcn.0047f880
fld qword [eax]
fsub qword [esp + 0x3c]
fst qword [esp + 0x24]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x482be3
mov eax, dword [0x51807c]
test eax, eax
jne 0x482b68
cmp edi, dword [0x5180a8]
jne 0x482b68
dec dword [esp + 0xc]
jmp 0x482e9c
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x482b89
mov edx, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x20]
mov esi, edi
add eax, edx
sub esi, ecx
mov ecx, dword [ebp + 0x28]
push eax
dec esi
call fcn.0047f880
mov dword [eax], esi
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
lea eax, [eax + eax*2]
cmp eax, ecx
jle 0x482bb7
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call fcn.004861e0
mov ecx, ebx
call fcn.00486300
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov edi, 3
mov ecx, ebx
call fcn.004861a0
mov ecx, ebx
call fcn.00486300
mov dword [esi], eax
add esi, 4
dec edi
jne 0x482bc8
jmp 0x482e9c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push 0
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
lea edx, [esp + 0x130]
push ecx
push edx
call fcn.00497240
mov edx, dword [esp + 0x58]
mov ecx, 6
mov esi, eax
mov eax, dword [esp + 0x48]
lea edi, [esp + 0xc0]
push 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
lea eax, [esp + 0x168]
push edx
push eax
call fcn.00497240
mov ecx, 6
mov esi, eax
lea edi, [esp + 0xa8]
add esp, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call fcn.00486300
fld qword [eax + 0x10]
fsub qword [esp + 0xb0]
sub esp, 8
lea ecx, [esp + 0x108]
sub esp, 8
fstp qword [esp + 8]
fld qword [eax + 8]
fsub qword [esp + 0xb8]
sub esp, 8
fstp qword [esp + 8]
fld qword [eax]
fsub qword [esp + 0xb8]
fstp qword [esp]
call fcn.0044bf10
fld qword [esp + 0x78]
fmul qword [esp + 0x78]
fld qword [esp + 0x70]
fmul qword [esp + 0x70]
mov esi, eax
mov ecx, 6
lea edi, [esp + 0x4c]
faddp st(1)
fld qword [esp + 0x68]
fmul qword [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
faddp st(1)
fcom qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x482ce3
fstp st(0)
fld qword [0x4f1f98]
fld qword [esp + 0x5c]
fmul qword [esp + 0x78]
fld qword [esp + 0x54]
fmul qword [esp + 0x70]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [esp + 0x68]
faddp st(1)
fdiv st(1)
fstp qword [esp + 0x44]
fstp st(0)
fld qword [esp + 0x44]
fadd qword [esp + 0x24]
fcom qword [0x4e7f18]
fnstsw ax
test ah, 0x41
je 0x482d26
fstp st(0)
fld qword [0x4e7f18]
jmp 0x482d3b
fcom qword [0x4e7f10]
fnstsw ax
test ah, 1
jne 0x482d3b
fstp st(0)
fld qword [0x4e7f10]
fadd qword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
fstp qword [esp + 0x40]
call fcn.0047f880
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [eax], edx
mov edx, dword [esp + 0x48]
push edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0xec]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.0047ffe0
fld qword [esp + 0x5c]
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x88]
sub esp, 8
rep movsd dword es:[edi], dword [esi]
fsub qword [esp + 0xa0]
fstp qword [esp]
fld qword [esp + 0x5c]
fsub qword [esp + 0x98]
sub esp, 8
lea ecx, [esp + 0xe0]
fstp qword [esp]
fld qword [esp + 0x5c]
fsub qword [esp + 0x98]
sub esp, 8
fstp qword [esp]
call fcn.0044bf10
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x4c]
mov edx, dword [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x54]
fmul qword [esp + 0x54]
fld qword [esp + 0x5c]
fmul qword [esp + 0x5c]
faddp st(1)
fld qword [esp + 0x4c]
fmul qword [esp + 0x4c]
faddp st(1)
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x20]
fsqrt
lea esi, [edx + eax]
push esi
fstp qword [esp + 0x28]
call fcn.0047f880
fld qword [esp + 0x24]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x482e76
mov edi, dword [ebp + 0x20]
cmp esi, dword [edi + 4]
jl 0x482e55
lea ecx, [esi + 1]
lea edx, [esp + 0x80]
push ecx
push edx
mov ecx, edi
call fcn.00497f60
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
sete cl
mov eax, ecx
xor edx, edx
test eax, eax
setne dl
mov eax, edx
test eax, eax
je 0x482e55
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], 0xc
jmp 0x482e69
cmp esi, dword [edi]
jl 0x482e5e
lea eax, [esi + 1]
mov dword [edi], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
imul eax, esi
add eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x18]
fld qword [esp + 0x24]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x482e9c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
call fcn.004861a0
mov ecx, dword [esp + 0x10]
mov eax, dword [0x5180ac]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x482afc
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0xc]
jmp 0x482ec5
mov edi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [esp + 0xc]
lea ebx, [edx + ecx]
mov ecx, dword [edi + 4]
cmp ebx, ecx
jl 0x482f14
lea edx, [ebx + 1]
lea eax, [esp + 0x64]
push edx
push eax
mov ecx, edi
call fcn.00497f60
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
sete cl
mov eax, ecx
xor edx, edx
test eax, eax
setne dl
mov eax, edx
test eax, eax
je 0x482f0f
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x18], 0xc
mov eax, dword [0x5180ac]
jmp 0x482f2d
mov eax, dword [0x5180ac]
cmp ebx, dword [edi]
jl 0x482f22
lea eax, [ebx + 1]
mov dword [edi], eax
mov eax, dword [0x5180ac]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x10]
imul ecx, ebx
add ecx, edx
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x180], 1
sub eax, ebx
dec eax
mov dword [ecx], eax
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x482f6a
test esi, esi
je 0x482f6a
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 esi, dword [ebp + 0x20]
mov byte [esp + 0x180], 0
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x482fa1
test esi, esi
je 0x482fa1
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 [edi + 0x1c]
mov dword [esp + 0x180], 0xffffffff
dec eax
mov dword [edi + 0x1c], eax
jne 0x482fd4
test edi, edi
je 0x482fd4
mov ecx, dword [edi + 0x14]
push ecx
call fcn.004bb18c
mov edx, dword [edi + 0x10]
push edx
call fcn.004bb18c
push edi
call fcn.004bb18c
add esp, 0xc
mov ecx, dword [esp + 0x178]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret