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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, eax
imul ebx, ecx
shl eax, 2
push esi
push edi
lea esi, [eax*8]
lea edi, [ecx*4]
push esi
shl ebx, 2
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
shl edi, 3
push edi
mov dword [esp + 0x20], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [esp + 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov esi, dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiXYZCurve____cdecl_eaiEntityFactory::createXYZCurve_int__int_]
push eax
push edi
call esi
add esp, 0x18
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40a14b
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
push str.ERROR___
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
push ecx
push edx
call esi
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push eax
push edi
call esi
mov esi, dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiUVCurve____cdecl_eaiEntityFactory::createUVCurve_int__int_]
push 2
push 1
mov dword [esp + 0x40], eax
call esi
push 2
push 1
mov dword [esp + 0x50], eax
call esi
mov edi, eax
push 2
push 1
mov dword [esp + 0x5c], edi
call esi
push 2
push 1
mov dword [esp + 0x5c], eax
call esi
add esp, 0x30
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3ff00000
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3ff00000
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
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], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0x3ff00000
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3ff00000
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], 0x3ff00000
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x3ff00000
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3ff00000
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3ff00000
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x3ff00000
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0x3ff00000
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x3ff00000
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0x3ff00000
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0x3ff00000
mov dword [esp + 0x108], 0
xor esi, esi
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0x3ff00000
mov dword [esp + 0x10], esi
jmp 0x40a3db
mov eax, dword [esp + 0x24]
test esi, esi
jne 0x40a451
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
lea edx, [ecx*4]
test edx, edx
jle 0x40a40a
mov ecx, dword [ebp + 0x10]
mov eax, edi
sub ecx, edi
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x40a3f8
mov esi, dword [esp + 0x38]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xc]
mov edx, dword [esi]
push 4
push edi
mov ecx, esi
call dword [edx + 0x10]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov edx, dword [esi]
lea eax, [esp + 0xc0]
push 3
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
jmp 0x40a5c3
cmp esi, 1
jne 0x40a503
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x40a4c3
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x1c]
shl ecx, 2
lea ecx, [esi + ecx*8 - 0x20]
mov esi, dword [ecx]
add ecx, 8
mov dword [eax], esi
mov esi, dword [ecx - 4]
mov dword [eax + 4], esi
mov esi, dword [ecx]
add eax, 8
add ecx, 8
add ecx, 8
mov dword [eax], esi
mov esi, dword [ecx - 0xc]
mov dword [eax + 4], esi
mov esi, dword [ecx - 8]
add eax, 8
add ecx, 0x108
mov dword [eax], esi
mov esi, dword [ecx - 0x10c]
mov dword [eax + 4], esi
mov esi, dword [ecx - 0x108]
add eax, 8
mov dword [eax], esi
mov esi, dword [ecx - 0x104]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x40a472
mov esi, dword [esp + 0x3c]
mov eax, dword [ebp + 0x18]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xc]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push 4
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [edi]
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call dword [edx + 0xc]
mov edx, dword [edi]
lea eax, [esp + 0x60]
push 3
push eax
mov ecx, edi
call dword [edx + 0x10]
mov esi, dword [esp + 0x10]
jmp 0x40a5c3
cmp esi, 2
jne 0x40a5a0
mov edx, dword [ebp + 8]
test edx, edx
jle 0x40a55c
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [ecx + ebx*8 - 0x10]
mov esi, dword [ecx - 0x10]
sub ecx, 0x20
mov dword [eax], esi
mov esi, dword [ecx + 0x14]
mov dword [eax + 4], esi
mov esi, dword [ecx + 0x18]
add eax, 8
mov dword [eax], esi
mov esi, dword [ecx + 0x1c]
mov dword [eax + 4], esi
mov esi, dword [ecx + 0x20]
add eax, 8
mov dword [eax], esi
mov esi, dword [ecx + 0x24]
mov dword [eax + 4], esi
mov esi, dword [ecx + 0x28]
add eax, 8
mov dword [eax], esi
mov esi, dword [ecx + 0x2c]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x40a51e
mov esi, dword [esp + 0x28]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push 4
push eax
mov ecx, esi
call dword [edx + 0x10]
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xc]
mov edx, dword [esi]
lea eax, [esp + 0x90]
push 3
push eax
mov ecx, esi
call dword [edx + 0x10]
mov esi, dword [esp + 0x10]
jmp 0x40a5c3
cmp esi, 3
jne 0x40a5c3
mov edx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xf0]
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
inc esi
cmp esi, 4
mov dword [esp + 0x10], esi
jl 0x40a3d7
mov esi, dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiEdge____cdecl_eaiEntityFactory::createEdge_int_]
push 0xffffffffffffffff
call esi
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40a601
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
push str.EDGE_0_ERROR___
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
push 0xffffffffffffffff
call esi
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiCoedge____cdecl_eaiEntityFactory::createCoedge_int_]
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
call esi
push 0xffffffffffffffff
mov ebx, eax
call esi
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
call esi
push 0xffffffffffffffff
mov dword [esp + 0x2c], eax
call esi
push 0xffffffffffffffff
mov edi, eax
call dword [sym.imp.DMDataTk53.dll_public:_static_class_eaiLoop____cdecl_eaiEntityFactory::createLoop_int_]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
mov esi, eax
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x1c]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword [0x4ddf20], ecx
mov dword [0x4ddf1c], edx
pop ebx
mov esp, ebp
pop ebp
ret