Function at 0x416760
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 + 0x8e6550]
mov edx, dword [eax + 0x8e6554]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x8e6558]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x8e655c]
mov dword [esp + 0x60], ecx
mov eax, edx
lea ecx, [esp + 0x58]
push eax
push ecx
mov dword [esp + 0x6c], edx
call fcn.004199e0
mov ecx, dword [esi + 4]
add esp, 8
xor ebx, ebx
mov dword [esp + 0x7c], eax
test ecx, ecx
jle 0x416870
lea edi, [esi + 8]
test eax, eax
je 0x416d6a
mov ecx, dword [edi]
mov edx, dword [esi]
cmp ecx, edx
je 0x416861
lea eax, [ecx + ecx*4]
shl eax, 2
mov edx, dword [eax + 0x8e6550]
mov ecx, dword [eax + 0x8e6554]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0x8e6558]
mov eax, dword [eax + 0x8e655c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x68]
test eax, eax
mov dword [esp + 0x60], edx
jne 0x41683b
fld dword [0x9ccd0c]
fsub dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [0x9ccd10]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fld dword [0x9ccd14]
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.0041a060
mov eax, dword [esp + 0x8c]
add esp, 0x10
mov ecx, dword [esi + 4]
inc ebx
add edi, 4
cmp ebx, ecx
jl 0x4167be
test eax, eax
je 0x416d6a
lea ecx, [esp + 0x40]
push ebp
lea edx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.004198e0
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ebx
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 + ebx + 0x5c]
jne 0x4168cc
fld dword [esp + ebx + 0x44]
jmp 0x4168d2
fld dword [esp + ebx + 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 + 0x8e6550]
push eax
call fcn.00416500
add esp, 0xc
test eax, eax
jne 0x41698d
mov eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x41693b
lea ebx, [esi + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x60]
lea eax, [eax + eax*4]
push edx
lea ecx, [eax*4 + 0x8e6550]
push ecx
call fcn.00416500
add esp, 0xc
test eax, eax
jne 0x416937
mov eax, dword [esi + 4]
inc edi
add ebx, 4
cmp edi, eax
jl 0x416909
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
cmp edi, eax
jne 0x41698d
cmp eax, 0x1a
jle 0x416954
push str.ERROR:_too_many_bevels_n
call fcn.0041e210
add esp, 4
lea edx, [esp + 0x10]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.00416670
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + ecx*4 + 8], eax
mov edx, dword [esi + 4]
mov dword [esi + edx*4 + 0xd8], 0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax*4 + 0x70], ecx
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
add ebp, 2
inc ecx
cmp ebp, 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
jle 0x4168a1
add ebx, 4
cmp ebx, 0xc
mov dword [esp + 0x1c], ebx
jl 0x41689a
mov ecx, dword [esp + 0x80]
xor edi, edi
mov ebx, dword [ecx]
test ebx, ebx
jle 0x416d37
lea eax, [edi + 1]
lea ebp, [edi + edi*2]
mov dword [esp + 0x28], eax
cdq
idiv ebx
shl ebp, 2
mov edi, dword [esp + 0x28]
fld dword [ecx + ebp + 4]
lea ebx, [edi + edi*2]
shl ebx, 2
mov dword [esp + 0x1c], ebx
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 [ebx + ecx]
fsub dword [ecx + edx*4]
fstp dword [esp + 0x38]
call fcn.0042bd60
fcomp qword [0x4e03e8]
add esp, 4
fnstsw ax
test ah, 1
jne 0x416d71
lea ecx, [esp + 0x2c]
push ecx
call fcn.00416600
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x2c]
mov edx, dword [eax]
cmp edx, 0xbf800000
je 0x416a60
cmp edx, 0x3f800000
je 0x416a60
inc ecx
add eax, 4
cmp ecx, 3
jl 0x416a43
jmp 0x416a69
cmp ecx, 3
jl 0x416d71
lea edx, [esp + 0x38]
mov dword [esp + 0x24], 3
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0xffffffff
jmp 0x416a95
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
jmp 0x416a95
mov ebx, dword [esp + 0x1c]
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]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0042bf80
lea ecx, [esp + 0x68]
push ecx
call fcn.0042bd60
fcomp qword [0x4e03e8]
add esp, 0x10
fnstsw ax
test ah, 1
jne 0x416cf4
mov ecx, dword [esp + 0x80]
xor edx, edx
fld dword [esp + 0x64]
fmul dword [ebx + ecx]
fld dword [esp + 0x60]
fmul dword [ecx + ebp + 8]
faddp st(1)
fld dword [esp + 0x5c]
fmul dword [ecx + ebp + 4]
faddp st(1)
fstp dword [esp + 0x68]
mov edi, dword [ecx]
test edi, edi
jle 0x416b4b
lea ebx, [ecx + 8]
fld dword [esp + 0x64]
fmul dword [ebx + 4]
fld dword [esp + 0x5c]
fmul dword [ebx - 4]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [ebx]
faddp st(1)
fsub dword [esp + 0x68]
fcomp qword [0x4e0408]
fnstsw ax
test ah, 0x41
je 0x416b4b
inc edx
add ebx, 0xc
cmp edx, edi
jl 0x416b1a
cmp edx, edi
jl 0x416cfb
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 + 0x8e6550]
push edx
call fcn.00416500
add esp, 0xc
test eax, eax
jne 0x416cf4
mov eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x416bb4
lea ebx, [esi + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
mov eax, dword [ebx]
push ecx
lea edx, [eax + eax*4]
lea eax, [edx*4 + 0x8e6550]
push eax
call fcn.00416500
add esp, 0xc
test eax, eax
jne 0x416bb4
mov eax, dword [esi + 4]
inc edi
add ebx, 4
cmp edi, eax
jl 0x416b86
mov eax, dword [esi + 4]
cmp edi, eax
jne 0x416cf4
cmp eax, 0x1a
jle 0x416bd1
push str.ERROR:_too_many_bevels_n
call fcn.0041e210
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.00416670
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 0x416c18
lea ebx, [esi + 8]
mov edx, dword [esi + eax*4 + 8]
mov eax, dword [ebx]
cmp edx, eax
jne 0x416c0d
push str.WARNING:_bevel_plane_already_used_n
call fcn.0041e210
add esp, 4
mov eax, dword [esi + 4]
inc edi
add ebx, 4
cmp edi, eax
jl 0x416bf6
mov eax, dword [esi + 4]
mov dword [esi + eax*4 + 0xd8], 0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov dword [esi + ecx*4 + 0x70], edx
mov eax, dword [esp + 0x80]
push eax
call fcn.00419c50
mov dword [esp + 0x24], 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 + 0x8e6550]
fstp dword [esp + 0x6c]
mov ecx, dword [esi + eax*4 + 8]
lea edx, [ecx + ecx*4]
fld dword [edx*4 + 0x8e6554]
fstp dword [esp + 0x70]
mov ecx, dword [esi + eax*4 + 8]
lea ecx, [ecx + ecx*4]
fld dword [ecx*4 + 0x8e6558]
fstp dword [esp + 0x74]
mov ecx, dword [esi + eax*4 + 8]
lea edx, [ecx + ecx*4]
fld dword [edx*4 + 0x8e655c]
fstp dword [esp + 0x78]
mov ecx, dword [esi + eax*4 + 0x70]
test ecx, ecx
jne 0x416cc0
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 + 0x28]
push ecx
push edx
call fcn.0041a060
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x416cf4
push eax
call fcn.00419600
mov eax, dword [esi + 4]
add esp, 4
inc eax
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
add eax, 2
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x416a91
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add edx, 4
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
jne 0x416a83
mov edi, dword [esp + 0x28]
mov ebx, dword [ecx]
cmp edi, ebx
jl 0x4169c9
push ecx
call fcn.00419600
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add esp, 4
mov dword [esi + eax*4 + 8], ecx
mov edx, dword [esi + 4]
pop ebp
mov dword [esi + edx*4 + 0xd8], 0
mov eax, dword [esi + 4]
mov dword [esi + eax*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
mov ecx, dword [esp + 0x80]
jmp 0x416d2d