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

Disassembly:
push 0xffffffffffffffff
push 0x5f4993
mov eax, dword fs:[0]
push eax
sub esp, 0x390
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x3a4]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x78], edi
call fcn.004f0a10
xor esi, esi
mov dword [edi], vtable.CGeom_CNurbs.0
mov ebp, 1
mov dword [esp + 0x3ac], esi
mov dword [edi + 0xa0], ebp
mov dword [edi + 0xa4], esi
mov dword [edi + 0x9c], esi
mov dword [edi + 0xac], ebp
mov dword [edi + 0xb0], esi
mov dword [edi + 0xa8], esi
mov dword [edi + 0xb8], ebp
mov dword [edi + 0xbc], esi
mov dword [edi + 0xb4], esi
mov dword [edi + 0xc4], ebp
mov dword [edi + 0xc8], esi
mov dword [edi + 0xc0], esi
mov dword [edi + 0xd0], ebp
mov dword [edi + 0xd4], esi
mov dword [edi + 0xcc], esi
cmp byte [0x616388], 0
mov byte [esp + 0x3ac], 5
jne 0x5222df
mov eax, dword [esp + 0x3b4]
movsd xmm0, qword [0x5fb270]
movsd qword [eax], xmm0
jmp 0x522a94
mov ebx, dword [esp + 0x3cc]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x5c], ebx
call fcn.00521e90
push 0x1e
lea ecx, [esp + 0x30]
mov byte [esp + 0x3b0], 6
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0xa
call fcn.004587b0
movsd xmm0, qword [0x5fb270]
mov byte [esp + 0x3ac], 7
movsd qword [esp + 0x18], xmm0
cmp ebx, ebp
jne 0x52235d
mov eax, dword [esp + 0x3c8]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x522342
jmp dword [eax*4 + 0x522ab4]
movsd xmm0, qword [0x5fe8e8]
jmp case.0x522342.3
movsd xmm0, qword [0x5fe8d8]
jmp case.0x522342.3
cmp ebx, 2
jne 0x52238a
mov eax, dword [esp + 0x3c8]
sub eax, 3
je 0x522380
sub eax, ebp
je 0x522376
sub eax, ebp
jne case.default.0x522342
movsd xmm0, qword [0x5fb9c8]
jmp case.0x522342.3
movsd xmm0, qword [0x5fe698]
jmp case.0x522342.3
cmp ebx, 3
jne case.default.0x522342
cmp dword [esp + 0x3c8], 4
jne case.default.0x522342
movsd xmm0, qword [0x5fe8e0]
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x3bc]
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], esi
call fcn.00412880
mov ecx, dword [esp + 0x3b8]
push esi
push ebp
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x3bc], 8
call fcn.0051fa70
movsd xmm1, qword [0x5fb270]
mov eax, dword [esp + 0x60]
movsd xmm0, qword [eax + ebp*8 - 8]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [0x5fd068]
add esp, 0x10
comisd xmm1, xmm0
jbe 0x522417
divsd xmm0, qword [0x5fcc50]
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
mov ebx, dword [esp + 0x3c8]
fmul qword [0x5fa920]
mov edx, dword [esp + 0x3c8]
lea ecx, [esp + 0xa4]
push ecx
fmul qword [esp + 0x1c]
sub esp, 8
inc ebx
lea ecx, [esp + 0x280]
fst qword [esp + 0x24]
mov dword [esp + 0x88], ebx
fstp qword [esp]
push edx
call fcn.00522000
lea eax, [ebx + ebx*4]
add eax, eax
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3b0], 9
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x14
call fcn.00412980
push ebx
lea ecx, [esp + 0x84]
mov byte [esp + 0x3b0], 0xa
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], esi
mov dword [esp + 0x84], esi
call fcn.00412980
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
push 0xa
lea ecx, [esp + 0xa8]
mov byte [esp + 0x3b0], 0xc
call fcn.0059f890
push 1
lea ecx, [esp + 0xa8]
call fcn.0059f870
push esi
lea ecx, [esp + 0xa8]
call fcn.0059f880
fld qword [esp + 0x18]
sub esp, 8
lea ecx, [esp + 0xac]
fstp qword [esp]
call fcn.0059f8a0
mov ecx, dword [esp + 0x3b8]
mov eax, dword [ecx]
movq xmm0, qword [eax]
mov edx, dword [esp + 0x20]
movq qword [edx], xmm0
movq xmm0, qword [eax + 8]
mov ecx, dword [esp + 0x20]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
movq qword [edx + 0x10], xmm0
mov esi, 1
mov dword [esp + 0x14], esi
lea eax, [ebp - 1]
mov dword [ecx], 0
cmp dword [ecx], eax
jge 0x522669
jmp 0x522564
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + esi*4 - 4]
mov edx, dword [esp + 0x39c]
mov eax, ebp
sub eax, ecx
cvtsi2sd xmm0, eax
cvtsi2sd xmm1, edx
divsd xmm0, xmm1
cvttsd2si edi, xmm0
cmp edi, 4
jl 0x52258b
lea eax, [edx + edx]
mov edx, dword [esp + 0x3b8]
lea eax, [eax + ecx - 1]
push eax
push ecx
push ebp
lea ecx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x288]
call fcn.005220c0
test al, al
je 0x522665
cmp esi, dword [esp + 0x34]
mov edi, dword [esp + 0x280]
jl 0x5225cd
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x30]
call fcn.004587b0
mov ecx, dword [esp + 0x2c]
mov dword [ecx + esi*4], edi
inc esi
cmp ebx, 1
mov dword [esp + 0x18], esi
jle 0x522654
mov edi, dword [esp + 0x14]
mov ebp, 0x18
dec ebx
jmp 0x5225f0
cmp edi, dword [esp + 0x28]
mov edx, dword [esp + 0x284]
lea esi, [edx + ebp]
jl 0x52260d
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x24]
call fcn.00412980
mov edx, dword [esp + 0x20]
movq xmm0, qword [esi]
lea ecx, [edi + edi*2]
movq qword [edx + ecx*8], xmm0
movq xmm0, qword [esi + 8]
lea eax, [edx + ecx*8]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
mov edi, dword [esp + 0x14]
inc edi
add ebp, 0x18
sub ebx, 1
mov dword [esp + 0x14], edi
jne 0x5225f0
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x3bc]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
lea eax, [ebp - 1]
cmp dword [ecx + esi*4 - 4], eax
jl 0x522560
mov edi, dword [esp + 0x78]
push 0xa
lea ecx, [esp + 0xa8]
call fcn.0059f890
mov edx, dword [esp + 0x3d0]
push edx
lea ecx, [esp + 0xa8]
call fcn.0059f880
movsd xmm0, qword [esp + 0x60]
mulsd xmm0, qword [esp + 0x3d4]
sub esp, 8
lea ecx, [esp + 0xac]
movsd qword [esp], xmm0
call fcn.0059f8a0
dec esi
push esi
mov esi, dword [esp + 0x3cc]
push 0
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00527f30
xor eax, eax
add esp, 0x10
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x3ac], 0xd
cmp byte [esp + 0x3d0], al
je 0x522720
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x48]
call fcn.00412880
xor eax, eax
cmp dword [esp + 0x14], eax
jle 0x522720
movsd xmm0, qword [0x5fb270]
jmp 0x522710
mov edx, dword [esp + 0x44]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, dword [esp + 0x14]
jl 0x522710
mov eax, esi
sub eax, dword [esp + 0x3cc]
cmp eax, 1
jge 0x522735
lea ecx, [esi - 1]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x5c]
cmp eax, 1
jne 0x5228a6
lea edx, [esp + 0x38]
push edx
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.005296d0
add esp, 0x10
mov esi, dword [sym.imp.MSVCR90.dll_free]
cmp byte [esp + 0x3d0], 0
je 0x5227a0
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
call fcn.00412880
xor eax, eax
cmp dword [esp + 0x14], eax
jle 0x5227a0
movsd xmm0, qword [0x5fb270]
jmp 0x522790
mov ecx, dword [esp + 0x44]
movsd qword [ecx + eax*8], xmm0
inc eax
cmp eax, dword [esp + 0x14]
jl 0x522790
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push ebx
push edx
mov ecx, edi
call fcn.00509de0
mov eax, dword [esp + 0x3c0]
xor ebx, ebx
cmp eax, ebx
je 0x52298e
mov ecx, dword [esp + 0x3c4]
cmp ecx, ebx
je 0x52298e
movq xmm0, qword [eax]
mov edx, dword [esp + 0x3b8]
movq qword [esp + 0x60], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x70], xmm0
movq xmm0, qword [ecx]
movq qword [esp + 0x8c], xmm0
movq xmm0, qword [ecx + 8]
movq qword [esp + 0x94], xmm0
movq xmm0, qword [ecx + 0x10]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x64]
push ecx
push ebp
push edx
push edi
lea ecx, [esp + 0xb8]
movq qword [esp + 0xb0], xmm0
call fcn.005a1c60
lea ecx, [esp + 0x60]
call fcn.004a8b50
fstp st(0)
lea ecx, [esp + 0x8c]
call fcn.004a8b50
fstp st(0)
mov eax, dword [edi + 0x9c]
lea ecx, [esp + 0x60]
push ecx
push eax
lea ecx, [eax + 0x18]
call fcn.004a94d0
mov eax, dword [edi + 0x90]
mov ecx, dword [edi + 0x9c]
lea edx, [esp + 0x8c]
push edx
lea edx, [eax + eax*2]
lea edx, [ecx + edx*8 - 0x18]
lea eax, [eax + eax*2 - 6]
push edx
lea ecx, [ecx + eax*8]
call fcn.004a94d0
jmp 0x5229a4
cmp eax, 2
jne 0x5228c5
lea edx, [esp + 0x38]
push edx
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00529b80
jmp 0x522757
cmp eax, 3
jl 0x52275a
mov edx, dword [esp + 0x14]
xor eax, eax
push edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], eax
call fcn.00412980
xor esi, esi
cmp dword [esp + 0x14], esi
mov byte [esp + 0x3ac], 0xe
jle 0x522933
xor edx, edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
movq xmm0, qword [eax + edx]
add eax, edx
add ecx, edx
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
inc esi
movq qword [ecx + 0x10], xmm0
add edx, 0x18
cmp esi, dword [esp + 0x14]
jl 0x522900
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0052a1d0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3d8]
dec edx
push edx
push 3
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00527f30
mov eax, dword [esp + 0x80]
mov esi, dword [sym.imp.MSVCR90.dll_free]
add esp, 0x20
mov byte [esp + 0x3ac], 0xd
test eax, eax
je 0x522760
push eax
call esi
add esp, 4
jmp 0x522760
mov ecx, dword [esp + 0x3b8]
push ebp
push ecx
push edi
lea ecx, [esp + 0xb0]
call fcn.005a1ba0
lea ecx, [esp + 0xa4]
call fcn.0059f820
mov edx, dword [esp + 0x3b4]
mov ecx, edi
fstp qword [edx]
call fcn.004ff230
cmp byte [esp + 0x3d0], 0
jne 0x5229f5
cmp dword [edi + 0xb0], ebx
je 0x5229ee
mov eax, dword [edi + 0xa8]
cmp eax, ebx
je 0x5229e2
push eax
call esi
add esp, 4
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xb0], ebx
and dword [edi + 0x98], 0xfffffffe
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x522a03
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x522a19
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
cmp eax, ebx
je 0x522a32
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x522a40
push eax
call esi
add esp, 4
lea ecx, [esp + 0x274]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x3ac], 8
call fcn.00521e10
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x522a6a
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
cmp eax, ebx
je 0x522a80
push eax
call esi
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x3ac], 5
call fcn.00521cc0
mov eax, edi
mov ecx, dword [esp + 0x3a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x39c
ret 0x28