Function at 0x509f90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push 0x104
push eax
call esi
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call esi
push str.glGetDoublev
push 0x5f0304
push str.glGetIntegerv
push 0x5f00d4
push str.glPassThrough
push 0x5f02a8
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push str.glFeedbackBuffer
push 0x5f01c8
push str.glSelectBuffer
repne scasb al, byte es:[edi]
push 0x5f01f4
push str.glRenderMode
push 0x5f02c8
push str.glLoadName
mov eax, dword [str.Opengl32.dll]
push 0x5f0080
push str.glPopName
push 0x5f01e0
not ecx
push str.glPushName
dec ecx
push 0x5f0074
push str.glInitNames
push 0x5f00a0
lea edx, [esp + ecx + 0x58]
push str.glDeleteTextures
push 0x5f0344
push str.glIsTexture
mov dword [edx], eax
mov eax, dword [0x5ae2cc]
push 0x5f0118
push str.glEvalMesh2
push 0x5f029c
mov dword [edx + 4], eax
mov eax, dword [0x5ae2d0]
push str.glMapGrid2d
push 0x5f0308
push str.glEvalCoord2d
mov dword [edx + 8], eax
mov ax, word [0x5ae2d4]
push 0x5f01cc
push str.glMap2d
push 0x5f026c
mov word [edx + 0xc], ax
mov edx, dword [str.glu32.dll]
mov eax, dword [0x5ae24c]
lea ecx, [esp + ecx + 0x18c]
push str.glEvalMesh1
push 0x5f0298
push str.glMapGrid1d
mov dword [ecx], edx
mov dx, word [0x5ae250]
push 0x5f0300
push str.glEvalCoord1d
push 0x5f01bc
mov dword [ecx + 4], eax
mov al, byte [0x5ae252]
push str.glMap1d
push 0x5f0270
push str.glGetFloatv
mov word [ecx + 8], dx
push 0x5f01a8
push str.glPointSize
push 0x5f0340
mov byte [ecx + 0xa], al
push str.glLineWidth
push 0x5f02f0
push str.glPushAttrib
push 0x5f00d0
push str.glPopAttrib
push 0x5f0360
push str.wglUseFontOutlinesA
push 0x5f0228
push str.wglDeleteContext
push 0x5f0264
push str.wglMakeCurrent
push 0x5f0314
push str.wglCreateContext
push 0x5f00b4
push str.glGetError
push 0x5f0094
push str.glGetBooleanv
push 0x5f02d0
push str.glVertex3dv
push 0x5f023c
push str.glNormal3dv
push 0x5f0260
push str.glPixelZoom
push 0x5f0278
push str.glPixelStorei
push 0x5f01b4
push str.glCopyPixels
push 0x5f008c
push str.glBitmap
push 0x5f019c
push str.glRasterPos2d
push 0x5f0268
push str.glCallLists
push 0x5f02e0
push str.glListBase
push 0x5f011c
push str.glDeleteLists
push 0x5f0134
push str.glIsList
push 0x5f0358
push str.glCallList
push 0x5f013c
push str.glGenLists
push 0x5f0178
push str.glEndList
push 0x5f01ac
push str.glNewList
push 0x5f0068
push str.glTexGend
push 0x5f0190
push str.glTexGendv
push 0x5f02d4
push str.glGenTextures
push 0x5f00a4
push str.glTexEnvf
push 0x5f01a0
push str.glTexEnvfv
push 0x5f030c
push str.glTexCoord1d
push 0x5f0240
push str.glTexCoord2d
push 0x5f0238
push str.glTexImage2D
push 0x5f0128
push str.glTexImage1D
push 0x5f0120
push str.glTexParameterf
push 0x5f00c4
push str.glTexParameterfv
push 0x5f0320
push str.glBindTexture
push 0x5f0144
push str.glShadeModel
push 0x5f0234
push str.glNormal3d
push 0x5f0114
push str.glFogf
push 0x5f00b8
push str.glFogfv
push 0x5f02d8
push str.glColorMaterial
push 0x5f007c
push str.glMaterialf
push 0x5f02f8
push str.glMaterialfv
push 0x5f02c4
push str.glLightModelf
push 0x5f0250
push str.glLightModelfv
push 0x5f0098
push str.glLightf
push 0x5f00c0
push str.glLightfv
push 0x5f034c
push str.glDisable
push 0x5f0090
push str.glEnable
push 0x5f01fc
push str.glIndexf
push 0x5f00d8
push str.glColor4d
push 0x5f0210
push str.glClearIndex
push 0x5f0130
push str.glClearStencil
push 0x5f01b0
push str.glClearDepth
push 0x5f00cc
push str.glClearColor
push 0x5f01e4
push str.glClearAccum
push 0x5f006c
push str.glClear
push 0x5f02ac
push str.glAccum
push 0x5f0274
push str.glFlush
push 0x5f0318
push str.glFinish
push 0x5f0124
push str.glStencilOp
push 0x5f0348
push str.glStencilFunc
push 0x5f00bc
push str.glDepthFunc
push 0x5f00b0
push str.glBlendFunc
push 0x5f02dc
push str.glAlphaFunc
push 0x5f02fc
push str.glHint
push 0x5f00e0
push str.glScissor
push 0x5f02a4
push str.glEdgeFlag
push 0x5f031c
push str.glPolygonStipple
push 0x5f0078
push str.glLineStipple
push 0x5f0084
push str.glPolygonMode
push 0x5f00dc
push str.glClipPlane
push 0x5f0148
push str.glFrontFace
push 0x5f0140
push str.glRectd
push 0x5f014c
push str.glVertex3d
push 0x5f0310
push str.glEnd
push 0x5f01ec
push str.glBegin
push 0x5f0088
push str.glMultMatrixd
push 0x5f012c
push str.glLoadMatrixd
push 0x5f0354
push str.glPopMatrix
push 0x5f02b0
push str.glPushMatrix
push 0x5f00c8
push str.glViewport
push 0x5f02bc
push str.glOrtho
push 0x5f0248
push str.glFrustum
push 0x5f0198
push str.glScaled
push 0x5f0338
push str.glRotated
push 0x5f01b8
push str.glTranslated
push 0x5f02b4
push str.glMatrixMode
push 0x5f01d8
push str.glLoadIdentity
push 0x5f0204
lea ecx, [esp + 0x380]
push 0x6f
push ecx
push 0x5f0378
call fcn.00509f20
add esp, 0x384
test al, al
je 0x50a55a
push str.gluUnProject
push 0x5f017c
push str.gluProject
push 0x5f0280
push str.gluPickMatrix
push 0x5f02b8
push str.gluDeleteQuadric
push 0x5f035c
push str.gluPartialDisk
push 0x5f027c
push str.gluDisk
push 0x5f0214
push str.gluCylinder
push 0x5f022c
push str.gluSphere
push 0x5f02e4
push str.gluNewQuadric
push 0x5f02cc
push str.gluQuadricTexture
push 0x5f0230
push str.gluQuadricOrientation
push 0x5f01dc
push str.gluQuadricNormals
push 0x5f0350
push str.gluQuadricDrawStyle
push 0x5f033c
push str.gluLookAt
push 0x5f0194
push str.gluBuild2DMipmaps
push 0x5f0174
push str.gluPerspective
push 0x5f00f0
lea edx, [esp + 0x18c]
push 0x10
push edx
push 0x5f037c
call fcn.00509f20
add esp, 0x8c
test al, al
je 0x50a55a
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
push 0x5adc38
xor esi, esi
call fcn.0050a5c0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret