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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
fld dword [esi + 0x554]
fchs
fstp dword [esp + 0x1c]
fld dword [esi + 0x144]
mov eax, dword [esi + 0x558]
fabs
fcomp qword [0x416a40]
mov dword [esp + 0x18], eax
fnstsw ax
test ah, 1
je 0x40c561
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.OPENGL32.dll_glNormal3f]
lea edi, [esi + 0x160]
mov dword [esp + 0x10], 0xb
fld dword [esp + 0x18]
fmul dword [edi + 4]
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x20]
fmul dword [edi]
push ecx
fstp dword [esp]
call ebp
lea ecx, [edi + 0xfc]
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea edx, [edi + 0x1f8]
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40c438
lea edi, [esi + 0x1d8]
mov dword [esp + 0x10], 0xb
fld dword [esp + 0x18]
fmul dword [edi + 4]
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x20]
fmul dword [edi]
push ecx
fstp dword [esp]
call ebp
fld dword [edi + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0xfc]
fadd dword [esi + 0x13c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
fld dword [edi + 0x200]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x1fc]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0x1f8]
fadd dword [esi + 0x13c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40c486
fld dword [esp + 0x18]
fmul dword [esi + 0x164]
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x20]
fmul dword [esi + 0x160]
push ecx
fstp dword [esp]
call ebp
mov edi, dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea eax, [esi + 0x25c]
push eax
call edi
add esi, 0x358
push esi
call edi
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
fld dword [esi + 0x140]
lea ebx, [esi + 0x13c]
push 8
fabs
fld dword [ebx]
fabs
faddp st(1)
fcomp qword [0x416a40]
fnstsw ax
test ah, 1
je 0x40c66d
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3f]
lea edi, [esi + 0x160]
mov dword [esp + 0x10], 0x15
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
fmul dword [edi + 4]
push ecx
push ecx
fstp dword [esp]
fld dword [esp + 0x20]
fmul dword [edi]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
fld dword [esi + 0x144]
fcomp dword [0x416a1c]
fnstsw ax
test ah, 0x41
jne 0x40c5f1
lea edx, [edi + 0xfc]
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea eax, [edi + 0x1f8]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
jmp 0x40c64d
fld dword [edi + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0xfc]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
fld dword [edi + 0x200]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x1fc]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0x1f8]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40c5a2
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x160]
mov ebp, 0x15
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
fmul dword [edi + 4]
push ecx
push ecx
fstp dword [esp]
fld dword [esp + 0x20]
fmul dword [edi]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea edx, [edi + 0xfc]
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea eax, [edi + 0x1f8]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
add edi, 0xc
dec ebp
jne 0x40c67e
call dword [sym.imp.OPENGL32.dll_glEnd]
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3f]
lea edi, [esi + 0x160]
mov dword [esp + 0x10], 0x15
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
fmul dword [edi + 4]
push ecx
push ecx
fstp dword [esp]
fld dword [esp + 0x20]
fmul dword [edi]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
fld dword [edi + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0xfc]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
fld dword [edi + 0x200]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x1fc]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0x1f8]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40c6e0
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esi + 0x144]
fcomp qword [0x416a30]
push 8
fnstsw ax
test ah, 0x41
jne 0x40c832
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x1d8]
mov dword [esp + 0x10], 0xb
fld dword [edi + 4]
fchs
fstp dword [esp + 0x28]
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0
call fcn.0040e590
lea edx, [esp + 0x40]
push edx
call fcn.0040e4b0
add esp, 0x10
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
fld dword [edi + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0xfc]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
lea eax, [edi + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40c7a1
jmp 0x40c8d2
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x160]
mov dword [esp + 0x10], 0xb
fld dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
fchs
fstp dword [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
call fcn.0040e590
lea ecx, [esp + 0x40]
push ecx
call fcn.0040e4b0
add esp, 0x10
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
fld dword [edi + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi + 0xfc]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
lea eax, [edi + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40c846
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esi + 0x140]
fld dword [ebx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fdivr dword [esi + 0x144]
fmul dword [esi + 0x55c]
fst dword [esp + 0x10]
fcomp qword [0x416b38]
fnstsw ax
test ah, 1
je 0x40ca59
fld dword [esp + 0x10]
call sub.MSVCRT.dll__CIasin
fld dword [0x416b30]
fsub st(1)
push 7
fstp dword [esp + 0x28]
fld qword [esi + 0x560]
fsub qword [0x416a98]
fstp dword [esp + 0x14]
fadd dword [esp + 0x14]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0x14]
fstp dword [esp + 0x28]
call dword [sym.imp.OPENGL32.dll_glBegin]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], eax
jmp 0x40c968
mov eax, dword [esp + 0x10]
fld dword [eax]
fcos
mov edx, dword [esi + 0x360]
mov dword [esp + 0x78], edx
fld dword [eax]
fsin
mov eax, dword [esi + 0x264]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
push eax
fstp dword [esp + 0x48]
fld st(0)
fmul dword [esi + 0x44]
fst dword [esp + 0x50]
fld dword [esp + 0x48]
fmul dword [esi + 0x44]
fst dword [esp + 0x18]
fstp dword [esp + 0x54]
fadd dword [ebx]
fstp dword [esp + 0x5c]
fld dword [esp + 0x18]
fadd dword [esi + 0x140]
fstp dword [esp + 0x60]
fld dword [esi + 0x144]
fadd dword [esi + 0x264]
fstp dword [esp + 0x64]
fmul dword [esi + 0x150]
fld st(0)
fadd dword [ebx]
fstp dword [esp + 0x68]
fld dword [esp + 0x48]
fmul dword [esi + 0x150]
fst dword [esp + 0x18]
fadd dword [esi + 0x140]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x50]
push ecx
fstp dword [esp + 0x70]
fld dword [esi + 0x360]
fadd dword [esi + 0x144]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.0040e510
add esp, 8
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
lea edi, [esp + 0x4c]
mov ebp, 4
push edi
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
add edi, 0xc
dec ebp
jne 0x40ca2c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x40c964
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret