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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp], eax
je 0x4caed0
push ebx
push ebp
push esi
push edi
lea esp, [esp]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
push 1
push edx
call fcn.004b3f30
mov esi, eax
add esp, 8
test esi, esi
je 0x4caeba
lea esp, [esp]
push 1
push esi
call fcn.004b3f50
fld dword [0x5110c8]
fld dword [esp + 0x74]
mov esi, dword [esi + 4]
fucom st(1)
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x4cad01
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 4]
fld dword [edx + 8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4caeb0
jmp 0x4cad03
fstp st(0)
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x74]
cmp dword [edx + 4], eax
lea ebx, [esi + 0x10]
je 0x4cad26
mov edx, dword [esi + 0x14]
cmp dword [edx + 4], eax
je 0x4cad26
mov edx, dword [esi + 0x18]
cmp dword [edx + 4], eax
jne 0x4caeb0
push esi
mov dword [esp + 0x18], 0
call fcn.0045bdf0
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [ebx]
add edi, 8
push edi
push eax
push ecx
push edx
call fcn.004ca2c0
add esp, 0x20
test eax, eax
jne 0x4cad71
push str.Internal_dotCoordInsert_interpolation_problem_n
push 3
call fcn.004431d0
add esp, 8
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0x58]
push ecx
movzx ecx, byte [eax + 0x28]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x74]
push edi
push ecx
push edx
call fcn.0045e6d0
mov dword [esp + 0x30], eax
fld dword [esi + 0x20]
mov eax, dword [esi + 0xc]
fstp dword [esp + 0x48]
add esp, 0x18
fld dword [esi + 0x24]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x34]
xor eax, eax
fld dword [esi + 0x28]
mov edx, ebx
fstp dword [esp + 0x38]
lea esp, [esp]
mov ecx, dword [edx]
mov edi, dword [ecx + 4]
cmp edi, dword [esp + 0x78]
je 0x4cae89
cmp ecx, dword [esp + 0x10]
jne 0x4cadd9
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x74]
mov dword [esp + eax*4 + 0x48], ecx
jne 0x4cade9
mov ecx, dword [esp + 0x18]
mov dword [edx], ecx
add eax, 1
add edx, 4
cmp eax, 3
jl 0x4cadc0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
add ecx, 8
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
add eax, 8
push eax
add edx, 8
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0045b9e0
fld dword [esp + 0x50]
fmul dword [esp + 0x44]
add esp, 0x10
fld dword [esp + 0x3c]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x38]
faddp st(1)
fcomp qword [0x50c4e8]
fnstsw ax
test ah, 5
jp 0x4caed4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
push edx
push eax
push esi
mov dword [esp + 0x20], ecx
call fcn.0045bab0
mov ebp, dword [eax + 4]
mov eax, dword [esp + 0x88]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], ebp
je 0x4cae81
cmp esi, dword [eax]
jne 0x4cae81
mov ecx, dword [esi + 4]
mov dword [eax], ecx
push esi
call fcn.0045be20
jmp 0x4caede
cmp eax, 3
jge 0x4cadf4
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4caea3
cmp esi, dword [eax]
jne 0x4caea3
mov edx, dword [esi + 4]
mov dword [eax], edx
push esi
call fcn.0045be20
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov esi, ecx
jne 0x4cacc0
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4caca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
call fcn.0045bd20
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
add esp, 4
add edx, 8
push edx
add eax, 8
push eax
add ecx, 8
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.0045b9e0
fld dword [esp + 0x50]
fmul dword [esp + 0x44]
add esp, 0x10
fld dword [esp + 0x3c]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x38]
faddp st(1)
fcomp qword [0x50c4e8]
fnstsw ax
test ah, 5
jp 0x4cafaf
cmp dword [esp + 0x14], 0
jne 0x4caf6d
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x74]
cmp eax, ebp
je 0x4caf50
cmp esi, dword [esp + 0x18]
jne 0x4caf60
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x4caf5d
cmp edi, dword [esp + 0x18]
jne 0x4caf60
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
jmp 0x4cb005
mov ecx, dword [esp + 0x7c]
fld dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x68]
push ecx
push 1
push ebp
push edx
push ecx
fstp dword [esp]
push eax
call fcn.004ca890
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 8]
push 1
push edx
mov dword [esp + 0x30], eax
call fcn.004b3f30
add esp, 0x20
mov ecx, eax
jmp 0x4caeb0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
push ebx
push edi
push esi
push eax
push ecx
call fcn.004b5130
add esp, 0x14
test eax, eax
jne 0x4cb005
push str.Failed_to_create_new_Triangle_in_dotCoordInsert_1_n
push 1
push 0x1b62
call fcn.00442f20
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ecx
push ebx
push edi
push esi
push str.Verts__0x_x_0x_x_0x_x__vA_0x_x_vB_0x_x_vC_0x_x_n
push 1
push 0x1b63
call fcn.00442f20
add esp, 0x30
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4caeac
mov edx, dword [esp + 0x7c]
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x6c]
push ecx
push ebp
push eax
push ecx
fstp dword [esp]
push edx
call fcn.004cac80
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 4]
add esp, 0x18
test eax, eax
mov dword [esp + 0x10], eax
je 0x4caecc
mov ecx, dword [eax + 8]
push 1
push ecx
call fcn.004b3f30
add esp, 8
mov ecx, eax
jmp 0x4caeb0