Function at 0x415350
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
test ah, 0x10
je 0x415375
lea eax, [esi + 0x24]
push eax
add esi, 0x18
push esi
call fcn.004147a0
add esp, 8
pop esi
add esp, 8
ret
test ah, 0x40
je 0x41538f
lea ecx, [esi + 0x24]
push ecx
add esi, 0x18
push esi
call fcn.00414ae0
add esp, 8
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x40]
test eax, eax
je 0x415d70
mov edx, dword [eax*4 + 0x21367d0]
mov dword [0x21367c8], edx
mov eax, dword [esi + 4]
test al, 1
jne 0x4153cd
test ah, 2
je 0x4153c0
push 0
push esi
call fcn.00414d60
add esp, 8
jmp 0x4153d3
push 1
push esi
call fcn.00414d60
add esp, 8
jmp 0x4153d3
inc dword [0x210fba0]
call dword [sym.imp.OPENGL32.dll_glPushMatrix]
mov eax, dword [esi + 0x18]
mov dword [0x2137820], eax
mov ecx, dword [esi + 0x1c]
mov dword [0x2137824], ecx
mov edx, dword [esi + 0x20]
mov dword [0x2137828], edx
mov dword [0x213782c], 0
mov eax, dword [esi + 0x24]
mov dword [0x2137830], eax
mov ecx, dword [esi + 0x28]
mov dword [0x2137834], ecx
mov edx, dword [esi + 0x2c]
mov dword [0x2137838], edx
mov dword [0x213783c], 0
mov eax, dword [esi + 0x30]
mov dword [0x2137840], eax
mov ecx, dword [esi + 0x34]
mov dword [0x2137844], ecx
mov edx, dword [esi + 0x38]
mov dword [0x2137848], edx
mov dword [0x213784c], 0
mov eax, dword [esi + 0xc]
mov dword [0x2137850], eax
mov ecx, dword [esi + 0x10]
mov dword [0x2137854], ecx
mov edx, dword [esi + 0x14]
push 0x2137820
mov dword [0x2137858], edx
mov dword [0x213785c], 0x3f800000
call dword [sym.imp.OPENGL32.dll_glMultMatrixf]
fld dword [esi + 0x3c]
fcomp qword [0x4368a0]
fnstsw ax
test ah, 0x41
jne 0x415494
mov eax, dword [esi + 0x3c]
push eax
mov ecx, eax
push ecx
mov edx, eax
push edx
call dword [sym.imp.OPENGL32.dll_glScalef]
mov al, byte [esi + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.OPENGL32.dll_glDisable]
mov ebx, 2
test bl, al
push edi
je 0x4154b0
push 0xb44
call ebp
test byte [esi + 4], 4
je 0x4154bd
push 0xb71
call ebp
test byte [esi + 4], 8
je 0x4154cb
push 0
call dword [sym.imp.OPENGL32.dll_glDepthMask]
test dword [esi + 4], 0x10000
mov edi, dword [sym.imp.OPENGL32.dll_glMatrixMode]
je 0x415537
push 0x1702
call edi
call dword [sym.imp.OPENGL32.dll_glLoadIdentity]
fld dword [0x441908]
fmul qword [0x436ec0]
push 0
push 0
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glTranslatef]
fld dword [0x441908]
push 0x1700
fmul qword [0x438778]
fsin
fadd qword [0x436658]
fmul qword [0x436a28]
fadd qword [0x436658]
fmul qword [0x436a28]
fst dword [esi + 0x5c]
fst dword [esi + 0x58]
fstp dword [esi + 0x54]
call edi
mov eax, dword [esi + 0x48]
push eax
call fcn.00417350
mov eax, dword [esi + 0x44]
add esp, 4
test eax, eax
jne 0x415559
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0x80]
push edx
jmp 0x41555a
push eax
call fcn.0041b560
mov al, byte [esi + 4]
add esp, 4
test al, al
jns 0x415573
push 0
call fcn.0041b560
add esp, 4
push 0x438770
call fcn.004021e0
add esp, 4
test eax, eax
je 0x41558b
push 0xde1
call ebp
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb4]
add dword [0x20e010c], ecx
mov cl, byte [eax + 0xa0]
test cl, cl
mov edi, dword [eax + 0xa8]
mov ebp, dword [eax + 0xb0]
je 0x415b97
push 0x1d01
call dword [sym.imp.OPENGL32.dll_glShadeModel]
test byte [esi + 4], 0x20
je 0x4159eb
mov edx, dword [esi + 0x50]
mov eax, dword [0x21a02b8]
mov ecx, dword [esi + 0x4c]
push edx
push eax
push ecx
call fcn.00417020
add esp, 0xc
test eax, eax
je 0x4159eb
push 4
call dword [sym.imp.OPENGL32.dll_glBegin]
test byte [esi + 4], 1
je 0x4157d8
lea edx, [esi + 0x54]
push edx
call dword [sym.imp.OPENGL32.dll_glColor4fv]
cmp dword [esi + 0x50], ebx
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0xb4]
jne 0x4156fc
xor eax, eax
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x4159d0
mov ebx, dword [sym.imp.OPENGL32.dll_glNormal3fv]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov dword [esp + 0x14], eax
jmp 0x415640
mov esi, dword [esp + 0x14]
mov edi, 3
lea esp, [esp]
mov eax, dword [ecx + 0xb8]
movzx eax, word [eax + esi]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc0]
lea ecx, [eax + edx*4]
push ecx
call ebx
mov eax, dword [0x21367c8]
mov edx, dword [eax + 0xb8]
movzx ecx, word [edx + esi + 6]
mov edx, dword [eax + 0xb0]
lea eax, [edx + ecx*8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push 0x84c1
call dword [0x213789c]
mov ecx, dword [0x21367c8]
mov eax, dword [ecx + 0xb8]
movzx eax, word [eax + esi]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xa8]
lea ecx, [eax + edx*4]
push ecx
call ebp
mov ecx, dword [0x21367c8]
add esi, 2
dec edi
jne 0x415650
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx + 0xb4]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x415640
call dword [sym.imp.OPENGL32.dll_glEnd]
call fcn.00417290
push 0x1d00
call dword [sym.imp.OPENGL32.dll_glShadeModel]
jmp 0x415d12
xor eax, eax
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x4159d0
mov ebx, dword [sym.imp.OPENGL32.dll_glNormal3fv]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov esi, dword [esp + 0x14]
mov edi, 3
lea esp, [esp]
mov edx, dword [ecx + 0xb8]
movzx eax, word [edx + esi]
mov ecx, dword [ecx + 0xc0]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
push edx
call ebx
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb8]
movzx edx, word [ecx + esi + 6]
mov eax, dword [eax + 0xb0]
mov ecx, dword [eax + edx*8 + 4]
lea eax, [eax + edx*8]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glTexCoord2f]
mov ecx, dword [0x21367c8]
mov eax, dword [ecx + 0xb8]
movzx eax, word [eax + esi]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xa8]
lea ecx, [eax + edx*4]
push ecx
call ebp
mov ecx, dword [0x21367c8]
add esi, 2
dec edi
jne 0x415730
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx + 0xb4]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x415720
call dword [sym.imp.OPENGL32.dll_glEnd]
call fcn.00417290
push 0x1d00
call dword [sym.imp.OPENGL32.dll_glShadeModel]
jmp 0x415d12
cmp dword [esi + 0x50], ebx
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0xb4]
jne 0x4158f1
xor eax, eax
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x4159d0
mov ebx, dword [sym.imp.OPENGL32.dll_glNormal3fv]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov dword [esp + 0x14], eax
jmp 0x415810
mov esi, dword [esp + 0x14]
mov edi, 3
lea esp, [esp]
mov edx, dword [ecx + 0xb8]
movzx eax, word [edx + esi]
mov ecx, dword [ecx + 0xc0]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
push edx
call ebx
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb8]
movzx edx, word [ecx + esi + 6]
mov eax, dword [eax + 0xb0]
mov ecx, dword [eax + edx*8 + 4]
lea eax, [eax + edx*8]
mov edx, dword [eax]
push ecx
push edx
push 0x84c1
call dword [0x213789c]
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb8]
movzx eax, word [ecx + esi]
lea edx, [eax + eax*2]
lea eax, [edx*4 + 0x21337c8]
push eax
call dword [sym.imp.OPENGL32.dll_glColor3fv]
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0xb8]
movzx eax, word [edx + esi]
mov ecx, dword [ecx + 0xa8]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
push edx
call ebp
mov ecx, dword [0x21367c8]
add esi, 2
dec edi
jne 0x415820
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx + 0xb4]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x415810
call dword [sym.imp.OPENGL32.dll_glEnd]
call fcn.00417290
push 0x1d00
call dword [sym.imp.OPENGL32.dll_glShadeModel]
jmp 0x415d12
xor eax, eax
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x4159d0
mov ebx, dword [sym.imp.OPENGL32.dll_glNormal3fv]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov dword [esp + 0x14], eax
nop
mov esi, dword [esp + 0x14]
mov edi, 3
lea esp, [esp]
mov eax, dword [ecx + 0xb8]
movzx eax, word [eax + esi]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc0]
lea ecx, [eax + edx*4]
push ecx
call ebx
mov eax, dword [0x21367c8]
mov edx, dword [eax + 0xb8]
movzx ecx, word [edx + esi + 6]
mov edx, dword [eax + 0xb0]
lea eax, [edx + ecx*8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glTexCoord2f]
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb8]
movzx eax, word [ecx + esi]
lea edx, [eax + eax*2]
lea eax, [edx*4 + 0x21337c8]
push eax
call dword [sym.imp.OPENGL32.dll_glColor3fv]
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0xb8]
movzx eax, word [edx + esi]
mov ecx, dword [ecx + 0xa8]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
push edx
call ebp
mov ecx, dword [0x21367c8]
add esi, 2
dec edi
jne 0x415920
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [ecx + 0xb4]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x415910
call dword [sym.imp.OPENGL32.dll_glEnd]
call fcn.00417290
push 0x1d00
call dword [sym.imp.OPENGL32.dll_glShadeModel]
jmp 0x415d12
push 4
call dword [sym.imp.OPENGL32.dll_glBegin]
test byte [esi + 4], 1
je 0x415aa4
add esi, 0x54
push esi
call dword [sym.imp.OPENGL32.dll_glColor4fv]
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
mov esi, dword [eax + 0xb8]
mov dword [esp + 0x10], 0
jle 0x415b81
mov ebx, dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov edi, edi
movzx eax, word [esi + 6]
lea ecx, [ebp + eax*8]
push ecx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi]
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
push eax
call ebx
movzx ecx, word [esi + 8]
lea edx, [ebp + ecx*8]
push edx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
push ecx
call ebx
movzx edx, word [esi + 0xa]
lea eax, [ebp + edx*8]
push eax
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 4]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*4]
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0xb4]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x415a30
jmp 0x415b81
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
mov esi, dword [eax + 0xb8]
mov dword [esp + 0x10], 0
jle 0x415b81
mov ebx, dword [sym.imp.OPENGL32.dll_glVertex3fv]
jmp 0x415ad0
movzx edx, word [esi + 6]
lea eax, [ebp + edx*8]
push eax
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi]
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 0x21337c8]
push edx
call dword [sym.imp.OPENGL32.dll_glColor3fv]
movzx eax, word [esi]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
push ecx
call ebx
movzx edx, word [esi + 8]
lea eax, [ebp + edx*8]
push eax
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 2]
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 0x21337c8]
push edx
call dword [sym.imp.OPENGL32.dll_glColor3fv]
movzx eax, word [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
push ecx
call ebx
movzx edx, word [esi + 0xa]
lea eax, [ebp + edx*8]
push eax
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 4]
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 0x21337c8]
push edx
call dword [sym.imp.OPENGL32.dll_glColor3fv]
movzx eax, word [esi + 4]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [0x21367c8]
mov ecx, dword [edx + 0xb4]
inc eax
add esi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x415ad0
call dword [sym.imp.OPENGL32.dll_glEnd]
push 0x1d00
call dword [sym.imp.OPENGL32.dll_glShadeModel]
jmp 0x415d12
push 4
call dword [sym.imp.OPENGL32.dll_glBegin]
test byte [esi + 4], 1
je 0x415c54
add esi, 0x54
push esi
call dword [sym.imp.OPENGL32.dll_glColor4fv]
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
mov esi, dword [eax + 0xb8]
mov dword [esp + 0x10], 0
jle 0x415d0c
mov ebx, dword [sym.imp.OPENGL32.dll_glVertex3fv]
lea ebx, [ebx]
movzx eax, word [esi + 6]
lea ecx, [ebp + eax*8]
push ecx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi]
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
push eax
call ebx
movzx ecx, word [esi + 8]
lea edx, [ebp + ecx*8]
push edx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
push ecx
call ebx
movzx edx, word [esi + 0xa]
lea eax, [ebp + edx*8]
push eax
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 4]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*4]
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x21367c8]
mov edx, dword [ecx + 0xb4]
inc eax
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x415be0
jmp 0x415d0c
mov eax, dword [0x21367c8]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
mov esi, dword [eax + 0xb8]
mov dword [esp + 0x10], 0
jle 0x415d0c
mov ebx, dword [sym.imp.OPENGL32.dll_glVertex3fv]
mov dword [esp + 0x14], 0x21337c8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.OPENGL32.dll_glColor3fv]
movzx eax, word [esi + 6]
lea ecx, [ebp + eax*8]
push ecx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi]
lea edx, [eax + eax*2]
lea eax, [edi + edx*4]
push eax
call ebx
movzx ecx, word [esi + 8]
lea edx, [ebp + ecx*8]
push edx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
push ecx
call ebx
movzx edx, word [esi + 0xa]
lea eax, [ebp + edx*8]
push eax
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
movzx eax, word [esi + 4]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*4]
push edx
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x21367c8]
add edx, 0xc
inc eax
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0xb4]
add esi, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x415c83
call dword [sym.imp.OPENGL32.dll_glEnd]
call dword [sym.imp.OPENGL32.dll_glPopMatrix]
mov esi, dword [esp + 0x1c]
test byte [esi + 4], 4
mov edi, dword [sym.imp.OPENGL32.dll_glEnable]
je 0x415d2f
push 0xb71
call edi
test byte [esi + 4], 8
je 0x415d3d
push 1
call dword [sym.imp.OPENGL32.dll_glDepthMask]
test byte [esi + 4], 2
je 0x415d4a
push 0xb44
call edi
test dword [esi + 4], 0x10000
pop edi
pop ebp
pop ebx
je 0x415d70
mov esi, dword [sym.imp.OPENGL32.dll_glMatrixMode]
push 0x1702
call esi
call dword [sym.imp.OPENGL32.dll_glLoadIdentity]
push 0x1700
call esi
pop esi
add esp, 8
ret