Function at 0x464cb0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x428
push ebx
mov ebx, dword [esp + 0x434]
push ebp
mov ebp, dword [esp + 0x434]
xor eax, eax
push esi
push edi
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [ebp], 1
mov edi, 1
push edi
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x4661c4
cmp al, 0x7d
je 0x4662e5
push 0x4c6860
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464dcd
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x4661e1
push str._whiteimage
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464d58
mov eax, dword [0xc37c18]
mov dword [ebp + 4], eax
jmp 0x464ced
push str._lightmap
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464d93
mov dword [ebp + 0x54], edi
mov eax, dword [0x8fa850]
test eax, eax
jge 0x464d84
mov ecx, dword [0xc37c18]
mov dword [ebp + 4], ecx
jmp 0x464ced
mov edx, dword [eax*4 + 0xc37c38]
mov dword [ebp + 4], edx
jmp 0x464ced
mov ecx, dword [0x8fa8d0]
mov edx, dword [0x8fa8cc]
xor eax, eax
test ecx, ecx
sete al
xor ecx, ecx
test edx, edx
sete cl
push 0x2901
push eax
push ecx
push esi
call fcn.0045fe20
add esp, 0x10
test eax, eax
mov dword [ebp + 4], eax
je 0x466203
jmp 0x464ced
push str.clampmap
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464e2e
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x46620b
mov eax, dword [0x8fa8d0]
xor edx, edx
test eax, eax
sete dl
push 0x2900
xor eax, eax
push edx
mov edx, dword [0x8fa8cc]
test edx, edx
sete al
push eax
push esi
call fcn.0045fe20
add esp, 0x10
test eax, eax
mov dword [ebp + 4], eax
je 0x466203
jmp 0x464ced
push str.animMap
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464eb8
push eax
push ebx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x466217
push eax
call fcn.004afd07
fstp dword [ebp + 0x28]
add esp, 4
push 0
push ebx
call fcn.0042cda0
mov edi, eax
mov al, byte [edi]
add esp, 8
test al, al
je 0x464ced
mov esi, dword [ebp + 0x24]
cmp esi, 8
jge 0x464e60
mov eax, dword [0x8fa8d0]
xor ecx, ecx
test eax, eax
mov eax, dword [0x8fa8cc]
sete cl
xor edx, edx
test eax, eax
sete dl
push 0x2901
push ecx
push edx
push edi
call fcn.0045fe20
add esp, 0x10
test eax, eax
mov dword [ebp + esi*4 + 4], eax
je 0x466239
inc dword [ebp + 0x24]
jmp 0x464e60
push str.videoMap
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464f16
push eax
push ebx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x46625c
push 0x1a
push 0x100
push 0x100
push 0
push 0
push eax
call dword [0xc37b40]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp + 0x50], eax
je 0x464ced
mov dword [ebp + 0x5c], edi
mov eax, dword [eax*4 + 0xc37b8c]
mov dword [ebp + 4], eax
jmp 0x464ced
push str.alphaFunc
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464fc3
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x46627e
push 0x4d11f8
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464f62
mov eax, 0x10000000
mov dword [esp + 0x24], eax
jmp 0x464ced
push str.LT128
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464f82
mov eax, 0x20000000
mov dword [esp + 0x24], eax
jmp 0x464ced
push str.GE128
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x464fa2
mov eax, 0x40000000
mov dword [esp + 0x24], eax
jmp 0x464ced
push 0x8fa810
push esi
push str.WARNING:_invalid_alphaFunc_name__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x464ced
push str.depthfunc
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465040
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x4662a0
push str.lequal
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465006
mov dword [esp + 0x20], eax
jmp 0x464ced
push str.equal
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465025
mov dword [esp + 0x20], 0x20000
jmp 0x464ced
push 0x8fa810
push esi
push str.WARNING:_unknown_depthfunc__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
jmp 0x464ced
push str.detail
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x46505d
mov dword [ebp + 0xf8], edi
jmp 0x464ced
push str.blendfunc
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465359
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x465225
push 0x4d1154
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4650a8
mov dword [esp + 0x14], 2
jmp 0x465338
push str.filter
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4650cf
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x10
jmp 0x465340
push str.blend
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4650f6
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 0x60
jmp 0x465340
push str.GL_ONE
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x46520a
push str.GL_ZERO
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465127
mov dword [esp + 0x14], edi
jmp 0x465212
push str.GL_DST_COLOR
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465146
mov dword [esp + 0x14], 3
jmp 0x465212
push str.GL_ONE_MINUS_DST_COLOR
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465165
mov dword [esp + 0x14], 4
jmp 0x465212
push str.GL_SRC_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465184
mov dword [esp + 0x14], 5
jmp 0x465212
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4651a0
mov dword [esp + 0x14], 6
jmp 0x465212
push str.GL_DST_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4651bc
mov dword [esp + 0x14], 7
jmp 0x465212
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4651d8
mov dword [esp + 0x14], 8
jmp 0x465212
push str.GL_SRC_ALPHA_SATURATE
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4651f4
mov dword [esp + 0x14], 9
jmp 0x465212
push 0x8fa810
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 2
call dword [0xc37ae0]
add esp, 0x10
mov dword [esp + 0x14], 2
push 0
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x46523f
push 0x8fa810
push str.WARNING:_missing_parm_for_blendFunc_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push str.GL_ONE
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x465338
push str.GL_ZERO
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465274
mov dword [esp + 0x18], 0x10
jmp 0x465340
push str.GL_SRC_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465293
mov dword [esp + 0x18], 0x50
jmp 0x465340
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4652b2
mov dword [esp + 0x18], 0x60
jmp 0x465340
push str.GL_DST_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4652ce
mov dword [esp + 0x18], 0x70
jmp 0x465340
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4652ea
mov dword [esp + 0x18], 0x80
jmp 0x465340
push str.GL_SRC_COLOR
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465306
mov dword [esp + 0x18], 0x30
jmp 0x465340
push str.GL_ONE_MINUS_SRC_COLOR
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465322
mov dword [esp + 0x18], 0x40
jmp 0x465340
push 0x8fa810
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 2
call dword [0xc37ae0]
add esp, 0x10
mov dword [esp + 0x18], 0x20
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x464ced
mov dword [esp + 0x1c], 0
jmp 0x464ced
push str.rgbGen
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x46562c
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x46539b
push 0x8fa810
push str.WARNING:_missing_parameters_for_rgbGen_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push str.wave
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4653cc
lea ecx, [ebp + 0xbc]
push ecx
push ebx
call fcn.00466380
add esp, 8
mov dword [ebp + 0xd0], 8
jmp 0x464ced
push str.const
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4654f5
push eax
push ebx
call fcn.0042cda0
add esp, 8
mov esi, 0x4c58d8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x465415
test cl, cl
je 0x465411
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x465415
add eax, 2
add esi, 2
test cl, cl
jne 0x4653f1
xor eax, eax
jmp 0x46541a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x465492
xor esi, esi
lea edi, [esp + 0x2c]
push 0
push ebx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x46547d
push eax
call fcn.004afd07
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x465424
push 0
push ebx
call fcn.0042cda0
add esp, 8
mov esi, 0x4c58d4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x465489
test cl, cl
je 0x465479
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x465489
add eax, 2
add esi, 2
test cl, cl
jne 0x465459
xor eax, eax
jmp 0x46548e
push 0x8fa810
push str.WARNING:_missing_vector_element_in_shader__s_n
jmp 0x46549c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4654a7
push 0x8fa810
push str.WARNING:_missing_parenthesis_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
fld dword [esp + 0x2c]
fmul dword [0x4bc3d4]
call fcn.004aeed0
fld dword [esp + 0x30]
fmul dword [0x4bc3d4]
mov byte [ebp + 0xec], al
call fcn.004aeed0
fld dword [esp + 0x34]
fmul dword [0x4bc3d4]
mov byte [ebp + 0xed], al
call fcn.004aeed0
mov byte [ebp + 0xee], al
mov dword [ebp + 0xd0], 0xb
jmp 0x464ced
push str.identity
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465516
mov dword [ebp + 0xd0], 2
jmp 0x464ced
push str.identityLighting
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465533
mov dword [ebp + 0xd0], edi
jmp 0x464ced
push str.entity
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465554
mov dword [ebp + 0xd0], 3
jmp 0x464ced
push str.oneMinusEntity
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465575
mov dword [ebp + 0xd0], 4
jmp 0x464ced
push str.vertex
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4655ae
mov eax, dword [ebp + 0xe8]
test eax, eax
mov dword [ebp + 0xd0], 6
jne 0x464ced
mov dword [ebp + 0xe8], 4
jmp 0x464ced
push str.exactVertex
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4655cf
mov dword [ebp + 0xd0], 5
jmp 0x464ced
push str.lightingDiffuse
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4655f0
mov dword [ebp + 0xd0], 9
jmp 0x464ced
push str.oneMinusVertex
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465611
mov dword [ebp + 0xd0], 7
jmp 0x464ced
push 0x8fa810
push esi
push str.WARNING:_unknown_rgbGen_parameter__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
jmp 0x464ced
push str.alphaGen
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465822
push eax
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x46566e
push 0x8fa810
push str.WARNING:_missing_parameters_for_alphaGen_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push str.wave
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x46569f
lea eax, [ebp + 0xd4]
push eax
push ebx
call fcn.00466380
add esp, 8
mov dword [ebp + 0xe8], 7
jmp 0x464ced
push str.const
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4656e1
push eax
push ebx
call fcn.0042cda0
push eax
call fcn.004afd07
fmul qword [0x4bc7c8]
add esp, 0xc
call fcn.004aeed0
mov byte [ebp + 0xef], al
mov dword [ebp + 0xe8], 9
jmp 0x464ced
push str.identity
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4656fe
mov dword [ebp + 0xe8], eax
jmp 0x464ced
push str.entity
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x46571f
mov dword [ebp + 0xe8], 2
jmp 0x464ced
push str.oneMinusEntity
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465740
mov dword [ebp + 0xe8], 3
jmp 0x464ced
push str.vertex
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465761
mov dword [ebp + 0xe8], 4
jmp 0x464ced
push str.lightingSpecular
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465782
mov dword [ebp + 0xe8], 6
jmp 0x464ced
push str.oneMinusVertex
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4657a3
mov dword [ebp + 0xe8], 5
jmp 0x464ced
push str.portal
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465807
push eax
push ebx
mov dword [ebp + 0xe8], 8
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4657f3
push 0x8fa810
push str.WARNING:_missing_range_parameter_for_alphaGen_portal_in_shader__s__defaulting_to_256_n
push 2
mov dword [0x8fa8bc], 0x43800000
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [0x8fa8bc]
add esp, 4
jmp 0x464ced
push 0x8fa810
push esi
push str.WARNING:_unknown_alphaGen_parameter__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
jmp 0x464ced
push str.texgen
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x465f5e
push str.tcGen
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x465f5e
push str.tcMod
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465f37
mov cl, byte [0x4dd190]
mov byte [esp + 0x38], cl
mov ecx, 0xff
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push ebx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4658e6
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x38]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4c00e0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x38]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46587c
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x48]
cmp eax, 4
jne 0x465910
push 0x8fa810
push str.ERROR:_too_many_tcMod_stages_in_shader__s_n
push 1
call dword [0xc37ae4]
add esp, 0xc
jmp 0x464ced
mov edx, dword [ebp + 0x4c]
mov ecx, eax
shl ecx, 4
add ecx, eax
inc eax
mov dword [ebp + 0x48], eax
lea eax, [esp + 0x10]
push 0
push eax
lea esi, [edx + ecx*4]
call fcn.0042cda0
mov edi, eax
push str.turb
push edi
call fcn.0042d0d0
add esp, 0x10
test eax, eax
jne 0x465a32
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x465973
push 0x8fa810
push str.WARNING:_missing_tcMod_turb_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 8]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4659ab
push 0x8fa810
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0xc]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4659e3
push 0x8fa810
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465a1b
push 0x8fa810
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x14]
add esp, 4
mov dword [esi], 2
jmp 0x464ced
push str.scale
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465ac1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x465a72
push 0x8fa810
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x30]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465aaa
push 0x8fa810
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x34]
add esp, 4
mov dword [esi], 4
jmp 0x464ced
push str.scroll
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465b50
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x465b01
push 0x8fa810
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x38]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465b39
push 0x8fa810
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x3c]
add esp, 4
mov dword [esi], 3
jmp 0x464ced
push str.stretch
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465d35
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0042cda0
mov edi, eax
mov al, byte [edi]
add esp, 8
test al, al
jne 0x465b96
push 0x8fa810
push str.WARNING:_missing_stretch_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push 0x4d0d2c
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x465c3f
push str.square
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465bc5
mov eax, 2
jmp 0x465c44
push str.triangle
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465bde
mov eax, 3
jmp 0x465c44
push str.sawtooth
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465bf7
mov eax, 4
jmp 0x465c44
push str.inversesawtooth
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465c10
mov eax, 5
jmp 0x465c44
push str.noise
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465c29
mov eax, 6
jmp 0x465c44
push 0x8fa810
push edi
push str.WARNING:_invalid_genfunc_name__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
mov eax, 1
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esi + 4], eax
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x465c76
push 0x8fa810
push str.WARNING:_missing_stretch_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 8]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465cae
push 0x8fa810
push str.WARNING:_missing_stretch_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0xc]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465ce6
push 0x8fa810
push str.WARNING:_missing_stretch_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465d1e
push 0x8fa810
push str.WARNING:_missing_stretch_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x14]
add esp, 4
mov dword [esi], 5
jmp 0x464ced
push str.transform
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465ea8
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x465d79
push 0x8fa810
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465db1
push 0x8fa810
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465de9
push 0x8fa810
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x20]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465e21
push 0x8fa810
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x24]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465e59
push 0x8fa810
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x28]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x465e91
push 0x8fa810
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x2c]
add esp, 4
mov dword [esi], 1
jmp 0x464ced
push str.rotate
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465eff
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x465ee8
push 0x8fa810
push str.WARNING:_missing_tcMod_rotate_parms_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push eax
call fcn.004afd07
fstp dword [esi + 0x40]
add esp, 4
mov dword [esi], 6
jmp 0x464ced
push str.entityTranslate
push edi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465f1c
mov dword [esi], 7
jmp 0x464ced
push 0x8fa810
push edi
push str.WARNING:_unknown_tcMod__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
jmp 0x464ced
push str.depthwrite
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x4662c2
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x28], edi
jmp 0x464ced
push 0
push ebx
call fcn.0042cda0
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x465f8b
push 0x8fa810
push str.WARNING:_missing_texgen_parm_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
push str.environment
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465fa9
mov dword [ebp + 0x2c], 4
jmp 0x464ced
push str.lightmap
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x465fc7
mov dword [ebp + 0x2c], 2
jmp 0x464ced
push str.texture
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x4661b8
push str.base
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x4661b8
push str.vector
push esi
call fcn.0042d0d0
add esp, 8
test eax, eax
jne 0x46619e
push eax
push ebx
call fcn.0042cda0
add esp, 8
mov esi, 0x4c58d8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x46603c
test cl, cl
je 0x466038
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x46603c
add eax, 2
add esi, 2
test cl, cl
jne 0x466018
xor eax, eax
jmp 0x466041
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4660b8
xor esi, esi
lea edi, [ebp + 0x30]
push 0
push ebx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4660a3
push eax
call fcn.004afd07
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x46604a
push 0
push ebx
call fcn.0042cda0
add esp, 8
mov esi, 0x4c58d4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4660af
test cl, cl
je 0x46609f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4660af
add eax, 2
add esi, 2
test cl, cl
jne 0x46607f
xor eax, eax
jmp 0x4660b4
push 0x8fa810
push str.WARNING:_missing_vector_element_in_shader__s_n
jmp 0x4660c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4660cd
push 0x8fa810
push str.WARNING:_missing_parenthesis_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
push 0
push ebx
call fcn.0042cda0
add esp, 8
mov esi, 0x4c58d8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x466101
test cl, cl
je 0x4660fd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x466101
add eax, 2
add esi, 2
test cl, cl
jne 0x4660dd
xor eax, eax
jmp 0x466106
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x46617d
xor esi, esi
lea edi, [ebp + 0x3c]
push 0
push ebx
call fcn.0042cda0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x466168
push eax
call fcn.004afd07
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x46610f
push 0
push ebx
call fcn.0042cda0
add esp, 8
mov esi, 0x4c58d4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x466174
test cl, cl
je 0x466164
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x466174
add eax, 2
add esi, 2
test cl, cl
jne 0x466144
xor eax, eax
jmp 0x466179
push 0x8fa810
push str.WARNING:_missing_vector_element_in_shader__s_n
jmp 0x466187
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x466192
push 0x8fa810
push str.WARNING:_missing_parenthesis_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
mov dword [ebp + 0x2c], 6
jmp 0x464ced
push 0x8fa810
push str.WARNING:_unknown_texgen_parm_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
jmp 0x464ced
mov dword [ebp + 0x2c], 3
jmp 0x464ced
push str.WARNING:_no_matching__found_n
push 2
call dword [0xc37ae0]
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push str.WARNING:_missing_parameter_for_map_keyword_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push esi
jmp 0x46623f
push 0x8fa810
push str.WARNING:_missing_parameter_for_clampmap_keyword_in_shader__s_n
jmp 0x4661eb
push 0x8fa810
push str.WARNING:_missing_parameter_for_animMmap_keyword_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push edi
push str.WARNING:_R_FindImageFile_could_not_find__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push str.WARNING:_missing_parameter_for_videoMmap_keyword_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push str.WARNING:_missing_parameter_for_alphaFunc_keyword_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push str.WARNING:_missing_parameter_for_depthfunc_keyword_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
push 0x8fa810
push esi
push str.WARNING:_unknown_parameter__s_in_shader__s_n
push 2
call dword [0xc37ae0]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret
mov eax, dword [ebp + 0xd0]
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x466313
test ecx, ecx
je 0x46630d
cmp ecx, 2
je 0x46630d
cmp ecx, 5
je 0x46630d
mov dword [ebp + 0xd0], 2
jmp 0x466313
mov dword [ebp + 0xd0], edi
cmp ecx, 2
mov edx, dword [esp + 0x18]
jne 0x46632d
cmp edx, 0x10
jne 0x46632d
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], 0x100
cmp dword [ebp + 0xe8], 2
jne 0x46634c
mov eax, dword [ebp + 0xd0]
cmp eax, 2
je 0x466346
cmp eax, 9
jne 0x46634c
mov dword [ebp + 0xe8], edi
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
or eax, ebx
or eax, edx
or eax, ecx
or eax, dword [esp + 0x1c]
mov dword [ebp + 0xf0], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret