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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
push edi
fld dword [esi + 0x458]
fchs
fstp dword [esp + 0x24]
fld dword [esi + 0x15c]
fmul dword [esi + 0x45c]
mov eax, dword [esi + 0x45c]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
fadd dword [esi + 0x150]
fstp dword [esp + 0x18]
fld dword [esi + 0x144]
fabs
fcomp qword [0x416a40]
fnstsw ax
test ah, 1
je 0x40d99e
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.OPENGL32.dll_glNormal3f]
lea edi, [esi + 0x160]
mov dword [esp + 0x10], 0xb
fld dword [esp + 0x20]
fmul dword [edi + 4]
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
fmul dword [edi]
push ecx
fstp dword [esp]
call ebp
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]
mov eax, dword [esp + 0x10]
add edi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x40d875
lea edi, [esi + 0x1d8]
mov dword [esp + 0x10], 0xb
fld dword [esp + 0x20]
fmul dword [edi + 4]
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
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 0x40d8c3
fld dword [esp + 0x20]
fmul dword [esi + 0x164]
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
fmul dword [esi + 0x160]
push ecx
fstp dword [esp]
call ebp
mov edi, dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ecx, [esi + 0x25c]
push ecx
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, 0x74
ret
fld dword [esi + 0x13c]
lea ebx, [esi + 0x13c]
push 8
fabs
fld dword [esi + 0x140]
fabs
faddp st(1)
fcomp qword [0x416a40]
fnstsw ax
test ah, 1
je 0x40daae
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 + 0x20]
mov edx, dword [esp + 0x24]
fmul dword [edi + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
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 0x40da32
lea eax, [edi + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ecx, [edi + 0x1f8]
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
jmp 0x40da8e
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 0x40d9e3
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x160]
mov ebp, 0x15
fld dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fmul dword [edi + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
fmul dword [edi]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea eax, [edi + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ecx, [edi + 0x1f8]
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
add edi, 0xc
dec ebp
jne 0x40dabf
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 + 0x20]
mov edx, dword [esp + 0x24]
fmul dword [edi + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
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 0x40db21
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esi + 0x144]
fcomp qword [0x416a30]
push 8
fnstsw ax
test ah, 0x41
jne 0x40dc73
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x1d8]
mov dword [esp + 0x10], 0xb
fld dword [edi + 4]
fchs
fstp dword [esp + 0x30]
mov eax, dword [edi]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push ebx
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
call fcn.0040e590
lea eax, [esp + 0x48]
push eax
call fcn.0040e4b0
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
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 [ebx]
fadd dword [edi + 0xfc]
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 0x40dbe2
jmp 0x40dd13
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x160]
mov dword [esp + 0x10], 0xb
fld dword [edi + 4]
mov edx, dword [edi]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
fchs
fstp dword [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
call fcn.0040e590
lea edx, [esp + 0x48]
push edx
call fcn.0040e4b0
add esp, 0x10
lea eax, [esp + 0x3c]
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 [ebx]
fadd dword [edi + 0xfc]
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 0x40dc87
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 + 0x460]
fst dword [esp + 0x10]
fcomp qword [0x416b38]
fnstsw ax
test ah, 1
je 0x40dea1
fld dword [esp + 0x10]
call sub.MSVCRT.dll__CIasin
fld dword [0x416b30]
fsub st(1)
push 7
fstp dword [esp + 0x30]
fld qword [esi + 0x468]
fsub qword [0x416a98]
fstp dword [esp + 0x14]
fadd dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd dword [esp + 0x14]
fstp dword [esp + 0x30]
call dword [sym.imp.OPENGL32.dll_glBegin]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 2
mov dword [esp + 0x10], eax
jmp 0x40dda9
mov eax, dword [esp + 0x10]
fld dword [eax]
fcos
mov ecx, dword [esi + 0x264]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x3c]
push ecx
fld dword [eax]
fsin
mov eax, dword [esi + 0x360]
mov dword [esp + 0x84], eax
fstp dword [esp + 0x50]
fld st(0)
fmul dword [esp + 0x18]
fst dword [esp + 0x58]
fld dword [esp + 0x50]
fmul dword [esp + 0x18]
fst dword [esp + 0x20]
fstp dword [esp + 0x5c]
fadd dword [ebx]
fstp dword [esp + 0x64]
fld dword [esp + 0x20]
fadd dword [esi + 0x140]
fstp dword [esp + 0x68]
fld dword [esi + 0x264]
fadd dword [esi + 0x144]
fstp dword [esp + 0x6c]
fmul dword [esp + 0x1c]
fld st(0)
fadd dword [ebx]
fstp dword [esp + 0x70]
fld dword [esp + 0x50]
fmul dword [esp + 0x1c]
fst dword [esp + 0x20]
fadd dword [esi + 0x140]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x58]
push edx
fstp dword [esp + 0x78]
fld dword [esi + 0x144]
fadd dword [esi + 0x360]
fstp dword [esp + 0x7c]
fstp dword [esp + 0x80]
call fcn.0040e510
add esp, 8
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
lea edi, [esp + 0x54]
mov ebp, 4
push edi
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
add edi, 0xc
dec ebp
jne 0x40de74
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x40dda5
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret