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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a2cbb
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 0x40dc35
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 0x40dbf6
jmp 0x40dc76
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 0x40dcdb
inc ebx
cmp ebx, 4
jl 0x40dcd9
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 edi, eax
push edi
mov dword [esp + 0x20], edi
call fcn.00445e00
mov eax, dword [esp + 0xc]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x44]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiBrep____cdecl_eaiEntityFactory::createBrep_int_]
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov ecx, edi
push 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 ebx, eax
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0xc]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiShell____cdecl_eaiEntityFactory::createShell_int_]
mov edx, dword [ebx]
add esp, 4
mov esi, eax
mov ecx, ebx
push esi
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], 0x3ff00000
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], 0x65dc27df
mov dword [esp + 0x224], 0x3fe6a09e
mov dword [esp + 0x228], 0x65dc27df
mov dword [esp + 0x22c], 0x3fe6a09e
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 + 0xc]
fld qword [ebp + 0x14]
mov dword [esp + 0x248], 0
mov dword [esp + 0x24c], 0x3ff00000
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0x3ff00000
mov dword [esp + 0x258], 0
mov dword [esp + 0x25c], 0x3ff00000
mov dword [esp + 0x260], 0x65dc27df
mov dword [esp + 0x264], 0xbfe6a09e
mov dword [esp + 0x268], 0x65dc27df
mov dword [esp + 0x26c], 0x3fe6a09e
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], 0xbff00000
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], 0x65dc27df
mov dword [esp + 0x2a4], 0xbfe6a09e
mov dword [esp + 0x2a8], 0x65dc27df
mov dword [esp + 0x2ac], 0xbfe6a09e
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], 0xbff00000
mov dword [esp + 0x2d0], 0
mov dword [esp + 0x2d4], 0x3ff00000
mov dword [esp + 0x2d8], 0
mov dword [esp + 0x2dc], 0x3ff00000
mov dword [esp + 0x2e0], 0x65dc27df
mov dword [esp + 0x2e4], 0x3fe6a09e
mov dword [esp + 0x2e8], 0x65dc27df
mov dword [esp + 0x2ec], 0xbfe6a09e
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], 0x3ff00000
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]
fld qword [esp + 0x10]
fmul qword [eax - 8]
fmul st(2)
fld qword [esp + 0x10]
fmul qword [eax]
fmul st(3)
fld st(2)
jg 0x40e525
fmul qword [0x4a6590]
jmp 0x40e52b
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 0x40e4f9
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 ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push ebx
push eax
push ecx
push edx
sub esp, 0x60
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
call fcn.00405820
push 0
call fcn.0040a720
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add esp, 0x74
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
push ecx
push edx
push eax
sub esp, 0x60
lea edx, [ebp + 0x1c]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.00405820
push 1
call fcn.0040a720
mov edx, dword [esi]
add esp, 0x74
mov ecx, esi
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
fld qword [ebp + 0x14]
fcomp qword [0x4a6558]
fnstsw ax
and eax, 0x4100
jne 0x40e6d9
push 2
push 9
push 1
push 2
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiNURBSSurface____cdecl_eaiEntityFactory::createNURBSSurface_int__int__int__int_]
add esp, 0x10
mov edi, eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x80]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0xc]
mov edx, dword [edi]
lea eax, [esp + 0xe0]
push 4
push eax
mov ecx, edi
call dword [edx + 0x10]
push 0xffffffffffffffff
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiFace____cdecl_eaiEntityFactory::createFace_int_]
mov ebx, eax
add esp, 4
mov ecx, ebx
mov edx, dword [ebx]
push edi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
mov edi, dword [esp + 0x1c]
lea ecx, [ebp + 0x1c]
mov dword [esp + 0x3ac], 0xffffffff
call fcn.004340a0
mov ecx, dword [esp + 0x3a4]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret