Function at 0x4a8490
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x440
push ebx
push ebp
mov ebp, dword [esp + 0x44c]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov dword [ebp], 1
mov eax, dword [0x835028]
push esi
mov dword [ebp + 0x2b4], eax
mov ecx, dword [0x83502c]
mov dword [ebp + 0x2b8], ecx
mov edx, dword [0x82ce68]
push edi
mov dword [esp + 0x24], 0x100
mov dword [ebp + 0x2bc], edx
mov ebx, dword [esp + 0x458]
mov edi, 1
push edi
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
mov al, byte [esi]
test al, al
je 0x4aa94e
cmp al, 0x7d
je 0x4aaa87
push str.nomipmaps
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8535
mov dword [ebp + 0x2b4], edi
jmp 0x4a84f8
push str.nopicmip
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a854f
mov dword [ebp + 0x2b8], edi
jmp 0x4a84f8
push str.force32bit
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8569
mov dword [ebp + 0x2bc], edi
jmp 0x4a84f8
push 0x5528bc
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a86b1
push eax
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aa96b
push str._whiteimage
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a85c1
mov eax, dword [esp + 0x14]
mov edx, dword [0x1313d98]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 4], edx
jmp 0x4a84f8
push str._lightmap
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8610
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea eax, [ebp + ecx*4]
mov dword [eax + 0x134], edi
mov ecx, dword [0x82ceb0]
test ecx, ecx
jge 0x4a8601
mov edx, dword [0x1313d98]
mov dword [eax + 4], edx
jmp 0x4a84f8
mov ecx, dword [ecx*4 + 0x1313df4]
mov dword [eax + 4], ecx
jmp 0x4a84f8
push str._bumpmap
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8658
push eax
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a84f8
push 0x82ce70
push str.WARNING:_missing_parameter_for_bumpmap_keyword_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
mov edx, dword [ebp + 0x2bc]
push 0x2901
push 0x2901
push edx
mov edx, dword [ebp + 0x2b8]
xor eax, eax
test edx, edx
sete al
push eax
mov eax, dword [ebp + 0x2b4]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push esi
call fcn.0048af40
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea edx, [ecx + ecx*4]
shl edx, 4
sub edx, ecx
test eax, eax
mov dword [ebp + edx*4 + 4], eax
jne 0x4a84f8
push 0x82ce70
push esi
jmp 0x4aaa6a
push 8
push str.clampmap
push esi
call fcn.00465370
add esp, 0xc
test eax, eax
jne 0x4a87d5
mov al, byte [esi + 8]
xor ebx, ebx
xor edi, edi
test al, al
jne 0x4a86fe
mov eax, dword [0x13e6b90]
fld dword [eax + 0x1c]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 0x44
jnp 0x4a86f2
mov ebx, 0x812f
mov edi, ebx
jmp 0x4a876d
mov ebx, 0x2900
mov edi, 0x2900
jmp 0x4a876d
cmp al, 0x78
jne 0x4a8730
mov cl, byte [esi + 9]
test cl, cl
jne 0x4a8730
mov ecx, dword [0x13e6b90]
mov ebx, 0x812f
fld dword [ecx + 0x1c]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 0x44
jp 0x4a8729
mov ebx, 0x2900
mov edi, 0x2901
jmp 0x4a876d
cmp al, 0x79
jne 0x4a875d
mov al, byte [esi + 9]
test al, al
jne 0x4a875d
mov edx, dword [0x13e6b90]
mov ebx, 0x2901
fld dword [edx + 0x1c]
fcomp dword [0x5354b0]
fnstsw ax
test ah, 0x44
jnp 0x4a86f7
mov edi, 0x812f
jmp 0x4a876d
push str.WARNING:_Converting_unknown_clampmap_type_to_clampmap_n
push 3
call dword [0x1313c80]
add esp, 8
mov eax, dword [esp + 0x458]
push 0
push eax
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aa98d
mov ecx, dword [ebp + 0x2bc]
push edi
push ebx
mov ebx, dword [ebp + 0x2b4]
push ecx
mov ecx, dword [ebp + 0x2b8]
xor edx, edx
test ecx, ecx
sete dl
xor eax, eax
push edx
test ebx, ebx
sete al
push eax
push esi
call fcn.0048af40
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea edx, [ecx + ecx*4]
shl edx, 4
sub edx, ecx
test eax, eax
mov dword [ebp + edx*4 + 4], eax
je 0x4a86a6
jmp 0x4a84f1
push str.animMap
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa7fa
push str.animMapOnce
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa7fa
push str.animMapPhase
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa7fa
push str.alphaFunc
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a88c3
push eax
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aa99c
push 0x561414
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8862
mov eax, 0x10000000
mov dword [esp + 0x30], eax
jmp 0x4a84f8
push str.LT128
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8882
mov eax, 0x20000000
mov dword [esp + 0x30], eax
jmp 0x4a84f8
push str.GE128
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a88a2
mov eax, 0x40000000
mov dword [esp + 0x30], eax
jmp 0x4a84f8
push 0x82ce70
push esi
push str.WARNING:_invalid_alphaFunc_name__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x4a84f8
push str.depthfunc
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a893f
push eax
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aa9be
push str.lequal
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8905
mov dword [esp + 0x28], eax
jmp 0x4a84f8
push str.equal
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8924
mov dword [esp + 0x28], 0x800
jmp 0x4a84f8
push 0x82ce70
push esi
push str.WARNING:_unknown_depthfunc__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
jmp 0x4a84f8
push str.blendfunc
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8c58
push eax
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4a8b24
push 0x54c760
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8989
mov dword [esp + 0x18], 2
jmp 0x4a8c37
push str.filter
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a89b0
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x10
jmp 0x4a8c3f
push str.blend
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a89d7
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 0x60
jmp 0x4a8c3f
push str.alphaadd
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a89f6
mov dword [esp + 0x18], 5
jmp 0x4a8c37
push str.GL_ONE
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a8b0a
push str.GL_ZERO
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8a27
mov dword [esp + 0x18], edi
jmp 0x4a8b12
push str.GL_DST_COLOR
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8a46
mov dword [esp + 0x18], 3
jmp 0x4a8b12
push str.GL_ONE_MINUS_DST_COLOR
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8a65
mov dword [esp + 0x18], 4
jmp 0x4a8b12
push str.GL_SRC_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8a84
mov dword [esp + 0x18], 5
jmp 0x4a8b12
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8aa0
mov dword [esp + 0x18], 6
jmp 0x4a8b12
push str.GL_DST_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8abc
mov dword [esp + 0x18], 7
jmp 0x4a8b12
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8ad8
mov dword [esp + 0x18], 8
jmp 0x4a8b12
push str.GL_SRC_ALPHA_SATURATE
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8af4
mov dword [esp + 0x18], 9
jmp 0x4a8b12
push 0x82ce70
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 3
call dword [0x1313c80]
add esp, 0x10
mov dword [esp + 0x18], 2
push 0
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a8b3e
push 0x82ce70
push str.WARNING:_missing_parm_for_blendFunc_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.GL_ONE
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a8c37
push str.GL_ZERO
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8b73
mov dword [esp + 0x1c], 0x10
jmp 0x4a8c3f
push str.GL_SRC_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8b92
mov dword [esp + 0x1c], 0x50
jmp 0x4a8c3f
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8bb1
mov dword [esp + 0x1c], 0x60
jmp 0x4a8c3f
push str.GL_DST_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8bcd
mov dword [esp + 0x1c], 0x70
jmp 0x4a8c3f
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8be9
mov dword [esp + 0x1c], 0x80
jmp 0x4a8c3f
push str.GL_SRC_COLOR
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8c05
mov dword [esp + 0x1c], 0x30
jmp 0x4a8c3f
push str.GL_ONE_MINUS_SRC_COLOR
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8c21
mov dword [esp + 0x1c], 0x40
jmp 0x4a8c3f
push 0x82ce70
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 3
call dword [0x1313c80]
add esp, 0x10
mov dword [esp + 0x1c], 0x20
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a84f8
mov dword [esp + 0x24], 0
jmp 0x4a84f8
push str.rgbGen
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a91f6
xor edi, edi
push edi
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a8c9b
push 0x82ce70
push str.WARNING:_missing_parameters_for_rgbGen_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.wave
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8cd8
lea eax, [ebp + 0x280]
push eax
push ebx
call fcn.004a8230
mov dword [ebp + 0x294], 8
mov eax, dword [0x82d010]
add esp, 8
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.colorwave
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8d9c
mov edi, dword [esp + 0x458]
xor esi, esi
push 0
push edi
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a8d1d
push eax
call fcn.0051b0ec
fstp dword [esp + esi*4 + 0x3c]
add esp, 4
inc esi
cmp esi, 3
jl 0x4a8cf7
jmp 0x4a8d32
push 0x82ce70
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
fld dword [esp + 0x38]
fmul dword [0x535c34]
call fcn.0051a95c
fld dword [esp + 0x3c]
fmul dword [0x535c34]
mov byte [ebp + 0x2d4], al
call fcn.0051a95c
fld dword [esp + 0x40]
fmul dword [0x535c34]
mov byte [ebp + 0x2d5], al
call fcn.0051a95c
lea ecx, [ebp + 0x280]
mov byte [ebp + 0x2d6], al
push ecx
push edi
call fcn.004a8230
mov dword [ebp + 0x294], 9
mov eax, dword [0x82d010]
add esp, 8
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f1
push str.identity
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8dbd
mov dword [ebp + 0x294], 1
jmp 0x4a84f8
push str.identityLighting
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8dde
mov dword [ebp + 0x294], 2
jmp 0x4a84f8
push str.global
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8dff
mov dword [ebp + 0x294], 0xe
jmp 0x4a84f8
push str.entity
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a91e7
push str.fromentity
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a91e7
push str.oneMinusEntity
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8e4c
mov dword [ebp + 0x294], 4
jmp 0x4a84f8
push str.vertex
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a91c2
push str.fromclient
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a91c2
push str.exactVertex
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8e99
mov dword [ebp + 0x294], 5
jmp 0x4a84f8
push str.lightingGrid
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8eba
mov dword [ebp + 0x294], 0xa
jmp 0x4a84f8
push str.lightingSpherical
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8edb
mov dword [ebp + 0x294], 0xb
jmp 0x4a84f8
push str.oneMinusVertex
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8efc
mov dword [ebp + 0x294], 7
jmp 0x4a84f8
push str.const
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a9130
push str.constant
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a9130
push str.static
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8f49
mov dword [ebp + 0x294], 0xf
jmp 0x4a91cc
push str.sCoord
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a9036
push str.tCoord
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a9036
push 0x561178
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a8ff3
mov dword [0x82cf30], 1
mov dword [ebp + 0x294], 0x12
push edi
push ebx
mov dword [ebp + 0x2c0], edi
mov dword [ebp + 0x2c4], 0x3f800000
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [ebp + 0x2c4]
add esp, 4
jmp 0x4a84f8
push str.oneminusdot
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a901b
mov dword [0x82cf30], 1
mov dword [ebp + 0x294], 0x13
jmp 0x4a8f9b
push 0x82ce70
push esi
push str.WARNING:_unknown_rgbGen_parameter__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
jmp 0x4a84f8
push str.sCoord
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9054
mov dword [ebp + 0x294], 0x10
jmp 0x4a905e
mov dword [ebp + 0x294], 0x11
push edi
push ebx
mov dword [ebp + 0x2c0], edi
mov dword [ebp + 0x2c4], 0x3f800000
mov byte [ebp + 0x2d9], 0
mov byte [ebp + 0x2d8], 0xff
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [ebp + 0x2c4]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fmul qword [0x5360e8]
call fcn.0051a95c
push edi
push ebx
mov byte [ebp + 0x2d9], al
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a9116
push eax
call fcn.0051b0ec
fmul qword [0x5360e8]
add esp, 4
call fcn.0051a95c
mov byte [ebp + 0x2d8], al
jmp 0x4a84f8
push 0x82ce70
push str.WARNING:_missing_rgbGen_sCoord_or_tCoord_parm_max_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
mov edi, dword [esp + 0x458]
xor esi, esi
push 0
push edi
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a915f
push eax
call fcn.0051b0ec
fstp dword [esp + esi*4 + 0x48]
add esp, 4
inc esi
cmp esi, 3
jl 0x4a9139
jmp 0x4a9174
push 0x82ce70
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
fld dword [esp + 0x44]
fmul dword [0x535c34]
call fcn.0051a95c
fld dword [esp + 0x48]
fmul dword [0x535c34]
mov byte [ebp + 0x2d4], al
call fcn.0051a95c
fld dword [esp + 0x4c]
fmul dword [0x535c34]
mov byte [ebp + 0x2d5], al
call fcn.0051a95c
mov byte [ebp + 0x2d6], al
mov dword [ebp + 0x294], 0xc
jmp 0x4a84f1
mov dword [ebp + 0x294], 6
cmp dword [ebp + 0x2ac], edi
jne 0x4a84f8
mov dword [ebp + 0x2ac], 4
jmp 0x4a84f8
mov dword [ebp + 0x294], 3
jmp 0x4a84f8
push str.alphaGen
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a984a
xor edi, edi
push edi
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a9239
push 0x82ce70
push str.WARNING:_missing_parameters_for_alphaGen_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.wave
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9276
lea edx, [ebp + 0x298]
push edx
push ebx
call fcn.004a8230
mov dword [ebp + 0x2ac], 7
mov eax, dword [0x82d010]
add esp, 8
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.identity
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9293
mov dword [ebp + 0x2ac], edi
jmp 0x4a84f8
push str.global
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a92b4
mov dword [ebp + 0x2ac], 0xd
jmp 0x4a84f8
push str.entity
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a983b
push str.fromentity
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a983b
push str.oneMinusEntity
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9301
mov dword [ebp + 0x2ac], 3
jmp 0x4a84f8
push str.vertex
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a91d8
push str.fromclient
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a91d8
push str.oneMinusVertex
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a982c
push str.oneMinusFromClient
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a982c
push str.lightingSpecular
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a941c
lea esi, [ebp + 0x2c8]
push edi
mov dword [0x82cf30], 1
push ebx
mov dword [ebp + 0x2ac], 6
mov dword [ebp + 0x2c4], 0x437f0000
mov dword [esi], 0xc4700000
mov dword [ebp + 0x2cc], 0x44f78000
mov dword [ebp + 0x2d0], 0x42c00000
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fmul qword [0x5360e8]
add esp, 4
xor edi, edi
fstp dword [ebp + 0x2c4]
push 0
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a9402
push eax
call fcn.0051b0ec
fstp dword [esi]
add esp, 4
inc edi
add esi, 4
cmp edi, 3
jl 0x4a93d8
jmp 0x4a84f8
push 0x82ce70
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.portal
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9470
push edi
push ebx
mov dword [ebp + 0x2ac], 8
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a94d4
push 0x82ce70
push str.WARNING:_missing_range_parameter_for_alphaGen_portal_in_shader__s__defaulting_to_256_n
push 3
mov dword [0x82cf1c], 0x43800000
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.distFade
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a94e8
push edi
mov dword [ebp + 0x2ac], 0x12
push ebx
mov dword [0x82cf1c], 0x43800000
mov dword [0x82cf20], 0x43800000
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [0x82cf20]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [0x82cf1c]
add esp, 4
jmp 0x4a84f8
push str.oneMinusDistFade
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9560
push edi
mov dword [ebp + 0x2ac], 0x13
push ebx
mov dword [0x82cf1c], 0x43800000
mov dword [0x82cf20], 0x43800000
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [0x82cf20]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [0x82cf1c]
add esp, 4
jmp 0x4a84f8
push 0x561178
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a958b
mov dword [0x82cf30], 1
mov dword [ebp + 0x2ac], 0xa
jmp 0x4a8f9b
push str.dotView
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a95b6
mov dword [0x82cf30], 1
mov dword [ebp + 0x2ac], 0x14
jmp 0x4a8f9b
push str.oneMinusDotView
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a95e1
mov dword [0x82cf30], 1
mov dword [ebp + 0x2ac], 0x15
jmp 0x4a8f9b
push str.oneMinusDot
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a960c
mov dword [0x82cf30], 1
mov dword [ebp + 0x2ac], 0xb
jmp 0x4a8f9b
push str.const
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a97b3
push str.constant
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a97b3
push str.skyAlpha
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9659
mov dword [ebp + 0x2ac], 0xe
jmp 0x4a84f8
push str.oneMinusSkyAlpha
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a967a
mov dword [ebp + 0x2ac], 0xf
jmp 0x4a84f8
push str.sCoord
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a96b9
push str.tCoord
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4a96b9
push 0x82ce70
push esi
push str.WARNING:_unknown_alphaGen_parameter__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
jmp 0x4a84f8
push str.sCoord
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a96d7
mov dword [ebp + 0x2ac], 0x10
jmp 0x4a96e1
mov dword [ebp + 0x2ac], 0x11
push edi
push ebx
mov dword [ebp + 0x2c0], edi
mov dword [ebp + 0x2c4], 0x3f800000
mov byte [ebp + 0x2d9], 0
mov byte [ebp + 0x2d8], 0xff
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [ebp + 0x2c4]
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a84f8
push eax
call fcn.0051b0ec
fmul qword [0x5360e8]
call fcn.0051a95c
push edi
push ebx
mov byte [ebp + 0x2d9], al
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a9799
push eax
call fcn.0051b0ec
fmul qword [0x5360e8]
add esp, 4
call fcn.0051a95c
mov byte [ebp + 0x2d8], al
jmp 0x4a84f8
push 0x82ce70
push str.WARNING:_missing_alphaGen_s_or_tCoord_parm_max_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push edi
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a9812
push eax
call fcn.0051b0ec
fmul dword [0x535c34]
add esp, 4
call fcn.0051a95c
cmp eax, edi
jl 0x4a97f7
cmp eax, 0xff
jg 0x4a97f7
mov dword [ebp + 0x2ac], 0xc
mov byte [ebp + 0x2d7], al
jmp 0x4a84f8
push 0x82ce70
push eax
push str.WARNING:_alphaGen_constant__d_out_of__0..1__range_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
jmp 0x4a84f8
push 0x82ce70
push str.WARNING:_no_alphaGen_constant_specified_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
mov dword [ebp + 0x2ac], 5
jmp 0x4a84f8
mov dword [ebp + 0x2ac], 2
jmp 0x4a84f8
push str.texgen
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa5e8
push str.tcGen
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa5e8
push str.tcMod
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa4fb
mov al, byte [0x56e704]
mov ecx, 0xff
mov byte [esp + 0x50], al
xor eax, eax
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a98fa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x542d70]
mov word [edi - 1], ax
jmp 0x4a98a5
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], ecx
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov ecx, dword [ebp + edx*4 + 0x12c]
lea edx, [ebp + edx*4]
cmp ecx, 4
jne 0x4a9938
push 0x82ce70
push str.ERROR:_too_many_tcMod_stages_in_shader__s_n
push 1
call dword [0x1313c84]
add esp, 0xc
jmp 0x4a84f8
mov esi, dword [edx + 0x130]
lea eax, [ecx*8]
sub eax, ecx
inc ecx
mov dword [edx + 0x12c], ecx
lea ecx, [esp + 0x10]
lea eax, [eax + eax*2]
push 0
push ecx
lea esi, [esi + eax*4]
call fcn.00464f30
mov edi, eax
push str.turb
push edi
call fcn.00465410
add esp, 0x10
test eax, eax
jne 0x4a9a71
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a99a6
push 0x82ce70
push str.WARNING:_missing_tcMod_turb_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a99de
push 0x82ce70
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9a16
push 0x82ce70
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9a4e
push 0x82ce70
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x14]
mov dword [esi], 2
mov eax, dword [0x82d010]
add esp, 4
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.scale
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9b00
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a9ab1
push 0x82ce70
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x30]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9ae9
push 0x82ce70
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x34]
add esp, 4
mov dword [esi], 4
jmp 0x4a84f8
push str.scroll
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9d2e
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a9b45
push 0x82ce70
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.fromEntity
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
jne 0x4a9b60
mov dword [esi + 0x40], 0x4996b438
jmp 0x4a9b6c
push edi
call fcn.0051b0ec
fstp dword [esi + 0x40]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a9b9c
push 0x82ce70
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.fromEntity
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
jne 0x4a9bb7
mov dword [esi + 0x44], 0x4996b438
jmp 0x4a9bc3
push edi
call fcn.0051b0ec
fstp dword [esi + 0x44]
add esp, 4
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a9c6d
push edi
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a9c24
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fsubr dword [esi + 0x40]
jmp 0x4a9c6a
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a9c6d
push edi
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fadd dword [esi + 0x40]
fstp dword [esi + 0x40]
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a9d17
push edi
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a9cce
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fsubr dword [esi + 0x44]
jmp 0x4a9d14
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a9d17
push edi
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
mov dword [esi], 3
mov eax, dword [0x82d010]
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.stretch
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9d68
lea eax, [esi + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004a8230
mov dword [esi], 5
mov eax, dword [0x82d010]
add esp, 8
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.wavetrans
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9da2
lea edx, [esi + 4]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004a8230
mov dword [esi], 0xc
mov eax, dword [0x82d010]
add esp, 8
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.wavetrant
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9ddc
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004a8230
mov dword [esi], 0xd
mov eax, dword [0x82d010]
add esp, 8
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.bulge
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4a9eeb
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a9e20
push 0x82ce70
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 8]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9e58
push 0x82ce70
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9e90
push 0x82ce70
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x14]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9ec8
push 0x82ce70
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x10]
mov dword [esi], 0xe
mov eax, dword [0x82d010]
add esp, 4
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.transform
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa05e
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a9f2f
push 0x82ce70
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9f67
push 0x82ce70
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x1c]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9f9f
push 0x82ce70
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9fd7
push 0x82ce70
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x24]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa00f
push 0x82ce70
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x28]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa047
push 0x82ce70
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x2c]
add esp, 4
mov dword [esi], 1
jmp 0x4a84f8
push str.rotate
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa151
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa0a3
push 0x82ce70
push str.WARNING:_missing_tcMod_rotate_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.fromEntity
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
jne 0x4aa0be
mov dword [esi + 0x48], 0x4996b438
jmp 0x4aa0ca
push edi
call fcn.0051b0ec
fstp dword [esi + 0x48]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa0e9
mov dword [esi + 0x4c], 0
jmp 0x4aa110
push str.fromEntity
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
jne 0x4aa104
mov dword [esi + 0x4c], 0x4996b438
jmp 0x4aa110
push edi
call fcn.0051b0ec
fstp dword [esi + 0x4c]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa12e
mov dword [esi + 0x50], 0x3f800000
jmp 0x4aa13a
push eax
call fcn.0051b0ec
fstp dword [esi + 0x50]
add esp, 4
mov dword [esi], 6
mov eax, dword [0x82d010]
or al, 2
mov dword [0x82d010], eax
jmp 0x4a84f8
push str.offset
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa38b
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa196
push 0x82ce70
push str.WARNING:_missing_offset_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.fromEntity
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
jne 0x4aa1b1
mov dword [esi + 0x40], 0x4996b438
jmp 0x4aa1bd
push edi
call fcn.0051b0ec
fstp dword [esi + 0x40]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa1ed
push 0x82ce70
push str.WARNING:_missing_offset_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.fromEntity
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
jne 0x4aa208
mov dword [esi + 0x44], 0x4996b438
jmp 0x4aa214
push edi
call fcn.0051b0ec
fstp dword [esi + 0x44]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4aa2ca
push edi
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4aa27b
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
fadd qword [0x535468]
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fsubr dword [esi + 0x40]
jmp 0x4aa2c7
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4aa2ca
push edi
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
fadd qword [0x535468]
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fadd dword [esi + 0x40]
fstp dword [esi + 0x40]
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4aa380
push edi
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4aa337
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esi], 9
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fsubr dword [esi + 0x44]
fstp dword [esi + 0x44]
jmp 0x4a84f8
call fcn.0051b0ec
fcomp qword [0x535bd0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4aa380
push edi
call fcn.0051b0ec
fmul qword [0x535aa8]
add esp, 4
call fcn.0051a95c
mov edi, eax
call fcn.0051bee5
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x535418]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
mov dword [esi], 9
jmp 0x4a84f8
push str.entityTranslate
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa3a8
mov dword [esi], 7
jmp 0x4a84f8
push str.parallax
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa437
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa3e8
push 0x82ce70
push str.WARNING:_missing_rate_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x38]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa420
push 0x82ce70
push str.WARNING:_missing_rate_parms_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fstp dword [esi + 0x3c]
add esp, 4
mov dword [esi], 0xa
jmp 0x4a84f8
push str.macro
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa4e0
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa47b
push 0x82ce70
push str.WARNING:_missing_scale_parms_in_shader__s_for_macro_definition_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fdivr qword [0x535468]
lea edx, [esp + 0x14]
push 0
push edx
fstp dword [esi + 0x30]
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa4b9
push 0x82ce70
push str.WARNING:_missing_scale_parms_in_shader__s_for_macro_definition_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push eax
call fcn.0051b0ec
fdivr qword [0x535468]
mov dword [esi], 0xb
add esp, 4
fstp dword [esi + 0x34]
mov dword [0x82cf30], 1
jmp 0x4a84f8
push 0x82ce70
push edi
push str.WARNING:_unknown_tcMod__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
jmp 0x4a84f8
push str.depthwrite
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa5d7
push str.depthmask
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa5d7
push str.noDepthTest
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa546
mov dword [esp + 0x34], 0x400
jmp 0x4a84f8
push str.nextBundle
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa9fd
mov eax, dword [0x13e6c38]
test eax, eax
je 0x4aa9e0
push 0
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aa598
push 0x54c760
push eax
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa598
mov dword [ebp + 0x27c], 0x104
jmp 0x4aa5a2
mov dword [ebp + 0x27c], 0x2100
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
inc eax
cmp eax, 2
jle 0x4a84f8
push 0x82ce70
push str.WARNING:_too_many_nextBundle_commands_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x2c], edi
jmp 0x4a84f8
push 0
push ebx
call fcn.00464f30
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4aa614
push 0x82ce70
push str.WARNING:_missing_texgen_parm_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
push str.environment
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa648
mov eax, dword [esp + 0x14]
mov dword [0x82cf30], edi
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 4
jmp 0x4a84f8
push str.environmentmodel
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa67c
mov eax, dword [esp + 0x14]
mov dword [0x82cf30], edi
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 6
jmp 0x4a84f8
push str.sunreflection
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa6b0
mov eax, dword [esp + 0x14]
mov dword [0x82cf30], edi
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 7
jmp 0x4a84f8
push str.lightmap
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa6de
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 2
jmp 0x4a84f8
push str.texture
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa7de
push str.base
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4aa7de
push str.vector
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa7c4
xor esi, esi
lea edi, [ebp + 0x114]
push 0
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aa74f
push eax
call fcn.0051b0ec
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x4aa728
jmp 0x4aa764
push 0x82ce70
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor esi, esi
lea edi, [ebp + 0x120]
push 0
push ebx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aa793
push eax
call fcn.0051b0ec
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x4aa76c
jmp 0x4aa7a8
push 0x82ce70
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 5
jmp 0x4a84f8
push 0x82ce70
push str.WARNING:_unknown_texgen_parm_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4a84f8
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 3
jmp 0x4a84f8
mov ecx, dword [0x82d010]
push str.animMapOnce
or ecx, 3
push esi
mov dword [0x82d010], ecx
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4aa835
mov eax, dword [esp + 0x14]
inc eax
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea eax, [ebp + ecx*4]
mov cl, byte [ebp + ecx*4]
or cl, 1
mov byte [eax], cl
push str.animMapPhase
push esi
call fcn.00465410
mov esi, eax
push 0
neg esi
sbb esi, esi
push ebx
inc esi
call fcn.00464f30
mov cl, byte [eax]
add esp, 0x10
test cl, cl
je 0x4aaa20
mov ecx, dword [esp + 0x14]
push eax
lea edx, [ecx + ecx*4]
shl edx, 4
sub edx, ecx
lea ebx, [ebp + edx*4]
call fcn.0051b0ec
fstp dword [ebx + 0x108]
add esp, 4
mov dword [ebx + 0x10c], 0
test esi, esi
je 0x4aa8b4
mov eax, dword [esp + 0x458]
push 0
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aaa42
push eax
call fcn.0051b0ec
fstp dword [ebx + 0x10c]
add esp, 4
mov ecx, dword [esp + 0x458]
push 0
push ecx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a84f1
mov esi, dword [ebx + 0x104]
cmp esi, 0x40
jge 0x4aa934
mov edx, dword [ebp + 0x2bc]
push 0x2901
push 0x2901
push edx
mov edx, dword [ebp + 0x2b8]
xor eax, eax
test edx, edx
sete al
push eax
mov eax, dword [ebp + 0x2b4]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push edi
call fcn.0048af40
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea edx, [ecx + ecx*4]
shl edx, 4
sub edx, ecx
add edx, esi
test eax, eax
mov dword [ebp + edx*4 + 4], eax
je 0x4aaa64
inc dword [ebx + 0x104]
jmp 0x4aa8b4
push 0x82ce70
push str.WARNING:_mapanim___too_many_animated_textures_specified_for_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4aa8b4
push str.WARNING:_no_matching__found_n
push 3
call dword [0x1313c80]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push str.WARNING:_missing_parameter_for_map_keyword_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push str.WARNING:_missing_parameter_for_clampmap_keyword_in_shader__s_n
jmp 0x4a8640
push 0x82ce70
push str.WARNING:_missing_parameter_for_alphaFunc_keyword_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push str.WARNING:_missing_parameter_for_depthfunc_keyword_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push str.WARNING:_Medal_of_Honor_requires_a_video_card_with_multitexturing_capability_n
push 0
call dword [0x1313c84]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push esi
push str.WARNING:_unknown_parameter__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push str.WARNING:_missing_parameter_for_animMap_keyword_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push str.WARNING:_missing_phase_for_animMapPhase_keyword_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x82ce70
push edi
push str.WARNING:_R_FindImageFile_could_not_find__s_in_shader__s_n
push 3
call dword [0x1313c80]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
mov eax, dword [ebp + 0x294]
test eax, eax
jne 0x4aaacd
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4aaac1
mov eax, dword [ebp + 0x134]
test eax, eax
jne 0x4aaac1
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4aaab5
cmp edx, 2
je 0x4aaab5
cmp edx, 5
jne 0x4aaac5
mov dword [ebp + 0x294], 2
jmp 0x4aaad1
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x294], edi
jmp 0x4aaad1
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp edx, 2
jne 0x4aaaea
cmp edi, 0x10
jne 0x4aaaea
xor edx, edx
xor edi, edi
mov esi, 0x100
jmp 0x4aaaee
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x400
jne 0x4aaafc
xor esi, esi
mov eax, dword [ebp + 0x2ac]
test eax, eax
jne 0x4aab25
mov eax, dword [ebp + 0x294]
cmp eax, 1
je 0x4aab1b
cmp eax, 0xa
je 0x4aab1b
cmp eax, 0xb
jne 0x4aab25
mov dword [ebp + 0x2ac], 1
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
or ecx, ebx
or ecx, eax
mov eax, 1
or ecx, edi
pop edi
or ecx, edx
or ecx, esi
pop esi
mov dword [ebp + 0x2b0], ecx
pop ebp
pop ebx
add esp, 0x440
ret