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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
fld dword [esi + 0x450]
fchs
fstp dword [esp + 0x20]
fld dword [esi + 0x144]
mov eax, dword [esi + 0x454]
fabs
fcomp qword [0x416a40]
mov dword [esp + 0x1c], eax
fnstsw ax
test ah, 1
je 0x40a954
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0xbf800000
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov ebx, dword [sym.imp.OPENGL32.dll_glVertex3f]
push 0
push 0
push 0
call ebx
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea edi, [esi + 0x3cc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0xb
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x40a6d5
call dword [sym.imp.OPENGL32.dll_glEnd]
push 7
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0xbf800000
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
fld dword [esi + 0x35c]
fadd dword [esi + 0x144]
push ecx
lea eax, [esi + 0x354]
mov dword [esp + 0x1c], eax
fstp dword [esp]
fld dword [esi + 0x358]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [esi + 0x13c]
fadd dword [eax]
push ecx
fstp dword [esp]
call ebx
fld dword [esi + 0x3d4]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [esi + 0x3d0]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [esi + 0x13c]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebx
push edi
call ebp
mov edx, dword [esp + 0x18]
push edx
call ebp
call dword [sym.imp.OPENGL32.dll_glEnd]
push 6
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0xbf800000
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov eax, dword [esi + 0x144]
mov ecx, dword [esi + 0x140]
mov edx, dword [esi + 0x13c]
push eax
push ecx
push edx
call ebx
lea eax, [esi + 0x444]
lea edi, [esi + 0x448]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xb
fld dword [edi + 4]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [edi]
fadd dword [esi + 0x140]
push ecx
mov ecx, dword [esp + 0x18]
fstp dword [esp]
fld dword [esi + 0x13c]
fadd dword [ecx]
push ecx
fstp dword [esp]
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub edi, 0xc
sub ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x40a7cb
call dword [sym.imp.OPENGL32.dll_glEnd]
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
lea edi, [esi + 0x15c]
mov dword [esp + 0x14], 0xb
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fmul dword [edi + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x24]
fmul dword [edi]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea eax, [edi + 0xfc]
push eax
call ebp
lea ecx, [edi + 0x1f8]
push ecx
call ebp
mov eax, dword [esp + 0x14]
add edi, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x40a82b
lea edi, [esi + 0x1d4]
mov dword [esp + 0x14], 0xb
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fmul dword [edi + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x24]
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 [esi + 0x13c]
push ecx
fstp dword [esp]
call ebx
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 ebx
mov eax, dword [esp + 0x14]
add edi, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x40a879
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
fmul dword [esi + 0x160]
push eax
push ecx
fstp dword [esp]
fld dword [esp + 0x24]
fmul dword [esi + 0x15c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
add esi, 0x258
push esi
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call ebp
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
fld dword [esi + 0x13c]
lea edi, [esi + 0x13c]
push 6
fabs
fld dword [esi + 0x140]
fabs
faddp st(1)
fcomp qword [0x416a40]
fnstsw ax
test ah, 1
je 0x40aae5
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0xbf800000
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3f]
push 0
push 0
push 0
call ebp
lea ebx, [esi + 0x354]
mov dword [esp + 0x18], 0x15
fld dword [esi + 0x144]
fcomp dword [0x416a1c]
fnstsw ax
test ah, 0x41
jne 0x40a9cc
push ebx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
jmp 0x40a9f0
fld dword [ebx + 8]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 4]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi]
fadd dword [ebx]
push ecx
fstp dword [esp]
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40a9b0
call dword [sym.imp.OPENGL32.dll_glEnd]
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x15c]
mov dword [esp + 0x18], 0x15
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fmul dword [ebx + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x24]
fmul dword [ebx]
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 0x40aa69
lea eax, [ebx + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ecx, [ebx + 0x1f8]
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
jmp 0x40aac5
fld dword [ebx + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0xfc]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
fld dword [ebx + 0x200]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x1fc]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0x1f8]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40aa1a
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0xbf800000
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glNormal3f]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3f]
push 0
push 0
push 0
call ebp
lea ecx, [esi + 0x444]
lea ebx, [esi + 0x448]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x15
jmp 0x40ab26
mov ecx, dword [esp + 0x10]
fld dword [esi + 0x144]
fcomp qword [0x416a30]
fnstsw ax
test ah, 0x41
jne 0x40ab42
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
jmp 0x40ab65
fld dword [ebx + 4]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ecx]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub ebx, 0xc
sub ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x40ab22
call dword [sym.imp.OPENGL32.dll_glEnd]
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x15c]
mov dword [esp + 0x18], 0x15
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fmul dword [ebx + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x24]
fmul dword [ebx]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
lea eax, [ebx + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ecx, [ebx + 0x1f8]
push ecx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40ab9a
call dword [sym.imp.OPENGL32.dll_glEnd]
push 8
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x15c]
mov dword [esp + 0x18], 0x15
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
fmul dword [ebx + 4]
push edx
push ecx
fstp dword [esp]
fld dword [esp + 0x24]
fmul dword [ebx]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glNormal3f]
fld dword [ebx + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0xfc]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
fld dword [ebx + 0x200]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x1fc]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0x1f8]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40abfe
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esi + 0x144]
fcomp qword [0x416a30]
push 8
fnstsw ax
test ah, 0x41
jne 0x40ad50
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x1d4]
mov dword [esp + 0x18], 0xb
fld dword [ebx + 4]
fchs
fstp dword [esp + 0x24]
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edi
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
call fcn.0040e590
lea eax, [esp + 0x3c]
push eax
call fcn.0040e4b0
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
fld dword [ebx + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi]
fadd dword [ebx + 0xfc]
push ecx
fstp dword [esp]
call ebp
lea eax, [ebx + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40acbf
jmp 0x40adf0
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x15c]
mov dword [esp + 0x18], 0xb
fld dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
fchs
fstp dword [esp + 0x28]
push edi
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0
call fcn.0040e590
lea edx, [esp + 0x3c]
push edx
call fcn.0040e4b0
add esp, 0x10
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
fld dword [ebx + 0x104]
fadd dword [esi + 0x144]
push ecx
fstp dword [esp]
fld dword [ebx + 0x100]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx + 0xfc]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
lea eax, [ebx + 0xfc]
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40ad64
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esi + 0x140]
fld dword [edi]
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 + 0x458]
fst dword [esp + 0x10]
fcomp qword [0x416b38]
fnstsw ax
test ah, 1
je 0x40b0e9
fld dword [esp + 0x10]
call sub.MSVCRT.dll__CIasin
fld dword [0x416b30]
fsub st(1)
push 7
fstp dword [esp + 0x24]
fld qword [esi + 0x460]
fsub qword [0x416a98]
fstp dword [esp + 0x14]
fadd dword [esp + 0x14]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x14]
fstp dword [esp + 0x24]
call dword [sym.imp.OPENGL32.dll_glBegin]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], eax
jmp 0x40ae86
mov eax, dword [esp + 0x10]
fld dword [eax]
fcos
mov ecx, dword [esi + 0x260]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x30]
push ecx
fld dword [eax]
fsin
mov eax, dword [esi + 0x35c]
mov dword [esp + 0x78], eax
fstp dword [esp + 0x44]
fld st(0)
fmul dword [esi + 0x44]
fst dword [esp + 0x4c]
fld dword [esp + 0x44]
fmul dword [esi + 0x44]
fst dword [esp + 0x1c]
fstp dword [esp + 0x50]
fadd dword [edi]
fstp dword [esp + 0x58]
fld dword [esp + 0x1c]
fadd dword [esi + 0x140]
fstp dword [esp + 0x5c]
fld dword [esi + 0x144]
fadd dword [esi + 0x260]
fstp dword [esp + 0x60]
fmul dword [esi + 0x150]
fld st(0)
fadd dword [edi]
fstp dword [esp + 0x64]
fld dword [esp + 0x44]
fmul dword [esi + 0x150]
fst dword [esp + 0x1c]
fadd dword [esi + 0x140]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x4c]
push edx
fstp dword [esp + 0x6c]
fld dword [esi + 0x35c]
fadd dword [esi + 0x144]
fstp dword [esp + 0x70]
fstp dword [esp + 0x74]
call fcn.0040e510
add esp, 8
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
lea ebx, [esp + 0x48]
mov dword [esp + 0x18], 4
push ebx
call dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40af4d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x40ae82
call dword [sym.imp.OPENGL32.dll_glEnd]
fld dword [esi + 0x144]
fcomp qword [0x416a30]
push 8
fnstsw ax
test ah, 0x41
jne 0x40b046
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x3d4]
mov dword [esp + 0x18], 0xb
fld dword [ebx - 0x1fc]
fchs
fstp dword [esp + 0x24]
mov ecx, dword [ebx - 0x200]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0
call fcn.0040e590
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040e4b0
add esp, 0x10
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
fld dword [esi + 0x144]
fadd dword [ebx]
push ecx
fstp dword [esp]
fld dword [ebx - 4]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [ebx - 8]
fadd dword [edi]
push ecx
fstp dword [esp]
call ebp
mov eax, dword [ebx]
mov ecx, dword [ebx - 4]
mov edx, dword [ebx - 8]
push eax
push ecx
push edx
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40afaf
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
call dword [sym.imp.OPENGL32.dll_glBegin]
lea ebx, [esi + 0x35c]
mov dword [esp + 0x18], 0xb
fld dword [ebx - 0x1fc]
mov eax, dword [ebx - 0x200]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
fchs
fstp dword [esp + 0x28]
push edi
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
call fcn.0040e590
lea eax, [esp + 0x3c]
push eax
call fcn.0040e4b0
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.OPENGL32.dll_glNormal3fv]
fld dword [esi + 0x144]
fadd dword [ebx]
push ecx
fstp dword [esp]
fld dword [ebx - 4]
fadd dword [esi + 0x140]
push ecx
fstp dword [esp]
fld dword [edi]
fadd dword [ebx - 8]
push ecx
fstp dword [esp]
call ebp
mov edx, dword [ebx]
mov eax, dword [ebx - 4]
mov ecx, dword [ebx - 8]
push edx
push eax
push ecx
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40b05a
call dword [sym.imp.OPENGL32.dll_glEnd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret