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

Disassembly:
sub esp, 0x2cc
mov eax, dword [0x97efc0]
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.004f03f0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax + 0x10], 2
je 0x4746ec
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.0047ece0
push 0x20
push edi
mov esi, eax
call fcn.0047e850
push esi
lea esi, [ebx + 0x10]
mov edi, eax
push esi
call fcn.0047fd20
push edi
push esi
mov dword [esp + 0x90], eax
call fcn.0047fd20
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.00476650
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 0x474c5d
xor edi, edi
mov dword [esp + 0x84], edi
push ecx
push ebp
call fcn.0040af20
mov esi, dword [ebp + 0x38]
add esp, 8
mov edx, dword [edi + esi + 0x10]
lea ecx, [edi + esi]
cmp edx, 0x10
ja case.0x47478f.1
jmp dword [edx*4 + 0x475a80]
push eax
push ecx
push 4
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.00476460
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
je 0x4757d3
jmp 0x474c0b
push 2
push ecx
push 3
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.00476460
add esp, 0x14
mov dword [esp + 0x78], eax
test eax, eax
je 0x4757d3
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 0x474c07
cmp dword [ebp + 0x20], 0xa
je 0x474c07
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x20000000
mov dword [ebx + 0x2c], eax
jmp 0x474c07
push 0x80
push 0
push ecx
push ebx
call fcn.00476910
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x4757d3
jmp 0x474c07
cmp dword [ebp + 0x20], 5
je 0x474c07
cmp dword [ebp + 0x18], 5
je 0x474851
push eax
push 0
push ecx
push ebx
call fcn.00476910
add esp, 0x10
jmp 0x474855
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4757d3
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 0x474c07
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.00407ca0
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 0x474c0f
mov byte [esp + 0x13], 1
jmp 0x474c0f
push eax
push 0
push ecx
push ebx
call fcn.00476910
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x4757d3
jmp 0x474c07
push 0x80
push 0
push ecx
push ebx
call fcn.00476910
add esp, 0x10
mov dword [esp + 0x68], eax
test eax, eax
je 0x4757d3
jmp 0x474c07
push 0x80
push ecx
push 3
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.00476460
add esp, 0x14
mov dword [esp + 0x7c], eax
test eax, eax
je 0x4757d3
jmp 0x474c07
push 0x80
push ecx
push 3
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.00476460
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
test esi, esi
je 0x4757d3
mov eax, dword [esp + 0x18]
jmp 0x474c0f
push 2
push 0
push ecx
push ebx
call fcn.00476910
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4757d3
jmp 0x474c07
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 0x474c07
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
mov eax, dword [ecx + eax]
jmp 0x474c03
mov al, byte [ebp + 0x54]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x58]
mov byte [esp + 0x98], al
push esi
call fcn.0047ea20
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.00476910
add esp, 0x10
push eax
push 0
push esi
call fcn.0047ced0
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 0x474a50
mov edx, dword [ecx + 8]
cmp edx, edi
ja 0x474a50
mov eax, dword [ecx + 0xc]
cmp eax, edi
jae 0x474a55
mov eax, dword [esp + 0x74]
inc esi
add ecx, eax
jmp 0x474a38
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.0046d8f0
mov edi, dword [esp + 0xa4]
add esp, 0x20
mov dword [esp + 0x20], eax
jmp 0x474c07
push ebp
call fcn.0040ac70
add esp, 4
test al, al
je 0x474c07
mov al, byte [ebp + 0x55]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x5c]
mov byte [esp + 0x9c], al
push esi
call fcn.0047ea20
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.00476910
add esp, 0x10
push eax
push 0
push esi
call fcn.0047ced0
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 0x474b29
mov edx, dword [ecx + 8]
cmp edx, edi
ja 0x474b29
mov eax, dword [ecx + 0xc]
cmp eax, edi
jae 0x474b2e
mov eax, dword [esp + 0x74]
inc esi
add ecx, eax
jmp 0x474b11
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.0046d8f0
mov edi, dword [esp + 0xa4]
add esp, 0x20
jmp 0x474c03
push 1
push 0
push 0x24
push 0
push ecx
push ebx
call fcn.00476910
add esp, 0x10
push eax
push ebx
call fcn.0046dbc0
mov esi, eax
lea eax, [ebx + 0x10]
push ebp
push eax
call fcn.0047f650
add esp, 0x18
test esi, esi
je 0x474ba0
test eax, eax
je 0x474ba0
push eax
push esi
push ebx
call fcn.0046c810
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x474c07
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x474c07
push ebp
call fcn.0040ac70
add esp, 4
test al, al
je 0x474c07
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.00476910
add esp, 0x10
push eax
push ebx
call fcn.0046dbc0
push dword [esp + 0x2c]
mov esi, eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047f510
add esp, 0x18
test esi, esi
je 0x474c01
test eax, eax
je 0x474c01
push eax
push esi
push ebx
call fcn.0046c810
add esp, 0xc
jmp 0x474c03
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 0x474772
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 0x474c7b
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 0x474c98
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.0x474cb6.6
jmp dword [eax*4 + 0x475ac4]
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.004f3264
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
cmp dword [esp + 0x68], 0
je 0x474dd8
cmp dword [ebx + 0x1c], 8
jb 0x474dd8
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpBias
push eax
call fcn.00482920
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474d1a
xor esi, esi
jmp 0x4757cf
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.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleBias
push eax
call fcn.00482920
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474dfa
xor esi, esi
jmp 0x4757cf
lea eax, [ebx + 0x10]
push 0x3d
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
cmp dword [esp + 0x68], 0
lea eax, [ebx + 0x10]
je 0x474f6b
push 6
push str.dx.op.sampleCmp
push eax
call fcn.00482920
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474ec8
xor esi, esi
jmp 0x4757cf
lea eax, [ebx + 0x10]
push 0x40
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
cmp dword [ebx + 0x14], 0
jne 0x47502c
push dword [esp + 0x6c]
push str.dx.op.sample
push eax
call fcn.00482920
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474f94
xor esi, esi
jmp 0x4757cf
lea eax, [ebx + 0x10]
push 0x3c
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
push ecx
mov dword [esp], 0
push eax
call fcn.0047e780
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.00482920
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x47521b
jmp 0x4757cf
cmp byte [esp + 0x13], 0
je 0x47513a
cmp dword [esp + 0x68], 0
je 0x475041
cmp dword [ebx + 0x1c], 7
jae 0x47513a
push 6
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpLevelZero
push eax
call fcn.00482920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4757cf
lea eax, [ebx + 0x10]
push 0x41
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
cmp dword [esp + 0x68], 0
je 0x475041
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.00482920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4757cf
lea eax, [ebx + 0x10]
push 0xe0
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
lea eax, [ebx + 0x10]
push 0x3e
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
cmp edi, edx
jae 0x4752dd
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 0x4752fc
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 0x475428
cmp dword [ebx + 0x1c], 8
jb 0x475428
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpGrad
push eax
call fcn.00482920
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x475333
xor esi, esi
jmp 0x4757cf
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.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleGrad
push eax
call fcn.00482920
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x47544a
xor esi, esi
jmp 0x4757cf
lea eax, [ebx + 0x10]
push 0x3f
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
cmp dword [ebp + 0x18], 5
jne 0x475598
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.bufferLoad
push eax
call fcn.00482920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4757cf
lea eax, [ebx + 0x10]
push 0x44
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
mov edx, dword [esp + 0x18]
cmp edx, 4
jae 0x4755bb
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.00482920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4757cf
cmp dword [esp + 0x2c], 0
jne 0x4755fd
lea eax, [ebx + 0x10]
push 0x20
push eax
call fcn.0047ece0
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047fd20
add esp, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x10]
push 0x42
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.00482920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4757cf
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
jmp 0x4757cd
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.00482920
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47571b
xor esi, esi
jmp 0x4757cf
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.0047ea20
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.0047ea20
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.0047cff0
add esp, 0x20
mov esi, eax
test esi, esi
jne 0x4757da
xor al, al
jmp 0x475940
xor edi, edi
cmp byte [ebp + 0x34], 0
jbe 0x47593e
lea ecx, [ebx + 0x10]
nop dword [eax]
push edi
push esi
push ecx
call fcn.0047d1f0
push eax
mov dword [esp + 0x2c], eax
call fcn.0047fff0
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x475819
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475829
cmp edx, dword [ebx + 0x63b9c]
jne 0x475833
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475848
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.00477a70
movzx eax, byte [ebp + 0x34]
lea ecx, [ebx + 0x10]
inc edi
add esp, 0x10
cmp edi, eax
jb 0x4757f0
jmp 0x47593e
push 1
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00475b00
mov esi, eax
push esi
call fcn.0047fff0
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x475897
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x4758a7
cmp edx, dword [ebx + 0x63b9c]
jne 0x4758b1
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x4758c6
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.00477a70
push 0
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00475b00
mov esi, eax
push esi
call fcn.0047fff0
mov edx, eax
add esp, 0x20
cmp edx, dword [ebx + 0x63bb0]
jne 0x4758ff
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x47590f
cmp edx, dword [ebx + 0x63b9c]
jne 0x475919
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x47592e
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.00477a70
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eec95
add esp, 0x2cc
ret
push 0x20
push 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.0047eb10
push 0
lea ecx, [ebx + 0x10]
mov edi, eax
push str.dx.op.getDimensions
push ecx
call fcn.00482920
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4759be
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047ea20
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.0047cff0
add esp, 0x18
push 3
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047d1f0
mov esi, eax
push esi
call fcn.0047fff0
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x4759e9
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x4759f9
cmp edx, dword [ebx + 0x63b9c]
jne 0x475a03
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475a18
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x8000
mov dword [ebx + 0x2c], eax
push esi
push 0
jmp 0x475931
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.00482920
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4759be
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047ea20
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 0x4759a7
push eax
push str.texture_op:__d_n
push 2
call fcn.004f3264
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
nop
xchg esi, eax
inc edi
inc edi
add byte [ebp - 0xfffb8b4], bh
dec eax
inc edi
add byte [ecx + 0x10004747], bh
dec eax
inc edi
add byte [edx], dh
dec eax
inc edi
add dl, dl
dec eax
inc edi
add byte [esi + 0x49], ah
inc edi
add byte [ebp + 0x1200474c], bh
dec ecx
inc edi
add byte [ecx], bh
dec ecx
inc edi
add byte [ebp - 0x5fffb8b7], al
dec ecx
inc edi
add byte [edi - 0x75ffb8b7], dh
dec edx
inc edi
add byte [edi + 0x4b], bl
inc edi
add byte [eax - 0x62ffb8b5], ch
dec esi
inc edi
add bl, ah
dec esp
inc edi
add byte [ebp + 0x50], ah
inc edi
add byte [edi + 0x24004752], dh
push ebp
inc edi
add byte [edx*2 + 0x5a660047], ah
inc edi
add byte [esi + 0x5a], ah
inc edi
add byte [ebx + 0x6b004756], al
pop eax
inc edi
add ah, ah
push esi
inc edi
add byte [ecx + 0x59], bl
inc edi
add byte [eax], ah
pop edx
inc edi
add ah, cl
int3