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

Disassembly:
sub esp, 0x38
push edi
call dword [sym.imp.OPENGL32.dll_glPushMatrix]
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x78]
push eax
call fcn.00417350
mov al, byte [edi + 0x7c]
add esp, 4
test al, 4
je 0x4180ac
push 0xb71
call dword [sym.imp.OPENGL32.dll_glDisable]
push ebx
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebx + 0x14]
push esi
push ecx
call fcn.0041b560
mov eax, dword [edi + 0x78]
add esp, 4
cmp eax, 3
jne 0x4180ee
mov esi, dword [sym.imp.OPENGL32.dll_glTexEnvf]
push 0x47057000
push 0x2200
push 0x2300
call esi
push 0x43820000
push 0x8571
push 0x2300
call esi
push 7
call dword [sym.imp.OPENGL32.dll_glBegin]
fild dword [edi + 0x70]
mov eax, dword [ebx + 0x58]
test eax, eax
fdivr qword [0x436658]
mov esi, dword [ebx + 0x5c]
mov dword [esp + 0x28], 0
fstp dword [esp + 0x24]
fild dword [edi + 0x74]
fdivr qword [0x436658]
fstp dword [esp + 0x20]
jle 0x418690
mov edi, dword [sym.imp.OPENGL32.dll_glTexCoord2f]
push ebp
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
fld dword [esi]
mov ecx, dword [esp + 0x50]
fcomp dword [ecx + 0x8c]
fnstsw ax
test ah, 0x41
je 0x418674
mov eax, dword [ecx + 0x40]
dec eax
je 0x4181e2
dec eax
je 0x418171
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
jmp 0x418223
fld dword [esi + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0042af90
push eax
call fcn.00410240
fld dword [esp + 0x1c]
fmul dword [esi + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x20]
push edx
fadd dword [ebx + 0x20]
lea eax, [esp + 0x20]
mov dword [esp + 0x44], ecx
push eax
fstp dword [esp + 0x4c]
fld dword [esi + 8]
call fcn.0042af90
push eax
call fcn.00410240
fld dword [esp + 0x4c]
fmul dword [esi + 0x10]
add esp, 0x18
fmul dword [esp + 0x14]
fld dword [esp + 0x34]
fmul dword [esi + 0x10]
fmul dword [esp + 0x10]
fxch st(1)
fadd dword [ebx + 0x18]
fstp dword [esp + 0x30]
fadd dword [ebx + 0x1c]
fstp dword [esp + 0x34]
jmp 0x418223
fld dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0042af90
push eax
call fcn.00410240
fld dword [esp + 0x20]
fmul dword [esi + 0xc]
add esp, 0xc
fadd dword [ebx + 0x18]
fstp dword [esp + 0x30]
fld dword [esp + 0x10]
fmul dword [esi + 0xc]
fadd dword [ebx + 0x1c]
fstp dword [esp + 0x34]
fld dword [esi + 0x10]
fadd dword [ebx + 0x20]
fstp dword [esp + 0x38]
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x50]
mov eax, ecx
cdq
idiv dword [ebx + 0x70]
mov eax, ecx
mov dword [esp + 0x20], edx
cdq
fild dword [esp + 0x20]
idiv dword [ebx + 0x74]
fmul dword [esp + 0x28]
fstp dword [esp + 0x18]
fld dword [0x4369fc]
fsub dword [esp + 0x24]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
lea eax, [esi + 0x28]
push eax
fmul dword [esp + 0x28]
fsubp st(1)
fstp dword [esp + 0x20]
call dword [sym.imp.OPENGL32.dll_glColor4fv]
mov eax, dword [ebx + 0x44]
dec eax
je 0x418546
dec eax
je 0x418426
fld dword [0x20dacec]
mov ebx, dword [esp + 0x1c]
fadd dword [0x20dace0]
mov ecx, dword [esp + 0x18]
fld dword [esi + 0x20]
push ebx
fchs
push ecx
fmulp st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x44]
fld dword [0x20dacf0]
fadd dword [0x20dace4]
fld dword [esi + 0x20]
fchs
fmulp st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x48]
fld dword [0x20dacf4]
fadd dword [0x20dace8]
fld dword [esi + 0x20]
fchs
fmulp st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x4c]
call edi
lea edx, [esp + 0x3c]
push edx
call ebp
fld dword [esi + 0x20]
fchs
push ebx
fmul dword [0x20dacec]
fld dword [0x20dace0]
fmul dword [esi + 0x20]
faddp st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x40]
fld dword [esi + 0x20]
fchs
fmul dword [0x20dacf0]
fld dword [0x20dace4]
fmul dword [esi + 0x20]
faddp st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x44]
fld dword [esi + 0x20]
fchs
fmul dword [0x20dacf4]
fld dword [0x20dace8]
fmul dword [esi + 0x20]
faddp st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x48]
fld dword [esp + 0x1c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
push ebx
call edi
lea eax, [esp + 0x3c]
push eax
call ebp
fld dword [0x20dacec]
fadd dword [0x20dace0]
fmul dword [esi + 0x20]
fadd dword [esp + 0x30]
fstp dword [esp + 0x3c]
fld dword [0x20dacf0]
fadd dword [0x20dace4]
fmul dword [esi + 0x20]
fadd dword [esp + 0x34]
fstp dword [esp + 0x40]
fld dword [0x20dacf4]
fadd dword [0x20dace8]
fmul dword [esi + 0x20]
fadd dword [esp + 0x38]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call edi
lea edx, [esp + 0x3c]
push edx
call ebp
fld dword [esi + 0x20]
fchs
mov eax, dword [esp + 0x1c]
fmul dword [0x20dace0]
fld dword [0x20dacec]
mov ecx, dword [esp + 0x18]
fmul dword [esi + 0x20]
push eax
push ecx
faddp st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x44]
fld dword [esi + 0x20]
fchs
fmul dword [0x20dace4]
fld dword [0x20dacf0]
fmul dword [esi + 0x20]
faddp st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x48]
fld dword [esi + 0x20]
fchs
fmul dword [0x20dace8]
fld dword [0x20dacf4]
fmul dword [esi + 0x20]
faddp st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x4c]
call edi
lea edx, [esp + 0x3c]
push edx
jmp 0x418661
fld dword [esi + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0042af90
push eax
call fcn.00410240
fld dword [esp + 0x1c]
fmul dword [esi + 0x20]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
fstp dword [esp + 0x1c]
add esp, 0xc
fld dword [esp + 0x14]
push ebx
fmul dword [esi + 0x20]
push eax
mov dword [esp + 0x4c], edx
fstp dword [esp + 0x1c]
fld dword [esp + 0x38]
fsub dword [esp + 0x1c]
fld dword [esp + 0x18]
fchs
fsubp st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x3c]
fsub dword [esp + 0x18]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x48]
call edi
lea ecx, [esp + 0x3c]
push ecx
call ebp
fld dword [esp + 0x30]
fadd dword [esp + 0x14]
push ebx
fld dword [esp + 0x14]
fchs
fsubp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fsub dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
push ebx
call edi
lea edx, [esp + 0x3c]
push edx
call ebp
fld dword [esp + 0x30]
fadd dword [esp + 0x14]
fsub dword [esp + 0x10]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fadd dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0x1c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
push ebx
call edi
lea ecx, [esp + 0x3c]
push ecx
call ebp
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
fsub dword [esp + 0x10]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fsub dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call edi
lea ecx, [esp + 0x3c]
push ecx
jmp 0x418661
fld dword [esi + 0x24]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0042af90
push eax
call fcn.00410240
fld dword [esp + 0x1c]
fmul dword [esi + 0x20]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
fstp dword [esp + 0x1c]
add esp, 0xc
fld dword [esp + 0x14]
push ebx
fmul dword [esi + 0x20]
push edx
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x38]
fsub dword [esp + 0x1c]
fld dword [esp + 0x18]
fchs
fsubp st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x40]
fsub dword [esp + 0x18]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x4c]
call edi
lea eax, [esp + 0x3c]
push eax
call ebp
fld dword [esp + 0x30]
fadd dword [esp + 0x14]
push ebx
fld dword [esp + 0x14]
fchs
fsubp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fsub dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x48]
fld dword [esp + 0x1c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
push ebx
call edi
lea ecx, [esp + 0x3c]
push ecx
call ebp
fld dword [esp + 0x30]
fadd dword [esp + 0x14]
fsub dword [esp + 0x10]
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push edx
push ebx
call edi
lea eax, [esp + 0x3c]
push eax
call ebp
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
fsub dword [esp + 0x10]
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fsub dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call edi
lea eax, [esp + 0x3c]
push eax
call ebp
mov eax, dword [0x20e010c]
mov ebx, dword [esp + 0x4c]
add eax, 2
mov dword [0x20e010c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x58]
inc eax
add esi, 0x38
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x418133
mov edi, dword [esp + 0x50]
pop ebp
call dword [sym.imp.OPENGL32.dll_glEnd]
test byte [edi + 0x7c], 4
pop esi
pop ebx
je 0x4186a9
push 0xb71
call dword [sym.imp.OPENGL32.dll_glEnable]
cmp dword [edi + 0x78], 3
pop edi
jne 0x4186c5
push 0x46040000
push 0x2200
push 0x2300
call dword [sym.imp.OPENGL32.dll_glTexEnvf]
add esp, 0x38
jmp dword [sym.imp.OPENGL32.dll_glPopMatrix]