Function at 0x4a8570
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 [0x839468]
push esi
mov dword [ebp + 0x2b4], eax
mov ecx, dword [0x83946c]
mov dword [ebp + 0x2b8], ecx
mov edx, dword [0x8312a8]
push edi
mov dword [esp + 0x24], pe_nt_image_headers32
mov dword [ebp + 0x2bc], edx
mov ebx, dword [esp + 0x458]
mov edi, 1
push edi
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
mov al, byte [esi]
test al, al
je 0x4aaa2e
cmp al, 0x7d
je 0x4aab67
push str.nomipmaps
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8615
mov dword [ebp + 0x2b4], edi
jmp 0x4a85d8
push str.nopicmip
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a862f
mov dword [ebp + 0x2b8], edi
jmp 0x4a85d8
push str.force32bit
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8649
mov dword [ebp + 0x2bc], edi
jmp 0x4a85d8
push 0x55499c
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8791
push eax
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aaa4b
push str._whiteimage
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a86a1
mov eax, dword [esp + 0x14]
mov edx, dword [0x1325118]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 4], edx
jmp 0x4a85d8
push str._lightmap
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a86f0
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 [0x8312f0]
test ecx, ecx
jge 0x4a86e1
mov edx, dword [0x1325118]
mov dword [eax + 4], edx
jmp 0x4a85d8
mov ecx, dword [ecx*4 + 0x1325174]
mov dword [eax + 4], ecx
jmp 0x4a85d8
push str._bumpmap
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8738
push eax
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a85d8
push 0x8312b0
push str.WARNING:_missing_parameter_for_bumpmap_keyword_in_shader__s_n
push 3
call dword [0x1325000]
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.0048b020
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 0x4a85d8
push 0x8312b0
push esi
jmp 0x4aab4a
push 8
push str.clampmap
push esi
call fcn.00465280
add esp, 0xc
test eax, eax
jne 0x4a88b5
mov al, byte [esi + 8]
xor ebx, ebx
xor edi, edi
test al, al
jne 0x4a87de
mov eax, dword [0x13f7f10]
fld dword [eax + 0x1c]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 0x44
jnp 0x4a87d2
mov ebx, 0x812f
mov edi, ebx
jmp 0x4a884d
mov ebx, 0x2900
mov edi, 0x2900
jmp 0x4a884d
cmp al, 0x78
jne 0x4a8810
mov cl, byte [esi + 9]
test cl, cl
jne 0x4a8810
mov ecx, dword [0x13f7f10]
mov ebx, 0x812f
fld dword [ecx + 0x1c]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 0x44
jp 0x4a8809
mov ebx, 0x2900
mov edi, 0x2901
jmp 0x4a884d
cmp al, 0x79
jne 0x4a883d
mov al, byte [esi + 9]
test al, al
jne 0x4a883d
mov edx, dword [0x13f7f10]
mov ebx, 0x2901
fld dword [edx + 0x1c]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 0x44
jnp 0x4a87d7
mov edi, 0x812f
jmp 0x4a884d
push str.WARNING:_Converting_unknown_clampmap_type_to_clampmap_n
push 3
call dword [0x1325000]
add esp, 8
mov eax, dword [esp + 0x458]
push 0
push eax
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aaa6d
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.0048b020
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 0x4a8786
jmp 0x4a85d1
push str.animMap
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa8da
push str.animMapOnce
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa8da
push str.animMapPhase
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa8da
push str.alphaFunc
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a89a3
push eax
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aaa7c
push 0x5634e4
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8942
mov eax, 0x10000000
mov dword [esp + 0x30], eax
jmp 0x4a85d8
push str.LT128
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8962
mov eax, 0x20000000
mov dword [esp + 0x30], eax
jmp 0x4a85d8
push str.GE128
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8982
mov eax, 0x40000000
mov dword [esp + 0x30], eax
jmp 0x4a85d8
push 0x8312b0
push esi
push str.WARNING:_invalid_alphaFunc_name__s_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x4a85d8
push str.depthfunc
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8a1f
push eax
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4aaa9e
push str.lequal
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a89e5
mov dword [esp + 0x28], eax
jmp 0x4a85d8
push str.equal
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8a04
mov dword [esp + 0x28], 0x800
jmp 0x4a85d8
push 0x8312b0
push esi
push str.WARNING:_unknown_depthfunc__s_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
jmp 0x4a85d8
push str.blendfunc
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8d38
push eax
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4a8c04
push 0x54e840
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8a69
mov dword [esp + 0x18], 2
jmp 0x4a8d17
push str.filter
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8a90
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x10
jmp 0x4a8d1f
push str.blend
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8ab7
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 0x60
jmp 0x4a8d1f
push str.alphaadd
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8ad6
mov dword [esp + 0x18], 5
jmp 0x4a8d17
push str.GL_ONE
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a8bea
push str.GL_ZERO
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8b07
mov dword [esp + 0x18], edi
jmp 0x4a8bf2
push str.GL_DST_COLOR
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8b26
mov dword [esp + 0x18], 3
jmp 0x4a8bf2
push str.GL_ONE_MINUS_DST_COLOR
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8b45
mov dword [esp + 0x18], 4
jmp 0x4a8bf2
push str.GL_SRC_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8b64
mov dword [esp + 0x18], 5
jmp 0x4a8bf2
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8b80
mov dword [esp + 0x18], 6
jmp 0x4a8bf2
push str.GL_DST_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8b9c
mov dword [esp + 0x18], 7
jmp 0x4a8bf2
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8bb8
mov dword [esp + 0x18], 8
jmp 0x4a8bf2
push str.GL_SRC_ALPHA_SATURATE
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8bd4
mov dword [esp + 0x18], 9
jmp 0x4a8bf2
push 0x8312b0
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 3
call dword [0x1325000]
add esp, 0x10
mov dword [esp + 0x18], 2
push 0
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a8c1e
push 0x8312b0
push str.WARNING:_missing_parm_for_blendFunc_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.GL_ONE
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a8d17
push str.GL_ZERO
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8c53
mov dword [esp + 0x1c], 0x10
jmp 0x4a8d1f
push str.GL_SRC_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8c72
mov dword [esp + 0x1c], 0x50
jmp 0x4a8d1f
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8c91
mov dword [esp + 0x1c], 0x60
jmp 0x4a8d1f
push str.GL_DST_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8cad
mov dword [esp + 0x1c], 0x70
jmp 0x4a8d1f
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8cc9
mov dword [esp + 0x1c], 0x80
jmp 0x4a8d1f
push str.GL_SRC_COLOR
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8ce5
mov dword [esp + 0x1c], 0x30
jmp 0x4a8d1f
push str.GL_ONE_MINUS_SRC_COLOR
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8d01
mov dword [esp + 0x1c], 0x40
jmp 0x4a8d1f
push 0x8312b0
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 3
call dword [0x1325000]
add esp, 0x10
mov dword [esp + 0x1c], 0x20
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a85d8
mov dword [esp + 0x24], 0
jmp 0x4a85d8
push str.rgbGen
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a92d6
xor edi, edi
push edi
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a8d7b
push 0x8312b0
push str.WARNING:_missing_parameters_for_rgbGen_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.wave
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8db8
lea eax, [ebp + 0x280]
push eax
push ebx
call fcn.004a8310
mov dword [ebp + 0x294], 8
mov eax, dword [0x831450]
add esp, 8
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.colorwave
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8e7c
mov edi, dword [esp + 0x458]
xor esi, esi
push 0
push edi
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a8dfd
push eax
call fcn.0051c76c
fstp dword [esp + esi*4 + 0x3c]
add esp, 4
inc esi
cmp esi, 3
jl 0x4a8dd7
jmp 0x4a8e12
push 0x8312b0
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
fld dword [esp + 0x38]
fmul dword [0x537c44]
call fcn.0051bfdc
fld dword [esp + 0x3c]
fmul dword [0x537c44]
mov byte [ebp + 0x2d4], al
call fcn.0051bfdc
fld dword [esp + 0x40]
fmul dword [0x537c44]
mov byte [ebp + 0x2d5], al
call fcn.0051bfdc
lea ecx, [ebp + 0x280]
mov byte [ebp + 0x2d6], al
push ecx
push edi
call fcn.004a8310
mov dword [ebp + 0x294], 9
mov eax, dword [0x831450]
add esp, 8
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d1
push str.identity
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8e9d
mov dword [ebp + 0x294], 1
jmp 0x4a85d8
push str.identityLighting
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8ebe
mov dword [ebp + 0x294], 2
jmp 0x4a85d8
push str.global
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8edf
mov dword [ebp + 0x294], 0xe
jmp 0x4a85d8
push str.entity
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a92c7
push str.fromentity
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a92c7
push str.oneMinusEntity
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8f2c
mov dword [ebp + 0x294], 4
jmp 0x4a85d8
push str.vertex
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a92a2
push str.fromclient
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a92a2
push str.exactVertex
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8f79
mov dword [ebp + 0x294], 5
jmp 0x4a85d8
push str.lightingGrid
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8f9a
mov dword [ebp + 0x294], 0xa
jmp 0x4a85d8
push str.lightingSpherical
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8fbb
mov dword [ebp + 0x294], 0xb
jmp 0x4a85d8
push str.oneMinusVertex
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a8fdc
mov dword [ebp + 0x294], 7
jmp 0x4a85d8
push str.const
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9210
push str.constant
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9210
push str.static
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9029
mov dword [ebp + 0x294], 0xf
jmp 0x4a92ac
push str.sCoord
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9116
push str.tCoord
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9116
push 0x563248
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a90d3
mov dword [0x831370], 1
mov dword [ebp + 0x294], 0x12
push edi
push ebx
mov dword [ebp + 0x2c0], edi
mov dword [ebp + 0x2c4], 0x3f800000
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [ebp + 0x2c4]
add esp, 4
jmp 0x4a85d8
push str.oneminusdot
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a90fb
mov dword [0x831370], 1
mov dword [ebp + 0x294], 0x13
jmp 0x4a907b
push 0x8312b0
push esi
push str.WARNING:_unknown_rgbGen_parameter__s_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
jmp 0x4a85d8
push str.sCoord
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9134
mov dword [ebp + 0x294], 0x10
jmp 0x4a913e
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.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [ebp + 0x2c4]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fmul qword [0x5380f8]
call fcn.0051bfdc
push edi
push ebx
mov byte [ebp + 0x2d9], al
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a91f6
push eax
call fcn.0051c76c
fmul qword [0x5380f8]
add esp, 4
call fcn.0051bfdc
mov byte [ebp + 0x2d8], al
jmp 0x4a85d8
push 0x8312b0
push str.WARNING:_missing_rgbGen_sCoord_or_tCoord_parm_max_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
mov edi, dword [esp + 0x458]
xor esi, esi
push 0
push edi
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a923f
push eax
call fcn.0051c76c
fstp dword [esp + esi*4 + 0x48]
add esp, 4
inc esi
cmp esi, 3
jl 0x4a9219
jmp 0x4a9254
push 0x8312b0
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
fld dword [esp + 0x44]
fmul dword [0x537c44]
call fcn.0051bfdc
fld dword [esp + 0x48]
fmul dword [0x537c44]
mov byte [ebp + 0x2d4], al
call fcn.0051bfdc
fld dword [esp + 0x4c]
fmul dword [0x537c44]
mov byte [ebp + 0x2d5], al
call fcn.0051bfdc
mov byte [ebp + 0x2d6], al
mov dword [ebp + 0x294], 0xc
jmp 0x4a85d1
mov dword [ebp + 0x294], 6
cmp dword [ebp + 0x2ac], edi
jne 0x4a85d8
mov dword [ebp + 0x2ac], 4
jmp 0x4a85d8
mov dword [ebp + 0x294], 3
jmp 0x4a85d8
push str.alphaGen
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a992a
xor edi, edi
push edi
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a9319
push 0x8312b0
push str.WARNING:_missing_parameters_for_alphaGen_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.wave
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9356
lea edx, [ebp + 0x298]
push edx
push ebx
call fcn.004a8310
mov dword [ebp + 0x2ac], 7
mov eax, dword [0x831450]
add esp, 8
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.identity
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9373
mov dword [ebp + 0x2ac], edi
jmp 0x4a85d8
push str.global
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9394
mov dword [ebp + 0x2ac], 0xd
jmp 0x4a85d8
push str.entity
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a991b
push str.fromentity
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a991b
push str.oneMinusEntity
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a93e1
mov dword [ebp + 0x2ac], 3
jmp 0x4a85d8
push str.vertex
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a92b8
push str.fromclient
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a92b8
push str.oneMinusVertex
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a990c
push str.oneMinusFromClient
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a990c
push str.lightingSpecular
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a94fc
lea esi, [ebp + 0x2c8]
push edi
mov dword [0x831370], 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.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fmul qword [0x5380f8]
add esp, 4
xor edi, edi
fstp dword [ebp + 0x2c4]
push 0
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a94e2
push eax
call fcn.0051c76c
fstp dword [esi]
add esp, 4
inc edi
add esi, 4
cmp edi, 3
jl 0x4a94b8
jmp 0x4a85d8
push 0x8312b0
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.portal
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9550
push edi
push ebx
mov dword [ebp + 0x2ac], 8
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a95b4
push 0x8312b0
push str.WARNING:_missing_range_parameter_for_alphaGen_portal_in_shader__s__defaulting_to_256_n
push 3
mov dword [0x83135c], 0x43800000
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.distFade
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a95c8
push edi
mov dword [ebp + 0x2ac], 0x12
push ebx
mov dword [0x83135c], 0x43800000
mov dword [0x831360], 0x43800000
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [0x831360]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [0x83135c]
add esp, 4
jmp 0x4a85d8
push str.oneMinusDistFade
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9640
push edi
mov dword [ebp + 0x2ac], 0x13
push ebx
mov dword [0x83135c], 0x43800000
mov dword [0x831360], 0x43800000
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [0x831360]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [0x83135c]
add esp, 4
jmp 0x4a85d8
push 0x563248
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a966b
mov dword [0x831370], 1
mov dword [ebp + 0x2ac], 0xa
jmp 0x4a907b
push str.dotView
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9696
mov dword [0x831370], 1
mov dword [ebp + 0x2ac], 0x14
jmp 0x4a907b
push str.oneMinusDotView
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a96c1
mov dword [0x831370], 1
mov dword [ebp + 0x2ac], 0x15
jmp 0x4a907b
push str.oneMinusDot
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a96ec
mov dword [0x831370], 1
mov dword [ebp + 0x2ac], 0xb
jmp 0x4a907b
push str.const
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9893
push str.constant
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9893
push str.skyAlpha
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9739
mov dword [ebp + 0x2ac], 0xe
jmp 0x4a85d8
push str.oneMinusSkyAlpha
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a975a
mov dword [ebp + 0x2ac], 0xf
jmp 0x4a85d8
push str.sCoord
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9799
push str.tCoord
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4a9799
push 0x8312b0
push esi
push str.WARNING:_unknown_alphaGen_parameter__s_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
jmp 0x4a85d8
push str.sCoord
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a97b7
mov dword [ebp + 0x2ac], 0x10
jmp 0x4a97c1
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.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [ebp + 0x2c4]
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a85d8
push eax
call fcn.0051c76c
fmul qword [0x5380f8]
call fcn.0051bfdc
push edi
push ebx
mov byte [ebp + 0x2d9], al
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x4a9879
push eax
call fcn.0051c76c
fmul qword [0x5380f8]
add esp, 4
call fcn.0051bfdc
mov byte [ebp + 0x2d8], al
jmp 0x4a85d8
push 0x8312b0
push str.WARNING:_missing_alphaGen_s_or_tCoord_parm_max_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push edi
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a98f2
push eax
call fcn.0051c76c
fmul dword [0x537c44]
add esp, 4
call fcn.0051bfdc
cmp eax, edi
jl 0x4a98d7
cmp eax, 0xff
jg 0x4a98d7
mov dword [ebp + 0x2ac], 0xc
mov byte [ebp + 0x2d7], al
jmp 0x4a85d8
push 0x8312b0
push eax
push str.WARNING:_alphaGen_constant__d_out_of__0..1__range_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
jmp 0x4a85d8
push 0x8312b0
push str.WARNING:_no_alphaGen_constant_specified_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
mov dword [ebp + 0x2ac], 5
jmp 0x4a85d8
mov dword [ebp + 0x2ac], 2
jmp 0x4a85d8
push str.texgen
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa6c8
push str.tcGen
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa6c8
push str.tcMod
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa5db
mov al, byte [0x570b44]
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.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a99da
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 [0x544d70]
mov word [edi - 1], ax
jmp 0x4a9985
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 0x4a9a18
push 0x8312b0
push str.ERROR:_too_many_tcMod_stages_in_shader__s_n
push 1
call dword [0x1325004]
add esp, 0xc
jmp 0x4a85d8
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.00464e40
mov edi, eax
push str.turb
push edi
call fcn.00465320
add esp, 0x10
test eax, eax
jne 0x4a9b51
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a9a86
push 0x8312b0
push str.WARNING:_missing_tcMod_turb_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9abe
push 0x8312b0
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9af6
push 0x8312b0
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9b2e
push 0x8312b0
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x14]
mov dword [esi], 2
mov eax, dword [0x831450]
add esp, 4
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.scale
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9be0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a9b91
push 0x8312b0
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x30]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9bc9
push 0x8312b0
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x34]
add esp, 4
mov dword [esi], 4
jmp 0x4a85d8
push str.scroll
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9e0e
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a9c25
push 0x8312b0
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.fromEntity
push edi
call fcn.0051d450
add esp, 8
test eax, eax
jne 0x4a9c40
mov dword [esi + 0x40], 0x4996b438
jmp 0x4a9c4c
push edi
call fcn.0051c76c
fstp dword [esi + 0x40]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a9c7c
push 0x8312b0
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.fromEntity
push edi
call fcn.0051d450
add esp, 8
test eax, eax
jne 0x4a9c97
mov dword [esi + 0x44], 0x4996b438
jmp 0x4a9ca3
push edi
call fcn.0051c76c
fstp dword [esi + 0x44]
add esp, 4
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a9d4d
push edi
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a9d04
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fsubr dword [esi + 0x40]
jmp 0x4a9d4a
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a9d4d
push edi
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fadd dword [esi + 0x40]
fstp dword [esi + 0x40]
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a9df7
push edi
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a9dae
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fsubr dword [esi + 0x44]
jmp 0x4a9df4
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a9df7
push edi
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
mov dword [esi], 3
mov eax, dword [0x831450]
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.stretch
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9e48
lea eax, [esi + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004a8310
mov dword [esi], 5
mov eax, dword [0x831450]
add esp, 8
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.wavetrans
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9e82
lea edx, [esi + 4]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004a8310
mov dword [esi], 0xc
mov eax, dword [0x831450]
add esp, 8
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.wavetrant
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9ebc
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004a8310
mov dword [esi], 0xd
mov eax, dword [0x831450]
add esp, 8
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.bulge
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4a9fcb
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a9f00
push 0x8312b0
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 8]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9f38
push 0x8312b0
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9f70
push 0x8312b0
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x14]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a9fa8
push 0x8312b0
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x10]
mov dword [esi], 0xe
mov eax, dword [0x831450]
add esp, 4
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.transform
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa13e
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa00f
push 0x8312b0
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa047
push 0x8312b0
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x1c]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa07f
push 0x8312b0
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa0b7
push 0x8312b0
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x24]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa0ef
push 0x8312b0
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x28]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa127
push 0x8312b0
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x2c]
add esp, 4
mov dword [esi], 1
jmp 0x4a85d8
push str.rotate
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa231
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa183
push 0x8312b0
push str.WARNING:_missing_tcMod_rotate_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.fromEntity
push edi
call fcn.0051d450
add esp, 8
test eax, eax
jne 0x4aa19e
mov dword [esi + 0x48], 0x4996b438
jmp 0x4aa1aa
push edi
call fcn.0051c76c
fstp dword [esi + 0x48]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa1c9
mov dword [esi + 0x4c], 0
jmp 0x4aa1f0
push str.fromEntity
push edi
call fcn.0051d450
add esp, 8
test eax, eax
jne 0x4aa1e4
mov dword [esi + 0x4c], 0x4996b438
jmp 0x4aa1f0
push edi
call fcn.0051c76c
fstp dword [esi + 0x4c]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa20e
mov dword [esi + 0x50], 0x3f800000
jmp 0x4aa21a
push eax
call fcn.0051c76c
fstp dword [esi + 0x50]
add esp, 4
mov dword [esi], 6
mov eax, dword [0x831450]
or al, 2
mov dword [0x831450], eax
jmp 0x4a85d8
push str.offset
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa46b
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa276
push 0x8312b0
push str.WARNING:_missing_offset_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.fromEntity
push edi
call fcn.0051d450
add esp, 8
test eax, eax
jne 0x4aa291
mov dword [esi + 0x40], 0x4996b438
jmp 0x4aa29d
push edi
call fcn.0051c76c
fstp dword [esi + 0x40]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4aa2cd
push 0x8312b0
push str.WARNING:_missing_offset_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.fromEntity
push edi
call fcn.0051d450
add esp, 8
test eax, eax
jne 0x4aa2e8
mov dword [esi + 0x44], 0x4996b438
jmp 0x4aa2f4
push edi
call fcn.0051c76c
fstp dword [esi + 0x44]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4aa3aa
push edi
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4aa35b
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
fadd qword [0x537478]
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fsubr dword [esi + 0x40]
jmp 0x4aa3a7
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4aa3aa
push edi
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
fadd qword [0x537478]
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fadd dword [esi + 0x40]
fstp dword [esi + 0x40]
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4aa460
push edi
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4aa417
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esi], 9
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fsubr dword [esi + 0x44]
fstp dword [esi + 0x44]
jmp 0x4a85d8
call fcn.0051c76c
fcomp qword [0x537be0]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4aa460
push edi
call fcn.0051c76c
fmul qword [0x537ab8]
add esp, 4
call fcn.0051bfdc
mov edi, eax
call fcn.0051d565
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x537428]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
mov dword [esi], 9
jmp 0x4a85d8
push str.entityTranslate
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa488
mov dword [esi], 7
jmp 0x4a85d8
push str.parallax
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa517
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa4c8
push 0x8312b0
push str.WARNING:_missing_rate_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x38]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa500
push 0x8312b0
push str.WARNING:_missing_rate_parms_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fstp dword [esi + 0x3c]
add esp, 4
mov dword [esi], 0xa
jmp 0x4a85d8
push str.macro
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa5c0
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4aa55b
push 0x8312b0
push str.WARNING:_missing_scale_parms_in_shader__s_for_macro_definition_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fdivr qword [0x537478]
lea edx, [esp + 0x14]
push 0
push edx
fstp dword [esi + 0x30]
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4aa599
push 0x8312b0
push str.WARNING:_missing_scale_parms_in_shader__s_for_macro_definition_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push eax
call fcn.0051c76c
fdivr qword [0x537478]
mov dword [esi], 0xb
add esp, 4
fstp dword [esi + 0x34]
mov dword [0x831370], 1
jmp 0x4a85d8
push 0x8312b0
push edi
push str.WARNING:_unknown_tcMod__s_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
jmp 0x4a85d8
push str.depthwrite
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa6b7
push str.depthmask
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa6b7
push str.noDepthTest
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa626
mov dword [esp + 0x34], 0x400
jmp 0x4a85d8
push str.nextBundle
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aaadd
mov eax, dword [0x13f7fb8]
test eax, eax
je 0x4aaac0
push 0
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aa678
push 0x54e840
push eax
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa678
mov dword [ebp + 0x27c], 0x104
jmp 0x4aa682
mov dword [ebp + 0x27c], 0x2100
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
inc eax
cmp eax, 2
jle 0x4a85d8
push 0x8312b0
push str.WARNING:_too_many_nextBundle_commands_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
mov dword [esp + 0x24], pe_nt_image_headers32
mov dword [esp + 0x2c], edi
jmp 0x4a85d8
push 0
push ebx
call fcn.00464e40
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4aa6f4
push 0x8312b0
push str.WARNING:_missing_texgen_parm_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
push str.environment
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa728
mov eax, dword [esp + 0x14]
mov dword [0x831370], edi
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 4
jmp 0x4a85d8
push str.environmentmodel
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa75c
mov eax, dword [esp + 0x14]
mov dword [0x831370], edi
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 6
jmp 0x4a85d8
push str.sunreflection
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa790
mov eax, dword [esp + 0x14]
mov dword [0x831370], edi
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 7
jmp 0x4a85d8
push str.lightmap
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa7be
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 2
jmp 0x4a85d8
push str.texture
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa8be
push str.base
push esi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4aa8be
push str.vector
push esi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa8a4
xor esi, esi
lea edi, [ebp + 0x114]
push 0
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aa82f
push eax
call fcn.0051c76c
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x4aa808
jmp 0x4aa844
push 0x8312b0
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
xor esi, esi
lea edi, [ebp + 0x120]
push 0
push ebx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aa873
push eax
call fcn.0051c76c
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x4aa84c
jmp 0x4aa888
push 0x8312b0
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x1325000]
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 0x4a85d8
push 0x8312b0
push str.WARNING:_unknown_texgen_parm_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4a85d8
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 3
jmp 0x4a85d8
mov ecx, dword [0x831450]
push str.animMapOnce
or ecx, 3
push esi
mov dword [0x831450], ecx
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4aa915
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.00465320
mov esi, eax
push 0
neg esi
sbb esi, esi
push ebx
inc esi
call fcn.00464e40
mov cl, byte [eax]
add esp, 0x10
test cl, cl
je 0x4aab00
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.0051c76c
fstp dword [ebx + 0x108]
add esp, 4
mov dword [ebx + 0x10c], 0
test esi, esi
je 0x4aa994
mov eax, dword [esp + 0x458]
push 0
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4aab22
push eax
call fcn.0051c76c
fstp dword [ebx + 0x10c]
add esp, 4
mov ecx, dword [esp + 0x458]
push 0
push ecx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a85d1
mov esi, dword [ebx + 0x104]
cmp esi, 0x40
jge 0x4aaa14
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.0048b020
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 0x4aab44
inc dword [ebx + 0x104]
jmp 0x4aa994
push 0x8312b0
push str.WARNING:_mapanim___too_many_animated_textures_specified_for_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4aa994
push str.WARNING:_no_matching__found_n
push 3
call dword [0x1325000]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push str.WARNING:_missing_parameter_for_map_keyword_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push str.WARNING:_missing_parameter_for_clampmap_keyword_in_shader__s_n
jmp 0x4a8720
push 0x8312b0
push str.WARNING:_missing_parameter_for_alphaFunc_keyword_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push str.WARNING:_missing_parameter_for_depthfunc_keyword_in_shader__s_n
push 3
call dword [0x1325000]
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 [0x1325004]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push esi
push str.WARNING:_unknown_parameter__s_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push str.WARNING:_missing_parameter_for_animMap_keyword_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push str.WARNING:_missing_phase_for_animMapPhase_keyword_in_shader__s_n
push 3
call dword [0x1325000]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x8312b0
push edi
push str.WARNING:_R_FindImageFile_could_not_find__s_in_shader__s_n
push 3
call dword [0x1325000]
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 0x4aabad
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4aaba1
mov eax, dword [ebp + 0x134]
test eax, eax
jne 0x4aaba1
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4aab95
cmp edx, 2
je 0x4aab95
cmp edx, 5
jne 0x4aaba5
mov dword [ebp + 0x294], 2
jmp 0x4aabb1
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x294], edi
jmp 0x4aabb1
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp edx, 2
jne 0x4aabca
cmp edi, 0x10
jne 0x4aabca
xor edx, edx
xor edi, edi
mov esi, pe_nt_image_headers32
jmp 0x4aabce
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x400
jne 0x4aabdc
xor esi, esi
mov eax, dword [ebp + 0x2ac]
test eax, eax
jne 0x4aac05
mov eax, dword [ebp + 0x294]
cmp eax, 1
je 0x4aabfb
cmp eax, 0xa
je 0x4aabfb
cmp eax, 0xb
jne 0x4aac05
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