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

Disassembly:
sub esp, 0x6c
push ebx
push esi
mov esi, dword [esp + 0x78]
push edi
mov eax, dword [esi]
lea eax, [eax + eax*4]
shl eax, 2
mov ecx, dword [eax + 0x597d48]
mov edx, dword [eax + 0x597d4c]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x597d50]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x597d54]
mov dword [esp + 0x60], ecx
mov eax, edx
lea ecx, [esp + 0x58]
push eax
push ecx
mov dword [esp + 0x6c], edx
call fcn.004523f0
mov ecx, dword [esi + 4]
add esp, 8
xor ebx, ebx
mov dword [esp + 0x7c], eax
test ecx, ecx
jle 0x44f5a0
lea edi, [esi + 8]
test eax, eax
je 0x44fab7
mov ecx, dword [edi]
mov edx, dword [esi]
cmp ecx, edx
je 0x44f591
lea eax, [ecx + ecx*4]
shl eax, 2
mov edx, dword [eax + 0x597d48]
mov ecx, dword [eax + 0x597d4c]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0x597d50]
mov eax, dword [eax + 0x597d54]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x68]
test eax, eax
mov dword [esp + 0x60], edx
jne 0x44f56b
fld dword [0x7c7aa4]
fsub dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [0x7c7aa8]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fld dword [0x7c7aac]
fsub dword [esp + 0x60]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fchs
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push 0x3dcccccd
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x84]
push edx
push eax
call fcn.00452a60
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esi + 4]
inc ebx
add edi, 4
cmp ebx, ecx
jl 0x44f4ee
test eax, eax
je 0x44fab7
lea ecx, [esp + 0x40]
push ebp
lea edx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.00452300
add esp, 0xc
xor edi, edi
mov dword [esp + 0x18], edi
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
fild dword [esp + 0x14]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
cmp ebp, 1
fstp dword [esp + edi + 0x5c]
jne 0x44f5f4
fld dword [esp + edi + 0x44]
jmp 0x44f5fa
fld dword [esp + edi + 0x50]
fchs
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
mov eax, dword [esi]
fstp dword [esp + 0x6c]
lea edx, [eax + eax*4]
push ecx
lea eax, [edx*4 + 0x597d48]
push eax
call fcn.0044f230
add esp, 0xc
test eax, eax
jne 0x44f6b4
mov ebx, dword [esi + 4]
xor edi, edi
test ebx, ebx
jle 0x44f661
lea ebp, [esi + 8]
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x60]
lea eax, [eax + eax*4]
push edx
lea ecx, [eax*4 + 0x597d48]
push ecx
call fcn.0044f230
add esp, 0xc
test eax, eax
jne 0x44f65d
inc edi
add ebp, 4
cmp edi, ebx
jl 0x44f631
mov ebp, dword [esp + 0x14]
cmp edi, ebx
jne 0x44f6b0
cmp ebx, 0x1a
jle 0x44f677
push str.ERROR:_too_many_bevels_n
call fcn.0045b480
add esp, 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.0044f3a0
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + ecx*4 + 8], eax
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + edx*4 + 0xd8], 0
mov eax, dword [esi + 4]
mov dword [esi + eax*4 + 0x70], ecx
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov edi, dword [esp + 0x18]
add ebp, 2
cmp ebp, 1
mov dword [esp + 0x14], ebp
jle 0x44f5c9
add edi, 4
cmp edi, 0xc
mov dword [esp + 0x18], edi
jl 0x44f5c2
mov ecx, dword [esp + 0x80]
xor eax, eax
mov edi, dword [ecx]
test edi, edi
jle 0x44fa84
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea ebx, [eax + 1]
mov eax, ebx
mov dword [esp + 0x28], ebx
cdq
fld dword [ecx + ebp + 4]
idiv edi
lea eax, [edx + edx*2]
lea edx, [edx + edx*2 + 3]
fsub dword [ecx + eax*4 + 4]
lea eax, [ecx + eax*4]
fstp dword [esp + 0x2c]
fld dword [ecx + ebp + 8]
fsub dword [eax + 8]
lea eax, [esp + 0x2c]
push eax
fstp dword [esp + 0x34]
fld dword [ecx + ebp + 0xc]
fsub dword [ecx + edx*4]
fstp dword [esp + 0x38]
call fcn.004694c0
fcomp qword [0x54ed38]
add esp, 4
fnstsw ax
test ah, 5
jnp 0x44fa6a
lea ecx, [esp + 0x2c]
push ecx
call fcn.0044f330
add esp, 4
xor eax, eax
mov ecx, dword [esp + eax*4 + 0x2c]
cmp ecx, 0xbf800000
je 0x44f76e
cmp ecx, 0x3f800000
je 0x44f76e
inc eax
cmp eax, 3
jl 0x44f752
jmp 0x44f777
cmp eax, 3
jl 0x44fa6a
lea edx, [esp + 0x38]
mov dword [esp + 0x20], 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0xffffffff
fild dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
fstp dword [eax]
fld dword [esp + 0x40]
fmul dword [esp + 0x30]
fld dword [esp + 0x3c]
fmul dword [esp + 0x34]
lea ecx, [esp + 0x5c]
push ecx
fsubp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x3c]
fmul dword [esp + 0x38]
fld dword [esp + 0x44]
fmul dword [esp + 0x30]
fsubp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x40]
fmul dword [esp + 0x30]
fld dword [esp + 0x3c]
fmul dword [esp + 0x34]
fsubp st(1)
fstp dword [esp + 0x68]
call fcn.004694c0
fcomp qword [0x54ed38]
add esp, 4
fnstsw ax
test ah, 5
jnp 0x44fa38
mov edi, dword [esp + 0x80]
xor ecx, ecx
fld dword [esp + 0x64]
fmul dword [edi + ebp + 0xc]
fld dword [esp + 0x60]
fmul dword [edi + ebp + 8]
faddp st(1)
fld dword [esp + 0x5c]
fmul dword [edi + ebp + 4]
faddp st(1)
fstp dword [esp + 0x68]
mov edx, dword [edi]
test edx, edx
jle 0x44f876
add edi, 8
fld dword [esp + 0x64]
fmul dword [edi + 4]
fld dword [esp + 0x5c]
fmul dword [edi - 4]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [edi]
faddp st(1)
fsub dword [esp + 0x68]
fcomp qword [0x54ec08]
fnstsw ax
and eax, 0x4100
je 0x44f876
inc ecx
add edi, 0xc
cmp ecx, edx
jl 0x44f843
cmp ecx, edx
jl 0x44fa38
lea edx, [esp + 0x10]
lea eax, [esp + 0x5c]
push edx
push eax
mov eax, dword [esi]
lea ecx, [eax + eax*4]
lea edx, [ecx*4 + 0x597d48]
push edx
call fcn.0044f230
add esp, 0xc
test eax, eax
jne 0x44fa38
mov ebx, dword [esi + 4]
xor edi, edi
test ebx, ebx
jle 0x44f8e1
lea ebp, [esi + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
mov eax, dword [ebp]
push ecx
lea edx, [eax + eax*4]
lea eax, [edx*4 + 0x597d48]
push eax
call fcn.0044f230
add esp, 0xc
test eax, eax
jne 0x44f8dd
inc edi
add ebp, 4
cmp edi, ebx
jl 0x44f8b1
mov ebp, dword [esp + 0x24]
cmp edi, ebx
jne 0x44fa38
cmp ebx, 0x1a
jle 0x44f8fb
push str.ERROR:_too_many_bevels_n
call fcn.0045b480
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.0044f3a0
mov ecx, dword [esi + 4]
add esp, 8
xor edi, edi
mov dword [esi + ecx*4 + 8], eax
mov eax, dword [esi + 4]
test eax, eax
jle 0x44f942
lea ebx, [esi + 8]
mov edx, dword [esi + eax*4 + 8]
mov eax, dword [ebx]
cmp edx, eax
jne 0x44f937
push str.WARNING:_bevel_plane_already_used_n
call fcn.0045b480
add esp, 4
mov eax, dword [esi + 4]
inc edi
add ebx, 4
cmp edi, eax
jl 0x44f920
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov dword [esi + eax*4 + 0xd8], 0
mov ecx, dword [esi + 4]
mov dword [esi + ecx*4 + 0x70], edx
mov eax, dword [esp + 0x80]
push eax
call fcn.00452650
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
add esp, 4
mov ecx, dword [esi + eax*4 + 8]
lea ecx, [ecx + ecx*4]
fld dword [ecx*4 + 0x597d48]
fstp dword [esp + 0x6c]
mov ecx, dword [esi + eax*4 + 8]
lea edx, [ecx + ecx*4]
fld dword [edx*4 + 0x597d4c]
fstp dword [esp + 0x70]
mov ecx, dword [esi + eax*4 + 8]
lea ecx, [ecx + ecx*4]
fld dword [ecx*4 + 0x597d50]
fstp dword [esp + 0x74]
mov ecx, dword [esi + eax*4 + 8]
lea edx, [ecx + ecx*4]
fld dword [edx*4 + 0x597d54]
fstp dword [esp + 0x78]
mov ecx, dword [esi + eax*4 + 0x70]
test ecx, ecx
jne 0x44f9ea
fld dword [esp + 0x6c]
fchs
fstp dword [esp + 0x6c]
fld dword [esp + 0x70]
fchs
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fchs
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
push 0x3dcccccd
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00452a60
mov eax, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
jne 0x44fa28
mov eax, dword [0x10aa058]
cmp dword [eax + 0x20], 2
jne 0x44fa38
push str.WARNING:_CM_AddFacetBevels..._invalid_bevel_n
call fcn.0045b480
add esp, 4
jmp 0x44fa38
push eax
call fcn.00451ff0
mov eax, dword [esi + 4]
add esp, 4
inc eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
add eax, 2
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x44f78f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x44f787
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x80]
mov eax, ebx
add ebp, 0xc
mov edi, dword [ecx]
mov dword [esp + 0x24], ebp
cmp eax, edi
jl 0x44f6ed
push ecx
call fcn.00451ff0
mov edx, dword [esi + 4]
mov eax, dword [esi]
add esp, 4
mov dword [esi + edx*4 + 8], eax
mov ecx, dword [esi + 4]
pop ebp
mov dword [esi + ecx*4 + 0xd8], 0
mov edx, dword [esi + 4]
mov dword [esi + edx*4 + 0x70], 1
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
add esp, 0x6c
ret