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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a2bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x398
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x6c]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x3ac], ebx
je 0x40c9f5
xor eax, eax
mov edx, dword [ecx + 0x68]
add eax, 4
cmp eax, 0xc
mov edx, dword [eax + edx - 4]
mov dword [esp + eax + 0x3c], edx
mov edx, dword [ecx + 0x80]
mov edx, dword [eax + edx - 4]
mov dword [esp + eax + 0x1c], edx
mov edx, dword [ecx + 0x98]
mov edx, dword [eax + edx - 4]
mov dword [esp + eax + 0x2c], edx
mov edx, dword [ecx + 0xb0]
mov edx, dword [eax + edx - 4]
mov dword [esp + eax + 0x4c], edx
jl 0x40c9b6
jmp 0x40ca36
mov eax, 0x3dcccccd
mov edx, 0x3f4ccccd
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x58], eax
mov ecx, eax
mov eax, 0x3e4ccccd
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x2c], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiMaterial____cdecl_eaiEntityFactory::createMaterial_void_]
mov esi, eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov edx, dword [esi]
mov dword [esp + 0x10], esi
call dword [edx + 4]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x14]
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [edx + 0x1c]
lea edi, [esp + 0x320]
xor esi, esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00414320
fld dword [eax + esi]
add esi, 4
fstp qword [edi]
add edi, 8
cmp esi, 0x10
jl 0x40ca9b
inc ebx
cmp ebx, 4
jl 0x40ca99
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push ecx
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiPart____cdecl_eaiEntityFactory::createPart_char_const___int__int_]
mov ecx, dword [0x4ddef0]
add esp, 0xc
mov ebx, eax
push ebx
call fcn.00445e00
mov eax, dword [esp + 0xc]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x44]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiBrep____cdecl_eaiEntityFactory::createBrep_int_]
mov edx, dword [ebx]
add esp, 4
mov esi, eax
mov ecx, ebx
push esi
mov dword [esp + 0x20], esi
call dword [edx + 0xd0]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiRegion____cdecl_eaiEntityFactory::createRegion_int_]
add esp, 4
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xc]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiShell____cdecl_eaiEntityFactory::createShell_int_]
mov edx, dword [edi]
add esp, 4
mov ecx, edi
mov dword [esp + 0x18], eax
push eax
call dword [edx + 4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3ff00000
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x3ff00000
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3fd00000
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x3fd00000
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0x3fe00000
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0x3fe00000
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x3fe80000
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0x3fe80000
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0x3ff00000
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0x3ff00000
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0x3ff00000
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0x3ff00000
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0x3ff00000
mov dword [esp + 0x100], 0x65dc27df
mov dword [esp + 0x104], 0x3fe6a09e
mov dword [esp + 0x108], 0x65dc27df
mov dword [esp + 0x10c], 0x3fe6a09e
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0x65dc27df
mov dword [esp + 0x11c], 0x3fe6a09e
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0x3ff00000
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0x3ff00000
mov dword [esp + 0x140], 0x65dc27df
mov dword [esp + 0x144], 0xbfe6a09e
mov dword [esp + 0x148], 0x65dc27df
mov dword [esp + 0x14c], 0x3fe6a09e
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0x65dc27df
mov dword [esp + 0x15c], 0x3fe6a09e
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0xbff00000
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0x3ff00000
mov dword [esp + 0x180], 0x65dc27df
mov dword [esp + 0x184], 0xbfe6a09e
mov dword [esp + 0x188], 0x65dc27df
mov dword [esp + 0x18c], 0xbfe6a09e
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 0
mov dword [esp + 0x198], 0x65dc27df
mov dword [esp + 0x19c], 0x3fe6a09e
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0xbff00000
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0x3ff00000
mov dword [esp + 0x1c0], 0x65dc27df
mov dword [esp + 0x1c4], 0x3fe6a09e
mov dword [esp + 0x1c8], 0x65dc27df
mov dword [esp + 0x1cc], 0xbfe6a09e
mov dword [esp + 0x1d0], 0
mov dword [esp + 0x1d4], 0
mov dword [esp + 0x1d8], 0x65dc27df
mov dword [esp + 0x1dc], 0x3fe6a09e
mov dword [esp + 0x1e0], 0
mov dword [esp + 0x1e4], 0x3ff00000
mov dword [esp + 0x1e8], 0
mov dword [esp + 0x1ec], 0
mov dword [esp + 0x1f0], 0
mov dword [esp + 0x1f4], 0
mov dword [esp + 0x1f8], 0
mov dword [esp + 0x1fc], 0x3ff00000
mov dword [esp + 0x200], 0
mov dword [esp + 0x204], 0
mov dword [esp + 0x208], 0
mov dword [esp + 0x20c], 0
mov dword [esp + 0x210], 0
mov dword [esp + 0x214], 0x3ff00000
mov dword [esp + 0x218], 0
mov dword [esp + 0x21c], 0x3ff00000
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0
mov dword [esp + 0x228], 0
mov dword [esp + 0x22c], 0
mov dword [esp + 0x230], 0x65dc27df
mov dword [esp + 0x234], 0x3fe6a09e
mov dword [esp + 0x238], 0x65dc27df
mov dword [esp + 0x23c], 0x3fe6a09e
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
fld qword [ebp + 0x14]
fld qword [ebp + 0xc]
mov dword [esp + 0x248], 0
mov dword [esp + 0x24c], 0
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0x3ff00000
mov dword [esp + 0x258], 0
mov dword [esp + 0x25c], 0x3ff00000
mov dword [esp + 0x260], 0
mov dword [esp + 0x264], 0
mov dword [esp + 0x268], 0
mov dword [esp + 0x26c], 0
mov dword [esp + 0x270], 0x65dc27df
mov dword [esp + 0x274], 0x3fe6a09e
mov dword [esp + 0x278], 0x65dc27df
mov dword [esp + 0x27c], 0x3fe6a09e
mov dword [esp + 0x280], 0
mov dword [esp + 0x284], 0
mov dword [esp + 0x288], 0
mov dword [esp + 0x28c], 0
mov dword [esp + 0x290], 0
mov dword [esp + 0x294], 0x3ff00000
mov dword [esp + 0x298], 0
mov dword [esp + 0x29c], 0x3ff00000
mov dword [esp + 0x2a0], 0
mov dword [esp + 0x2a4], 0
mov dword [esp + 0x2a8], 0
mov dword [esp + 0x2ac], 0
mov dword [esp + 0x2b0], 0x65dc27df
mov dword [esp + 0x2b4], 0x3fe6a09e
mov dword [esp + 0x2b8], 0x65dc27df
mov dword [esp + 0x2bc], 0x3fe6a09e
mov dword [esp + 0x2c0], 0
mov dword [esp + 0x2c4], 0
mov dword [esp + 0x2c8], 0
mov dword [esp + 0x2cc], 0
mov dword [esp + 0x2d0], 0
mov dword [esp + 0x2d4], 0x3ff00000
mov dword [esp + 0x2d8], 0
mov dword [esp + 0x2dc], 0x3ff00000
mov dword [esp + 0x2e0], 0
mov dword [esp + 0x2e4], 0
mov dword [esp + 0x2e8], 0
mov dword [esp + 0x2ec], 0
mov dword [esp + 0x2f0], 0x65dc27df
mov dword [esp + 0x2f4], 0x3fe6a09e
mov dword [esp + 0x2f8], 0x65dc27df
mov dword [esp + 0x2fc], 0x3fe6a09e
mov dword [esp + 0x300], 0
mov dword [esp + 0x304], 0
mov dword [esp + 0x308], 0
mov dword [esp + 0x30c], 0
mov dword [esp + 0x310], 0
mov dword [esp + 0x314], 0x3ff00000
mov dword [esp + 0x318], 0
mov dword [esp + 0x31c], 0x3ff00000
xor ecx, ecx
lea edx, [esp + 0xf8]
lea eax, [esp + 0xe8]
fld qword [0x4a6568]
fdiv qword [edx]
cmp ecx, 8
fstp qword [esp + 0x10]
jg 0x40d2e7
fld qword [esp + 0x10]
fmul qword [eax - 8]
fmul st(1)
fld qword [esp + 0x10]
fmul qword [eax]
fmul st(2)
fld st(3)
fmul qword [0x4a6590]
jmp 0x40d2fb
fld qword [0x4a64c8]
fld qword [0x4a64c8]
fld st(3)
fmul qword [0x4a6598]
fld qword [esp + 0x360]
fmul st(1)
fld qword [esp + 0x340]
fmul st(3)
inc ecx
add edx, 0x20
add eax, 0x20
cmp ecx, 0x12
faddp st(1)
fld qword [esp + 0x320]
fmul st(4)
faddp st(1)
fadd qword [esp + 0x380]
fmul qword [eax - 0x10]
fstp qword [eax - 0x28]
fld qword [esp + 0x368]
fmul st(1)
fld qword [esp + 0x348]
fmul st(3)
faddp st(1)
fld qword [esp + 0x328]
fmul st(4)
faddp st(1)
fadd qword [esp + 0x388]
fmul qword [eax - 0x10]
fstp qword [eax - 0x20]
fld qword [esp + 0x370]
fmul st(1)
fld qword [esp + 0x350]
fmul st(3)
faddp st(1)
fld qword [esp + 0x330]
fmul st(4)
faddp st(1)
fadd qword [esp + 0x390]
fmul qword [eax - 0x10]
fstp qword [eax - 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
jl 0x40d2bb
push 1
lea eax, [esp + 0x64]
push 2
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0xec]
push ecx
push edx
fstp st(0)
push 2
push 9
fstp st(0)
call fcn.0040a0c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add esp, 0x1c
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea edx, [ebp + 0x1c]
sub esp, 0x60
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.00405820
push 0
call fcn.0040a720
push 2
push 9
push 1
push 2
mov dword [esp + 0x94], eax
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiNURBSSurface____cdecl_eaiEntityFactory::createNURBSSurface_int__int__int__int_]
add esp, 0x84
mov esi, eax
lea ecx, [esp + 0x60]
lea edx, [esp + 0x80]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
lea ecx, [esp + 0xe0]
push 4
push ecx
mov ecx, esi
call dword [eax + 0x10]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiFace____cdecl_eaiEntityFactory::createFace_int_]
mov edi, eax
add esp, 4
mov ecx, edi
mov edx, dword [edi]
push esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0xc]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esp + 0x18]
push edi
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push str.brep
mov edx, dword [ecx]
call dword [edx + 0x38]
mov dword [esp + 0x3ac], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004340a0
mov ecx, dword [esp + 0x3a4]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret