Function at 0x474820
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2cc
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, dword [esp + 0x2d4]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x2dc]
push esi
push edi
push 0x50
push 0
push eax
call fcn.004f0640
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax + 0x10], 2
je 0x47487c
mov eax, dword [ebp + 0x58]
mov eax, dword [ebx + eax*4 + 0x63bd0]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x5c]
mov eax, dword [ebx + eax*4 + 0x64104]
mov dword [esp + 0x24], eax
lea edi, [ebx + 0x10]
push 0x20
push edi
call fcn.0047ee70
push 0x20
push edi
mov esi, eax
call fcn.0047e9e0
push esi
lea esi, [ebx + 0x10]
mov edi, eax
push esi
call fcn.0047feb0
push edi
push esi
mov dword [esp + 0x90], eax
call fcn.0047feb0
mov dword [esp + 0xa0], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x38], edx
push 0x20
push dword [ebp + 0x1c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x3c], eax
call fcn.004767e0
xor ecx, ecx
mov dword [esp + 0x94], eax
add esp, 0x28
mov byte [esp + 0x13], dl
lea eax, [edx + 4]
mov dword [esp + 0x88], ecx
cmp dword [ebp + 0x3c], ecx
jbe 0x474ded
xor edi, edi
mov dword [esp + 0x84], edi
push ecx
push ebp
call fcn.0040afc0
mov esi, dword [ebp + 0x38]
add esp, 8
mov edx, dword [edi + esi + 0x10]
lea ecx, [edi + esi]
cmp edx, 0x10
ja case.0x47491f.1
jmp dword [edx*4 + 0x475c10]
push eax
push ecx
push 4
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.004765f0
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
je 0x475963
jmp 0x474d9b
push 2
push ecx
push 3
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.004765f0
add esp, 0x14
mov dword [esp + 0x78], eax
test eax, eax
je 0x475963
mov ecx, dword [ebp + 0x38]
movups xmm0, xmmword [ecx + edi]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
je 0x474d97
cmp dword [ebp + 0x20], 0xa
je 0x474d97
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x20000000
mov dword [ebx + 0x2c], eax
jmp 0x474d97
push 0x80
push 0
push ecx
push ebx
call fcn.00476aa0
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x475963
jmp 0x474d97
cmp dword [ebp + 0x20], 5
je 0x474d97
cmp dword [ebp + 0x18], 5
je 0x4749e1
push eax
push 0
push ecx
push ebx
call fcn.00476aa0
add esp, 0x10
jmp 0x4749e5
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x475963
mov ecx, dword [ebp + 0x38]
movups xmm0, xmmword [edi + ecx]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
jne 0x474d97
movups xmm0, xmmword [edi + ecx]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407d30
mov esi, dword [esp + 0x20]
add esp, 0xc
fstp qword [esp + 0x98]
movsd xmm0, qword [esp + 0x98]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
mov eax, dword [esp + 0x18]
jp 0x474d9f
mov byte [esp + 0x13], 1
jmp 0x474d9f
push eax
push 0
push ecx
push ebx
call fcn.00476aa0
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x475963
jmp 0x474d97
push 0x80
push 0
push ecx
push ebx
call fcn.00476aa0
add esp, 0x10
mov dword [esp + 0x68], eax
test eax, eax
je 0x475963
jmp 0x474d97
push 0x80
push ecx
push 3
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.004765f0
add esp, 0x14
mov dword [esp + 0x7c], eax
test eax, eax
je 0x475963
jmp 0x474d97
push 0x80
push ecx
push 3
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.004765f0
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
test esi, esi
je 0x475963
mov eax, dword [esp + 0x18]
jmp 0x474d9f
push 2
push 0
push ecx
push ebx
call fcn.00476aa0
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x475963
jmp 0x474d97
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
mov eax, dword [ecx + eax]
mov dword [esp + 0x20], eax
jmp 0x474d97
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
mov eax, dword [ecx + eax]
jmp 0x474d93
mov al, byte [ebp + 0x54]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x58]
mov byte [esp + 0x98], al
push esi
call fcn.0047ebb0
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.00476aa0
add esp, 0x10
push eax
push 0
push esi
call fcn.0047d060
mov edx, dword [ebx + 0x63fec]
add esp, 0x14
mov ecx, dword [ebx + 0x640fc]
mov edi, dword [ebp + 0x58]
shr ecx, 2
shr edx, 2
add ecx, edx
mov dword [esp + 0x8c], eax
cmp dword [ebx + 0x24], 6
mov esi, ecx
mov dword [esp + 0x98], ecx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x18
mov dword [esp + 0x74], eax
imul eax, ecx
mov ecx, dword [ebx + 0x64208]
add ecx, eax
mov eax, dword [esp + 0x74]
cmp dword [ecx + 4], 0
jne 0x474be0
mov edx, dword [ecx + 8]
cmp edx, edi
ja 0x474be0
mov eax, dword [ecx + 0xc]
cmp eax, edi
jae 0x474be5
mov eax, dword [esp + 0x74]
inc esi
add ecx, eax
jmp 0x474bc8
push dword [esp + 0x90]
sub esi, dword [esp + 0x9c]
push dword [esp + 0x90]
push esi
push 0
push eax
push edx
push 0
push ebx
call fcn.0046da80
mov edi, dword [esp + 0xa4]
add esp, 0x20
mov dword [esp + 0x20], eax
jmp 0x474d97
push ebp
call fcn.0040ad00
add esp, 4
test al, al
je 0x474d97
mov al, byte [ebp + 0x55]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x5c]
mov byte [esp + 0x9c], al
push esi
call fcn.0047ebb0
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.00476aa0
add esp, 0x10
push eax
push 0
push esi
call fcn.0047d060
mov ecx, dword [ebx + 0x63fec]
add esp, 0x14
mov edi, dword [ebp + 0x5c]
shr ecx, 2
cmp dword [ebx + 0x24], 6
mov esi, ecx
mov dword [esp + 0x98], eax
sbb eax, eax
mov dword [esp + 0x8c], ecx
and eax, 0xfffffff8
add eax, 0x18
mov dword [esp + 0x74], eax
imul eax, ecx
mov ecx, dword [ebx + 0x64208]
add ecx, eax
mov eax, dword [esp + 0x74]
cmp dword [ecx + 4], 0
jne 0x474cb9
mov edx, dword [ecx + 8]
cmp edx, edi
ja 0x474cb9
mov eax, dword [ecx + 0xc]
cmp eax, edi
jae 0x474cbe
mov eax, dword [esp + 0x74]
inc esi
add ecx, eax
jmp 0x474ca1
push dword [esp + 0x94]
sub esi, dword [esp + 0x90]
push dword [esp + 0x9c]
push esi
push 0
push eax
push edx
push 3
push ebx
call fcn.0046da80
mov edi, dword [esp + 0xa4]
add esp, 0x20
jmp 0x474d93
push 1
push 0
push 0x24
push 0
push ecx
push ebx
call fcn.00476aa0
add esp, 0x10
push eax
push ebx
call fcn.0046dd50
mov esi, eax
lea eax, [ebx + 0x10]
push ebp
push eax
call fcn.0047f7e0
add esp, 0x18
test esi, esi
je 0x474d30
test eax, eax
je 0x474d30
push eax
push esi
push ebx
call fcn.0046c9a0
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x474d97
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x474d97
push ebp
call fcn.0040ad00
add esp, 4
test al, al
je 0x474d97
mov ecx, dword [ebp + 0x38]
mov al, byte [ebp + 0x45]
add ecx, edi
push 1
push 1
push 0x24
push 0
push ecx
push ebx
mov byte [esp + 0x34], al
call fcn.00476aa0
add esp, 0x10
push eax
push ebx
call fcn.0046dd50
push dword [esp + 0x2c]
mov esi, eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047f6a0
add esp, 0x18
test esi, esi
je 0x474d91
test eax, eax
je 0x474d91
push eax
push esi
push ebx
call fcn.0046c9a0
add esp, 0xc
jmp 0x474d93
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
add edi, 0x14
inc ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ecx
cmp ecx, dword [ebp + 0x3c]
jb 0x474902
mov ecx, dword [esp + 0x7c]
mov edx, eax
mov edi, dword [esp + 0x78]
mov dword [esp + 0x7c], ecx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], cl
cmp eax, 4
jae 0x474e0b
mov eax, 4
mov ecx, eax
lea edi, [esp + 0x34]
mov eax, dword [esp + 0x80]
lea edi, [edi + edx*4]
sub ecx, edx
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78]
mov edx, 3
cmp edi, edx
jae 0x474e28
mov eax, dword [esp + 0x70]
mov ecx, edx
sub ecx, edi
lea edi, [esp + edi*4 + 0x44]
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x30]
test esi, esi
mov eax, dword [ebp + 0x20]
cmove esi, dword [esp + 0x80]
mov dword [esp + 0x30], esi
cmp eax, 0xc
ja case.0x474e46.6
jmp dword [eax*4 + 0x475c54]
mov eax, dword [esp + 0x88]
lea eax, [eax + eax*4]
push dword [esi + eax*4 + 0x10]
push str.texture_source:__d_n
push 2
call fcn.004f34b4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
cmp dword [esp + 0x68], 0
je 0x474f68
cmp dword [ebx + 0x1c], 8
jb 0x474f68
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpBias
push eax
call fcn.00482ab0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474eaa
xor esi, esi
jmp 0x47595f
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x80000000
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x10]
push 0xff
push eax
call fcn.0047ebb0
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24c], eax
lea eax, [esp + 0x220]
push 0xd
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x258], esi
push edi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleBias
push eax
call fcn.00482ab0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474f8a
xor esi, esi
jmp 0x47595f
lea eax, [ebx + 0x10]
push 0x3d
push eax
call fcn.0047ebb0
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1b8], eax
lea eax, [esp + 0x190]
push 0xc
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x1c4], esi
push edi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
cmp dword [esp + 0x68], 0
lea eax, [ebx + 0x10]
je 0x4750fb
push 6
push str.dx.op.sampleCmp
push eax
call fcn.00482ab0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x475058
xor esi, esi
jmp 0x47595f
lea eax, [ebx + 0x10]
push 0x40
push eax
call fcn.0047ebb0
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1d4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1dc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1e4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x1c0]
push 0xc
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x1f4], esi
push edi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
cmp dword [ebx + 0x14], 0
jne 0x4751bc
push dword [esp + 0x6c]
push str.dx.op.sample
push eax
call fcn.00482ab0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x475124
xor esi, esi
jmp 0x47595f
lea eax, [ebx + 0x10]
push 0x3c
push eax
call fcn.0047ebb0
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x104], eax
lea eax, [esp + 0xe0]
push 0xb
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x110], esi
push edi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
push ecx
mov dword [esp], 0
push eax
call fcn.0047e910
add esp, 8
mov dword [esp + 0x2c], eax
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleLevel
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4753ab
jmp 0x47595f
cmp byte [esp + 0x13], 0
je 0x4752ca
cmp dword [esp + 0x68], 0
je 0x4751d1
cmp dword [ebx + 0x1c], 7
jae 0x4752ca
push 6
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpLevelZero
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47595f
lea eax, [ebx + 0x10]
push 0x41
push eax
call fcn.0047ebb0
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x134], eax
lea eax, [esp + 0x10c]
push 0xb
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
cmp dword [esp + 0x68], 0
je 0x4751d1
mov eax, dword [ebx + 0x2c]
push dword [esp + 0x6c]
or dword [ebx + 0x28], 0x20000000
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpLevel
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47595f
lea eax, [ebx + 0x10]
push 0xe0
push eax
call fcn.0047ebb0
mov dword [esp + 0x1f0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1f4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1f8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1fc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x21c], eax
lea eax, [esp + 0x1f0]
push 0xc
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
lea eax, [ebx + 0x10]
push 0x3e
push eax
call fcn.0047ebb0
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x160], eax
lea eax, [esp + 0x138]
push 0xb
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
cmp edi, edx
jae 0x47546d
mov ecx, edx
lea esi, [esp + 0x50]
sub ecx, edi
lea edi, [esi + edi*4]
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
cmp edi, edx
jae 0x47548c
sub edx, edi
lea esi, [esp + 0x5c]
shl edx, 2
lea edi, [esi + edi*4]
shr edx, 2
mov ecx, edx
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x68], 0
je 0x4755b8
cmp dword [ebx + 0x1c], 8
jb 0x4755b8
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpGrad
push eax
call fcn.00482ab0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4754c3
xor esi, esi
jmp 0x47595f
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x80000000
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x10]
push 0xfe
push eax
call fcn.0047ebb0
mov dword [esp + 0x298], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x29c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2a0], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2a4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2a8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2ac], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2b0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2b4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2b8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2bc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2cc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2d0], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x2d4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2d8], eax
lea eax, [esp + 0x298]
push 0x12
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x2e4], esi
push edi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleGrad
push eax
call fcn.00482ab0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4755da
xor esi, esi
jmp 0x47595f
lea eax, [ebx + 0x10]
push 0x3f
push eax
call fcn.0047ebb0
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x260], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x268], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x26c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x27c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x280], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x284], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x288], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x290], eax
lea eax, [esp + 0x254]
push 0x11
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x29c], esi
push edi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
cmp dword [ebp + 0x18], 5
jne 0x475728
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.bufferLoad
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47595f
lea eax, [ebx + 0x10]
push 0x44
push eax
call fcn.0047ebb0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xac]
push 4
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
mov edx, dword [esp + 0x18]
cmp edx, 4
jae 0x47574b
mov eax, dword [esp + 0x70]
lea edi, [esp + 0x34]
mov ecx, 4
lea edi, [edi + edx*4]
sub ecx, edx
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.textureLoad
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47595f
cmp dword [esp + 0x2c], 0
jne 0x47578d
lea eax, [ebx + 0x10]
push 0x20
push eax
call fcn.0047ee70
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047feb0
add esp, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x10]
push 0x42
push eax
call fcn.0047ebb0
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xbc]
push 9
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47595f
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047ebb0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa0]
push 3
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
jmp 0x47595d
mov edi, dword [ebp + 0x48]
mov ecx, str.dx.op.textureGather
push dword [esp + 0x6c]
and edi, edx
mov eax, str.dx.op.textureGatherCmp
cmp dword [esp + 0x6c], 0
cmove eax, ecx
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00482ab0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4758ab
xor esi, esi
jmp 0x47595f
mov esi, dword [esp + 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 0x49
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047ebb0
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x184], eax
lea eax, [ebx + 0x10]
push edi
push eax
call fcn.0047ebb0
mov dword [esp + 0x190], eax
xor eax, eax
test esi, esi
mov dword [esp + 0x194], esi
setne al
add eax, 0xa
push eax
lea eax, [esp + 0x170]
push eax
push dword [esp + 0x34]
lea eax, [ebx + 0x10]
push eax
call fcn.0047d180
add esp, 0x20
mov esi, eax
test esi, esi
jne 0x47596a
xor al, al
jmp 0x475ad0
xor edi, edi
cmp byte [ebp + 0x34], 0
jbe 0x475ace
lea ecx, [ebx + 0x10]
nop dword [eax]
push edi
push esi
push ecx
call fcn.0047d380
push eax
mov dword [esp + 0x2c], eax
call fcn.00480180
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x4759a9
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x4759b9
cmp edx, dword [ebx + 0x63b9c]
jne 0x4759c3
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x4759d8
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x8000
mov dword [ebx + 0x2c], eax
push dword [esp + 0x1c]
lea eax, [ebp + 0x24]
push edi
push eax
push ebx
call fcn.00477c00
movzx eax, byte [ebp + 0x34]
lea ecx, [ebx + 0x10]
inc edi
add esp, 0x10
cmp edi, eax
jb 0x475980
jmp 0x475ace
push 1
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00475c90
mov esi, eax
push esi
call fcn.00480180
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x475a27
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475a37
cmp edx, dword [ebx + 0x63b9c]
jne 0x475a41
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475a56
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x8000
mov dword [ebx + 0x2c], eax
push esi
push 0
lea eax, [ebp + 0x24]
push eax
push ebx
call fcn.00477c00
push 0
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00475c90
mov esi, eax
push esi
call fcn.00480180
mov edx, eax
add esp, 0x20
cmp edx, dword [ebx + 0x63bb0]
jne 0x475a8f
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475a9f
cmp edx, dword [ebx + 0x63b9c]
jne 0x475aa9
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475abe
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x8000
mov dword [ebx + 0x2c], eax
push esi
push 1
lea eax, [ebp + 0x24]
push eax
push ebx
call fcn.00477c00
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eeee5
add esp, 0x2cc
ret
push 0x20
push 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.0047eca0
push 0
lea ecx, [ebx + 0x10]
mov edi, eax
push str.dx.op.getDimensions
push ecx
call fcn.00482ab0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x475b4e
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047ebb0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edi
push 3
lea eax, [esp + 0xa4]
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.0047d180
add esp, 0x18
push 3
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047d380
mov esi, eax
push esi
call fcn.00480180
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x475b79
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475b89
cmp edx, dword [ebx + 0x63b9c]
jne 0x475b93
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475ba8
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x8000
mov dword [ebx + 0x2c], eax
push esi
push 0
jmp 0x475ac1
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.00482ab0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x475b4e
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047ebb0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa8], eax
jmp 0x475b37
push eax
push str.texture_op:__d_n
push 2
call fcn.004f34b4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
nop
dec ecx
inc edi
add byte [ebp + 0x4e], cl
inc edi
add byte [eax + 0x4900474a], al
dec ecx
inc edi
add byte [eax - 0x3dffb8b7], ah
dec ecx
inc edi
add byte [edx + 0x4a], ah
inc edi
add dh, dh
dec edx
inc edi
add byte [ebp + 0x4e], cl
inc edi
add byte [edx - 0x36ffb8b6], ah
dec edx
inc edi
add byte [0x3000474b], dl
dec ebx
inc edi
add byte [edi + 0x4b], al
inc edi
add byte [edx], bl
dec esp
inc edi
add bh, ch
dec esp
inc edi
add byte [eax], bh
dec ebp
inc edi
add byte [0x73004750], ch
dec esi
inc edi
add ch, dh
push ecx
inc edi
add byte [edi + 0x54], al
inc edi
add byte [esi + edx*2 + 0x56b40047], dh
inc edi
add dh, dh
pop ebx
inc edi
add dh, dh
pop ebx
inc edi
add byte [ebx], dl
pop eax
inc edi
add bl, bh
pop ecx
inc edi
add byte [eax + ebx*2 + 0x47], dh
add cl, ch
pop edx
inc edi
add byte [eax - 0x33ffb8a5], dh
int3