Function at 0x49eb90
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 [0x7cae50]
push esi
mov dword [ebp + 0x2b4], eax
mov ecx, dword [0x7cae54]
mov dword [ebp + 0x2b8], ecx
mov edx, dword [0x7c2c90]
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.00462880
mov esi, eax
add esp, 8
mov al, byte [esi]
test al, al
je 0x4a0fea
cmp al, 0x7d
je 0x4a1123
push str.nomipmaps
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ec35
mov dword [ebp + 0x2b4], edi
jmp 0x49ebf8
push str.nopicmip
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ec4f
mov dword [ebp + 0x2b8], edi
jmp 0x49ebf8
push str.force32bit
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ec69
mov dword [ebp + 0x2bc], edi
jmp 0x49ebf8
push 0x54e35c
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49edb1
push eax
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4a1007
push str._whiteimage
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ecc1
mov eax, dword [esp + 0x14]
mov edx, dword [0x12ff7b8]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 4], edx
jmp 0x49ebf8
push str._lightmap
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ed10
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 [0x7c2cd8]
test ecx, ecx
jge 0x49ed01
mov edx, dword [0x12ff7b8]
mov dword [eax + 4], edx
jmp 0x49ebf8
mov ecx, dword [ecx*4 + 0x12ff814]
mov dword [eax + 4], ecx
jmp 0x49ebf8
push str._bumpmap
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ed58
push eax
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x49ebf8
push 0x7c2c98
push str.WARNING:_missing_parameter_for_bumpmap_keyword_in_shader__s_n
push 3
call dword [0x12ff6a0]
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.00487ca0
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 0x49ebf8
push 0x7c2c98
push esi
jmp 0x4a1106
push 8
push str.clampmap
push esi
call fcn.00462cc0
add esp, 0xc
test eax, eax
jne 0x49eed5
mov al, byte [esi + 8]
xor ebx, ebx
xor edi, edi
test al, al
jne 0x49edfe
mov eax, dword [0x13d35b0]
fld dword [eax + 0x1c]
fcomp dword [0x5314c0]
fnstsw ax
test ah, 0x44
jnp 0x49edf2
mov ebx, 0x812f
mov edi, ebx
jmp 0x49ee6d
mov ebx, 0x2900
mov edi, 0x2900
jmp 0x49ee6d
cmp al, 0x78
jne 0x49ee30
mov cl, byte [esi + 9]
test cl, cl
jne 0x49ee30
mov ecx, dword [0x13d35b0]
mov ebx, 0x812f
fld dword [ecx + 0x1c]
fcomp dword [0x5314c0]
fnstsw ax
test ah, 0x44
jp 0x49ee29
mov ebx, 0x2900
mov edi, 0x2901
jmp 0x49ee6d
cmp al, 0x79
jne 0x49ee5d
mov al, byte [esi + 9]
test al, al
jne 0x49ee5d
mov edx, dword [0x13d35b0]
mov ebx, 0x2901
fld dword [edx + 0x1c]
fcomp dword [0x5314c0]
fnstsw ax
test ah, 0x44
jnp 0x49edf7
mov edi, 0x812f
jmp 0x49ee6d
push str.WARNING:_Converting_unknown_clampmap_type_to_clampmap_n
push 3
call dword [0x12ff6a0]
add esp, 8
mov eax, dword [esp + 0x458]
push 0
push eax
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4a1029
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.00487ca0
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 0x49eda6
jmp 0x49ebf1
push str.animMap
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0e97
push str.animMapOnce
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0e97
push str.animMapPhase
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0e97
push str.alphaFunc
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49efc3
push eax
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4a1038
push 0x55b9ac
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ef62
mov eax, 0x10000000
mov dword [esp + 0x30], eax
jmp 0x49ebf8
push str.LT128
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ef82
mov eax, 0x20000000
mov dword [esp + 0x30], eax
jmp 0x49ebf8
push str.GE128
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49efa2
mov eax, 0x40000000
mov dword [esp + 0x30], eax
jmp 0x49ebf8
push 0x7c2c98
push esi
push str.WARNING:_invalid_alphaFunc_name__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x49ebf8
push str.depthfunc
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f03f
push eax
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x4a105a
push str.lequal
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f005
mov dword [esp + 0x28], eax
jmp 0x49ebf8
push str.equal
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f024
mov dword [esp + 0x28], 0x800
jmp 0x49ebf8
push 0x7c2c98
push esi
push str.WARNING:_unknown_depthfunc__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
jmp 0x49ebf8
push str.blendfunc
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f358
push eax
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
je 0x49f224
push 0x5483b8
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f089
mov dword [esp + 0x18], 2
jmp 0x49f337
push str.filter
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f0b0
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x10
jmp 0x49f33f
push str.blend
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f0d7
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 0x60
jmp 0x49f33f
push str.alphaadd
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f0f6
mov dword [esp + 0x18], 5
jmp 0x49f337
push str.GL_ONE
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f20a
push str.GL_ZERO
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f127
mov dword [esp + 0x18], edi
jmp 0x49f212
push str.GL_DST_COLOR
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f146
mov dword [esp + 0x18], 3
jmp 0x49f212
push str.GL_ONE_MINUS_DST_COLOR
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f165
mov dword [esp + 0x18], 4
jmp 0x49f212
push str.GL_SRC_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f184
mov dword [esp + 0x18], 5
jmp 0x49f212
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f1a0
mov dword [esp + 0x18], 6
jmp 0x49f212
push str.GL_DST_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f1bc
mov dword [esp + 0x18], 7
jmp 0x49f212
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f1d8
mov dword [esp + 0x18], 8
jmp 0x49f212
push str.GL_SRC_ALPHA_SATURATE
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f1f4
mov dword [esp + 0x18], 9
jmp 0x49f212
push 0x7c2c98
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
mov dword [esp + 0x18], 2
push 0
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x49f23e
push 0x7c2c98
push str.WARNING:_missing_parm_for_blendFunc_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.GL_ONE
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f337
push str.GL_ZERO
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f273
mov dword [esp + 0x1c], 0x10
jmp 0x49f33f
push str.GL_SRC_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f292
mov dword [esp + 0x1c], 0x50
jmp 0x49f33f
push str.GL_ONE_MINUS_SRC_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f2b1
mov dword [esp + 0x1c], 0x60
jmp 0x49f33f
push str.GL_DST_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f2cd
mov dword [esp + 0x1c], 0x70
jmp 0x49f33f
push str.GL_ONE_MINUS_DST_ALPHA
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f2e9
mov dword [esp + 0x1c], 0x80
jmp 0x49f33f
push str.GL_SRC_COLOR
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f305
mov dword [esp + 0x1c], 0x30
jmp 0x49f33f
push str.GL_ONE_MINUS_SRC_COLOR
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f321
mov dword [esp + 0x1c], 0x40
jmp 0x49f33f
push 0x7c2c98
push esi
push str.WARNING:_unknown_blend_mode__s_in_shader__s__substituting_GL_ONE_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
mov dword [esp + 0x1c], 0x20
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x49ebf8
mov dword [esp + 0x24], 0
jmp 0x49ebf8
push str.rgbGen
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f8de
xor edi, edi
push edi
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x49f39b
push 0x7c2c98
push str.WARNING:_missing_parameters_for_rgbGen_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.wave
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f3cc
lea eax, [ebp + 0x280]
push eax
push ebx
call fcn.0049e930
add esp, 8
mov dword [ebp + 0x294], 8
jmp 0x49ebf8
push str.colorwave
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f484
mov edi, dword [esp + 0x458]
xor esi, esi
push 0
push edi
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49f411
push eax
call fcn.0051738c
fstp dword [esp + esi*4 + 0x3c]
add esp, 4
inc esi
cmp esi, 3
jl 0x49f3eb
jmp 0x49f426
push 0x7c2c98
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
fld dword [esp + 0x38]
fmul dword [0x531c1c]
call fcn.00516e2c
fld dword [esp + 0x3c]
fmul dword [0x531c1c]
mov byte [ebp + 0x2d4], al
call fcn.00516e2c
fld dword [esp + 0x40]
fmul dword [0x531c1c]
mov byte [ebp + 0x2d5], al
call fcn.00516e2c
lea ecx, [ebp + 0x280]
mov byte [ebp + 0x2d6], al
push ecx
push edi
call fcn.0049e930
add esp, 8
mov dword [ebp + 0x294], 9
jmp 0x49ebf1
push str.identity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f4a5
mov dword [ebp + 0x294], 1
jmp 0x49ebf8
push str.identityLighting
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f4c6
mov dword [ebp + 0x294], 2
jmp 0x49ebf8
push str.global
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f4e7
mov dword [ebp + 0x294], 0xe
jmp 0x49ebf8
push str.entity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f8cf
push str.fromentity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f8cf
push str.oneMinusEntity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f534
mov dword [ebp + 0x294], 4
jmp 0x49ebf8
push str.vertex
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f8aa
push str.fromclient
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f8aa
push str.exactVertex
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f581
mov dword [ebp + 0x294], 5
jmp 0x49ebf8
push str.lightingGrid
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f5a2
mov dword [ebp + 0x294], 0xa
jmp 0x49ebf8
push str.lightingSpherical
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f5c3
mov dword [ebp + 0x294], 0xb
jmp 0x49ebf8
push str.oneMinusVertex
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f5e4
mov dword [ebp + 0x294], 7
jmp 0x49ebf8
push str.const
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f818
push str.constant
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f818
push str.static
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f631
mov dword [ebp + 0x294], 0xf
jmp 0x49f8b4
push str.sCoord
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f71e
push str.tCoord
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f71e
push 0x55b708
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f6db
mov dword [0x7c2d58], 1
mov dword [ebp + 0x294], 0x12
push edi
push ebx
mov dword [ebp + 0x2c0], edi
mov dword [ebp + 0x2c4], 0x3f800000
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [ebp + 0x2c4]
add esp, 4
jmp 0x49ebf8
push str.oneminusdot
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f703
mov dword [0x7c2d58], 1
mov dword [ebp + 0x294], 0x13
jmp 0x49f683
push 0x7c2c98
push esi
push str.WARNING:_unknown_rgbGen_parameter__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
jmp 0x49ebf8
push str.sCoord
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f73c
mov dword [ebp + 0x2ac], 0x10
jmp 0x49f746
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.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [ebp + 0x2c4]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fmul qword [0x531fd8]
call fcn.00516e2c
push edi
push ebx
mov byte [ebp + 0x2d9], al
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49f7fe
push eax
call fcn.0051738c
fmul qword [0x531fd8]
add esp, 4
call fcn.00516e2c
mov byte [ebp + 0x2d8], al
jmp 0x49ebf8
push 0x7c2c98
push str.WARNING:_missing_rgbGen_sCoord_or_tCoord_parm_max_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
mov edi, dword [esp + 0x458]
xor esi, esi
push 0
push edi
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49f847
push eax
call fcn.0051738c
fstp dword [esp + esi*4 + 0x48]
add esp, 4
inc esi
cmp esi, 3
jl 0x49f821
jmp 0x49f85c
push 0x7c2c98
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
fld dword [esp + 0x44]
fmul dword [0x531c1c]
call fcn.00516e2c
fld dword [esp + 0x48]
fmul dword [0x531c1c]
mov byte [ebp + 0x2d4], al
call fcn.00516e2c
fld dword [esp + 0x4c]
fmul dword [0x531c1c]
mov byte [ebp + 0x2d5], al
call fcn.00516e2c
mov byte [ebp + 0x2d6], al
mov dword [ebp + 0x294], 0xc
jmp 0x49ebf1
mov dword [ebp + 0x294], 6
cmp dword [ebp + 0x2ac], edi
jne 0x49ebf8
mov dword [ebp + 0x2ac], 4
jmp 0x49ebf8
mov dword [ebp + 0x294], 3
jmp 0x49ebf8
push str.alphaGen
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49ff26
xor edi, edi
push edi
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x49f921
push 0x7c2c98
push str.WARNING:_missing_parameters_for_alphaGen_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.wave
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f952
lea edx, [ebp + 0x298]
push edx
push ebx
call fcn.0049e930
add esp, 8
mov dword [ebp + 0x2ac], 7
jmp 0x49ebf8
push str.identity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f96f
mov dword [ebp + 0x2ac], edi
jmp 0x49ebf8
push str.global
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f990
mov dword [ebp + 0x2ac], 0xd
jmp 0x49ebf8
push str.entity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49ff17
push str.fromentity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49ff17
push str.oneMinusEntity
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49f9dd
mov dword [ebp + 0x2ac], 3
jmp 0x49ebf8
push str.vertex
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f8c0
push str.fromclient
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49f8c0
push str.oneMinusVertex
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49ff08
push str.oneMinusFromClient
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49ff08
push str.lightingSpecular
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49faf8
lea esi, [ebp + 0x2c8]
push edi
mov dword [0x7c2d58], 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.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fmul qword [0x531fd8]
add esp, 4
xor edi, edi
fstp dword [ebp + 0x2c4]
push 0
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49fade
push eax
call fcn.0051738c
fstp dword [esi]
add esp, 4
inc edi
add esi, 4
cmp edi, 3
jl 0x49fab4
jmp 0x49ebf8
push 0x7c2c98
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.portal
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fb4c
push edi
push ebx
mov dword [ebp + 0x2ac], 8
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x49fbb0
push 0x7c2c98
push str.WARNING:_missing_range_parameter_for_alphaGen_portal_in_shader__s__defaulting_to_256_n
push 3
mov dword [0x7c2d44], 0x43800000
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.distFade
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fbc4
push edi
mov dword [ebp + 0x2ac], 0x12
push ebx
mov dword [0x7c2d44], 0x43800000
mov dword [0x7c2d48], 0x43800000
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [0x7c2d48]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [0x7c2d44]
add esp, 4
jmp 0x49ebf8
push str.oneMinusDistFade
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fc3c
push edi
mov dword [ebp + 0x2ac], 0x13
push ebx
mov dword [0x7c2d44], 0x43800000
mov dword [0x7c2d48], 0x43800000
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [0x7c2d48]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [0x7c2d44]
add esp, 4
jmp 0x49ebf8
push 0x55b708
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fc67
mov dword [0x7c2d58], 1
mov dword [ebp + 0x2ac], 0xa
jmp 0x49f683
push str.dotView
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fc92
mov dword [0x7c2d58], 1
mov dword [ebp + 0x2ac], 0x14
jmp 0x49f683
push str.oneMinusDotView
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fcbd
mov dword [0x7c2d58], 1
mov dword [ebp + 0x2ac], 0x15
jmp 0x49f683
push str.oneMinusDot
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fce8
mov dword [0x7c2d58], 1
mov dword [ebp + 0x2ac], 0xb
jmp 0x49f683
push str.const
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49fe8f
push str.constant
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49fe8f
push str.skyAlpha
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fd35
mov dword [ebp + 0x2ac], 0xe
jmp 0x49ebf8
push str.oneMinusSkyAlpha
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fd56
mov dword [ebp + 0x2ac], 0xf
jmp 0x49ebf8
push str.sCoord
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49fd95
push str.tCoord
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x49fd95
push 0x7c2c98
push esi
push str.WARNING:_unknown_alphaGen_parameter__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
jmp 0x49ebf8
push str.sCoord
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x49fdb3
mov dword [ebp + 0x2ac], 0x10
jmp 0x49fdbd
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.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [ebp + 0x2c0]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fstp dword [ebp + 0x2c4]
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49ebf8
push eax
call fcn.0051738c
fmul qword [0x531fd8]
call fcn.00516e2c
push edi
push ebx
mov byte [ebp + 0x2d9], al
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x49fe75
push eax
call fcn.0051738c
fmul qword [0x531fd8]
add esp, 4
call fcn.00516e2c
mov byte [ebp + 0x2d8], al
jmp 0x49ebf8
push 0x7c2c98
push str.WARNING:_missing_alphaGen_s_or_tCoord_parm_max_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push edi
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49feee
push eax
call fcn.0051738c
fmul dword [0x531c1c]
add esp, 4
call fcn.00516e2c
cmp eax, edi
jl 0x49fed3
cmp eax, 0xff
jg 0x49fed3
mov dword [ebp + 0x2ac], 0xc
mov byte [ebp + 0x2d7], al
jmp 0x49ebf8
push 0x7c2c98
push eax
push str.WARNING:_alphaGen_constant__d_out_of__0..1__range_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
jmp 0x49ebf8
push 0x7c2c98
push str.WARNING:_no_alphaGen_constant_specified_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
mov dword [ebp + 0x2ac], 5
jmp 0x49ebf8
mov dword [ebp + 0x2ac], 2
jmp 0x49ebf8
push str.texgen
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0c85
push str.tcGen
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0c85
push str.tcMod
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0b98
mov al, byte [0x569ee4]
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.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x49ffd6
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 [0x53ed60]
mov word [edi - 1], ax
jmp 0x49ff81
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 0x4a0014
push 0x7c2c98
push str.ERROR:_too_many_tcMod_stages_in_shader__s_n
push 1
call dword [0x12ff6a4]
add esp, 0xc
jmp 0x49ebf8
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.00462880
mov edi, eax
push str.turb
push edi
call fcn.00462d60
add esp, 0x10
test eax, eax
jne 0x4a0141
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a0082
push 0x7c2c98
push str.WARNING:_missing_tcMod_turb_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a00ba
push 0x7c2c98
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a00f2
push 0x7c2c98
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a012a
push 0x7c2c98
push str.WARNING:_missing_tcMod_turb_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x14]
add esp, 4
mov dword [esi], 2
jmp 0x49ebf8
push str.scale
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a01d0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a0181
push 0x7c2c98
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x30]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a01b9
push 0x7c2c98
push str.WARNING:_missing_scale_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x34]
add esp, 4
mov dword [esi], 4
jmp 0x49ebf8
push str.scroll
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a03fe
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a0215
push 0x7c2c98
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.fromEntity
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x4a0230
mov dword [esi + 0x40], 0x4996b438
jmp 0x4a023c
push edi
call fcn.0051738c
fstp dword [esi + 0x40]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a026c
push 0x7c2c98
push str.WARNING:_missing_scale_scroll_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.fromEntity
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x4a0287
mov dword [esi + 0x44], 0x4996b438
jmp 0x4a0293
push edi
call fcn.0051738c
fstp dword [esi + 0x44]
add esp, 4
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a033d
push edi
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a02f4
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fsubr dword [esi + 0x40]
jmp 0x4a033a
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a033d
push edi
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fadd dword [esi + 0x40]
fstp dword [esi + 0x40]
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a03f3
push edi
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a03aa
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esi], 3
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fsubr dword [esi + 0x44]
fstp dword [esi + 0x44]
jmp 0x49ebf8
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a03f3
push edi
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
mov dword [esi], 3
jmp 0x49ebf8
push str.stretch
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a042c
lea eax, [esi + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0049e930
add esp, 8
mov dword [esi], 5
jmp 0x49ebf8
push str.wavetrans
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a045a
lea edx, [esi + 4]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0049e930
add esp, 8
mov dword [esi], 0xc
jmp 0x49ebf8
push str.wavetrant
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0488
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.0049e930
add esp, 8
mov dword [esi], 0xd
jmp 0x49ebf8
push str.bulge
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a058b
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a04cc
push 0x7c2c98
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 8]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a0504
push 0x7c2c98
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a053c
push 0x7c2c98
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x14]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a0574
push 0x7c2c98
push str.WARNING:_missing_tcMod_bulge_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x10]
add esp, 4
mov dword [esi], 0xe
jmp 0x49ebf8
push str.transform
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a06fe
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a05cf
push 0x7c2c98
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a0607
push 0x7c2c98
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x1c]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a063f
push 0x7c2c98
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a0677
push 0x7c2c98
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x24]
lea edx, [esp + 0x14]
push 0
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a06af
push 0x7c2c98
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x28]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a06e7
push 0x7c2c98
push str.WARNING:_missing_transform_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x2c]
add esp, 4
mov dword [esi], 1
jmp 0x49ebf8
push str.rotate
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a07ee
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a0743
push 0x7c2c98
push str.WARNING:_missing_tcMod_rotate_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.fromEntity
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x4a075e
mov dword [esi + 0x48], 0x4996b438
jmp 0x4a076a
push edi
call fcn.0051738c
fstp dword [esi + 0x48]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a0789
mov dword [esi + 0x4c], 0
jmp 0x4a07b0
push str.fromEntity
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x4a07a4
mov dword [esi + 0x4c], 0x4996b438
jmp 0x4a07b0
push edi
call fcn.0051738c
fstp dword [esi + 0x4c]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a07d7
mov dword [esi + 0x50], 0x3f800000
mov dword [esi], 6
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x50]
add esp, 4
mov dword [esi], 6
jmp 0x49ebf8
push str.offset
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0a28
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a0833
push 0x7c2c98
push str.WARNING:_missing_offset_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.fromEntity
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x4a084e
mov dword [esi + 0x40], 0x4996b438
jmp 0x4a085a
push edi
call fcn.0051738c
fstp dword [esi + 0x40]
add esp, 4
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
jne 0x4a088a
push 0x7c2c98
push str.WARNING:_missing_offset_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.fromEntity
push edi
call fcn.00518070
add esp, 8
test eax, eax
jne 0x4a08a5
mov dword [esi + 0x44], 0x4996b438
jmp 0x4a08b1
push edi
call fcn.0051738c
fstp dword [esi + 0x44]
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a0967
push edi
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a0918
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
fadd qword [0x531478]
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fsubr dword [esi + 0x40]
jmp 0x4a0964
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a0967
push edi
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
fadd qword [0x531478]
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fadd dword [esi + 0x40]
fstp dword [esi + 0x40]
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x4a0a1d
push edi
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
push edi
fnstsw ax
test ah, 5
jp 0x4a09d4
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esi], 9
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fsubr dword [esi + 0x44]
fstp dword [esi + 0x44]
jmp 0x49ebf8
call fcn.0051738c
fcomp qword [0x531bb8]
add esp, 4
fnstsw ax
and eax, 0x4100
jne 0x4a0a1d
push edi
call fcn.0051738c
fmul qword [0x531a90]
add esp, 4
call fcn.00516e2c
mov edi, eax
call fcn.0051828b
cdq
idiv edi
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [0x531428]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
mov dword [esi], 9
jmp 0x49ebf8
push str.entityTranslate
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0a45
mov dword [esi], 7
jmp 0x49ebf8
push str.parallax
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0ad4
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a0a85
push 0x7c2c98
push str.WARNING:_missing_rate_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x38]
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a0abd
push 0x7c2c98
push str.WARNING:_missing_rate_parms_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fstp dword [esi + 0x3c]
add esp, 4
mov dword [esi], 0xa
jmp 0x49ebf8
push str.macro
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0b7d
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x4a0b18
push 0x7c2c98
push str.WARNING:_missing_scale_parms_in_shader__s_for_macro_definition_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fdivr qword [0x531478]
lea edx, [esp + 0x14]
push 0
push edx
fstp dword [esi + 0x30]
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
test cl, cl
jne 0x4a0b56
push 0x7c2c98
push str.WARNING:_missing_scale_parms_in_shader__s_for_macro_definition_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push eax
call fcn.0051738c
fdivr qword [0x531478]
mov dword [esi], 0xb
add esp, 4
fstp dword [esi + 0x34]
mov dword [0x7c2d58], 1
jmp 0x49ebf8
push 0x7c2c98
push edi
push str.WARNING:_unknown_tcMod__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
jmp 0x49ebf8
push str.depthwrite
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0c74
push str.depthmask
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0c74
push str.noDepthTest
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0be3
mov dword [esp + 0x34], 0x400
jmp 0x49ebf8
push str.nextBundle
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a1099
mov eax, dword [0x13d3658]
test eax, eax
je 0x4a107c
push 0
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a0c35
push 0x5483b8
push eax
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0c35
mov dword [ebp + 0x27c], 0x104
jmp 0x4a0c3f
mov dword [ebp + 0x27c], 0x2100
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
inc eax
cmp eax, 2
jle 0x49ebf8
push 0x7c2c98
push str.WARNING:_too_many_nextBundle_commands_in_shader__s_n
push 3
call dword [0x12ff6a0]
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 0x49ebf8
push 0
push ebx
call fcn.00462880
mov esi, eax
add esp, 8
cmp byte [esi], 0
jne 0x4a0cb1
push 0x7c2c98
push str.WARNING:_missing_texgen_parm_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
push str.environment
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0ce5
mov eax, dword [esp + 0x14]
mov dword [0x7c2d58], edi
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 4
jmp 0x49ebf8
push str.environmentmodel
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0d19
mov eax, dword [esp + 0x14]
mov dword [0x7c2d58], edi
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 6
jmp 0x49ebf8
push str.sunreflection
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0d4d
mov eax, dword [esp + 0x14]
mov dword [0x7c2d58], edi
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov dword [ebp + ecx*4 + 0x110], 7
jmp 0x49ebf8
push str.lightmap
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0d7b
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 2
jmp 0x49ebf8
push str.texture
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0e7b
push str.base
push esi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4a0e7b
push str.vector
push esi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0e61
xor esi, esi
lea edi, [ebp + 0x114]
push 0
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a0dec
push eax
call fcn.0051738c
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x4a0dc5
jmp 0x4a0e01
push 0x7c2c98
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
xor esi, esi
lea edi, [ebp + 0x120]
push 0
push ebx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a0e30
push eax
call fcn.0051738c
fstp dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 3
jl 0x4a0e09
jmp 0x4a0e45
push 0x7c2c98
push str.WARNING:_missing_vector_element_in_shader__s_n
push 3
call dword [0x12ff6a0]
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 0x49ebf8
push 0x7c2c98
push str.WARNING:_unknown_texgen_parm_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x49ebf8
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
sub edx, eax
mov dword [ebp + edx*4 + 0x110], 3
jmp 0x49ebf8
mov ecx, dword [0x7c2e38]
push str.animMapOnce
or ecx, edi
push esi
mov dword [0x7c2e38], ecx
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4a0ed1
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.00462d60
mov esi, eax
push 0
neg esi
sbb esi, esi
push ebx
inc esi
call fcn.00462880
mov cl, byte [eax]
add esp, 0x10
test cl, cl
je 0x4a10bc
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.0051738c
fstp dword [ebx + 0x108]
add esp, 4
mov dword [ebx + 0x10c], 0
test esi, esi
je 0x4a0f50
mov eax, dword [esp + 0x458]
push 0
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x4a10de
push eax
call fcn.0051738c
fstp dword [ebx + 0x10c]
add esp, 4
mov ecx, dword [esp + 0x458]
push 0
push ecx
call fcn.00462880
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x49ebf1
mov esi, dword [ebx + 0x104]
cmp esi, 0x40
jge 0x4a0fd0
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.00487ca0
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 0x4a1100
inc dword [ebx + 0x104]
jmp 0x4a0f50
push 0x7c2c98
push str.WARNING:_mapanim___too_many_animated_textures_specified_for_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x4a0f50
push str.WARNING:_no_matching__found_n
push 3
call dword [0x12ff6a0]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push str.WARNING:_missing_parameter_for_map_keyword_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push str.WARNING:_missing_parameter_for_clampmap_keyword_in_shader__s_n
jmp 0x49ed40
push 0x7c2c98
push str.WARNING:_missing_parameter_for_alphaFunc_keyword_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push str.WARNING:_missing_parameter_for_depthfunc_keyword_in_shader__s_n
push 3
call dword [0x12ff6a0]
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 [0x12ff6a4]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push esi
push str.WARNING:_unknown_parameter__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push str.WARNING:_missing_parameter_for_animMap_keyword_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push str.WARNING:_missing_phase_for_animMapPhase_keyword_in_shader__s_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
push 0x7c2c98
push edi
push str.WARNING:_R_FindImageFile_could_not_find__s_in_shader__s_n
push 3
call dword [0x12ff6a0]
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 0x4a1169
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a115d
mov eax, dword [ebp + 0x134]
test eax, eax
jne 0x4a115d
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4a1151
cmp edx, 2
je 0x4a1151
cmp edx, 5
jne 0x4a1161
mov dword [ebp + 0x294], 2
jmp 0x4a116d
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x294], edi
jmp 0x4a116d
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp edx, 2
jne 0x4a1186
cmp edi, 0x10
jne 0x4a1186
xor edx, edx
xor edi, edi
mov esi, 0x100
jmp 0x4a118a
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x400
jne 0x4a1198
xor esi, esi
mov eax, dword [ebp + 0x2ac]
test eax, eax
jne 0x4a11c1
mov eax, dword [ebp + 0x294]
cmp eax, 1
je 0x4a11b7
cmp eax, 0xa
je 0x4a11b7
cmp eax, 0xb
jne 0x4a11c1
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