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

Disassembly:
sub esp, 0x254
mov eax, dword [0x886f80]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [esp + 0x25c]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x264]
push esi
push edi
push 0x50
push 0
push eax
mov dword [esp + 0x94], ebp
call fcn.004e6e40
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax + 0x14], 2
je 0x471883
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.0047ba40
push 0x20
push edi
mov esi, eax
call fcn.0047b5b0
push esi
lea esi, [ebx + 0x10]
mov edi, eax
push esi
call fcn.0047ca50
push edi
push esi
mov dword [esp + 0x90], eax
call fcn.0047ca50
mov dword [esp + 0x9c], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x38], esi
push 0x20
push dword [ebp + 0x1c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x3c], eax
call fcn.00473470
xor ecx, ecx
mov dword [esp + 0x94], eax
add esp, 0x28
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov dword [esp + 0x84], ecx
cmp dword [ebp + 0x3c], ecx
jbe 0x471df4
xor edi, edi
mov dword [esp + 0x80], edi
nop word [eax + eax]
push ecx
push ebp
call fcn.0040a970
mov esi, dword [ebp + 0x38]
add esp, 8
mov edx, dword [esi + edi + 0x10]
lea ecx, [esi + edi]
cmp edx, 0x10
ja case.0x47192d.1
jmp dword [edx*4 + 0x472984]
push eax
push ecx
push 4
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.00473280
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x471da6
xor al, al
jmp 0x472856
push 2
push ecx
push 3
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.00473280
add esp, 0x14
mov dword [esp + 0x74], eax
test eax, eax
je 0x471952
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 0x471da2
cmp dword [ebp + 0x20], 0xa
je 0x471da2
or dword [ebx + 0x28], 0x20000000
jmp 0x471da2
push 0x80
push 0
push ecx
push ebx
call fcn.00473740
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x471952
jmp 0x471da2
cmp dword [ebp + 0x20], 5
je 0x471da2
cmp dword [ebp + 0x18], 5
je 0x4719e3
push eax
push 0
push ecx
push ebx
call fcn.00473740
add esp, 0x10
jmp 0x4719e7
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x471952
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 0x471da2
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.00407860
mov edx, dword [esp + 0x20]
add esp, 0xc
fstp qword [esp + 0x9c]
movsd xmm0, qword [esp + 0x9c]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
mov eax, dword [esp + 0x18]
jp 0x471daa
mov byte [esp + 0x13], 1
jmp 0x471daa
push eax
push 0
push ecx
push ebx
call fcn.00473740
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x471952
jmp 0x471da2
push 0x80
push 0
push ecx
push ebx
call fcn.00473740
add esp, 0x10
mov dword [esp + 0x68], eax
test eax, eax
je 0x471952
jmp 0x471da2
push 0x80
push ecx
push 3
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.00473280
add esp, 0x14
mov dword [esp + 0x78], eax
test eax, eax
je 0x471952
jmp 0x471da2
push 0x80
push ecx
push 3
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.00473280
mov edx, eax
add esp, 0x14
mov dword [esp + 0x14], edx
test edx, edx
je 0x471952
mov eax, dword [esp + 0x18]
jmp 0x471daa
push 2
push 0
push ecx
push ebx
call fcn.00473740
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x471952
jmp 0x471da2
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 0x471da2
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
mov eax, dword [ecx + eax]
jmp 0x471d9e
mov al, byte [ebp + 0x54]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x58]
mov byte [esp + 0x9c], al
push esi
call fcn.0047b780
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.00473740
add esp, 0x10
push eax
push 0
push esi
call fcn.00479c30
mov edi, dword [ebp + 0x58]
add esp, 0x14
mov edx, dword [ebx + 0x63fec]
mov ebp, dword [ebx + 0x640fc]
shr edx, 2
shr ebp, 2
add ebp, edx
mov dword [esp + 0x90], eax
cmp dword [ebx + 0x24], 6
mov edx, ebp
mov dword [esp + 0x9c], ebp
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x18
mov ecx, eax
imul ecx, ebp
mov ebp, eax
nop
mov eax, dword [ebx + 0x64208]
cmp dword [eax + ecx + 4], 0
jne 0x471bdd
mov esi, dword [eax + ecx + 8]
cmp esi, edi
ja 0x471bdd
mov eax, dword [eax + ecx + 0xc]
cmp eax, edi
jae 0x471be2
inc edx
add ecx, ebp
jmp 0x471bc0
push dword [esp + 0x94]
sub edx, dword [esp + 0xa0]
push dword [esp + 0x94]
push edx
push 0
push eax
push esi
push 0
push ebx
call fcn.0046aa80
mov ebp, dword [esp + 0xa8]
add esp, 0x20
mov edi, dword [esp + 0x80]
mov dword [esp + 0x20], eax
jmp 0x471da2
push ebp
call fcn.0040a6c0
add esp, 4
test al, al
je 0x471da2
mov al, byte [ebp + 0x55]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x5c]
mov byte [esp + 0xa0], al
push esi
call fcn.0047b780
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.00473740
add esp, 0x10
push eax
push 0
push esi
call fcn.00479c30
mov edi, dword [ebp + 0x5c]
add esp, 0x14
mov ebp, dword [ebx + 0x63fec]
shr ebp, 2
cmp dword [ebx + 0x24], 6
mov edx, ebp
mov dword [esp + 0x90], eax
sbb eax, eax
mov dword [esp + 0x8c], ebp
and eax, 0xfffffff8
add eax, 0x18
mov ecx, eax
imul ecx, ebp
mov ebp, eax
nop dword [eax]
mov eax, dword [ebx + 0x64208]
cmp dword [eax + ecx + 4], 0
jne 0x471cbd
mov esi, dword [eax + ecx + 8]
cmp esi, edi
ja 0x471cbd
mov eax, dword [eax + ecx + 0xc]
cmp eax, edi
jae 0x471cc2
inc edx
add ecx, ebp
jmp 0x471ca0
push dword [esp + 0x98]
sub edx, dword [esp + 0x90]
push dword [esp + 0x94]
push edx
push 0
push eax
push esi
push 3
push ebx
call fcn.0046aa80
mov ebp, dword [esp + 0xa8]
add esp, 0x20
mov edi, dword [esp + 0x80]
jmp 0x471d9e
push 1
push 0
push 0x24
push 0
push ecx
push ebx
call fcn.00473740
add esp, 0x10
push eax
push ebx
call fcn.0046ad60
mov esi, eax
lea eax, [ebx + 0x10]
push ebp
push eax
call fcn.0047c3b0
add esp, 0x18
test esi, esi
je 0x471d3b
test eax, eax
je 0x471d3b
push eax
push esi
push ebx
call fcn.00469a20
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x471da2
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x471da2
push ebp
call fcn.0040a6c0
add esp, 4
test al, al
je 0x471da2
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.00473740
add esp, 0x10
push eax
push ebx
call fcn.0046ad60
push dword [esp + 0x2c]
mov esi, eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047c270
add esp, 0x18
test esi, esi
je 0x471d9c
test eax, eax
je 0x471d9c
push eax
push esi
push ebx
call fcn.00469a20
add esp, 0xc
jmp 0x471d9e
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add edi, 0x14
inc ecx
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ecx
cmp ecx, dword [ebp + 0x3c]
jb 0x471910
mov edi, dword [esp + 0x74]
mov esi, eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], edx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
mov byte [esp + 0x13], dl
cmp eax, 4
jae 0x471e0f
mov eax, 4
mov ecx, eax
lea edi, [esp + 0x34]
mov eax, dword [esp + 0x7c]
lea edi, [edi + esi*4]
sub ecx, esi
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x74]
mov edx, 3
cmp edi, edx
jae 0x471e2c
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 edi, dword [esp + 0x30]
test edi, edi
mov eax, dword [ebp + 0x20]
cmove edi, dword [esp + 0x7c]
mov dword [esp + 0x30], edi
cmp eax, 0xc
ja case.0x471e47.6
jmp dword [eax*4 + 0x4729c8]
mov eax, dword [esp + 0x84]
lea eax, [eax + eax*4]
push dword [esi + eax*4 + 0x10]
push str.texture_source:__d_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleBias
push eax
call fcn.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x3d
push ecx
call fcn.0047b780
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1bc], eax
lea eax, [esp + 0x194]
push 0xc
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x1c8], edi
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
mov esi, dword [esp + 0x68]
lea eax, [ebx + 0x10]
test esi, esi
je 0x472003
push 6
push str.dx.op.sampleCmp
push eax
call fcn.0047f5c0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x471952
lea ecx, [ebx + 0x10]
push 0x40
push ecx
call fcn.0047b780
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1d4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1dc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1e4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x1c4]
push 0xc
push eax
push dword [esp + 0x2c]
lea eax, [ebx + 0x10]
mov dword [esp + 0x1f8], esi
push eax
mov dword [esp + 0x200], edi
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
cmp dword [ebx + 0x14], 0
jne 0x4720c1
push dword [esp + 0x6c]
push str.dx.op.sample
push eax
call fcn.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x3c
push ecx
call fcn.0047b780
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x108], eax
lea eax, [esp + 0xe4]
push 0xb
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x114], edi
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
push ecx
mov dword [esp], 0
push eax
call fcn.0047b4e0
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.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x3e
push ecx
call fcn.0047b780
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x164], eax
lea eax, [esp + 0x13c]
push 0xb
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
cmp byte [esp + 0x13], 0
je 0x47226d
mov esi, dword [esp + 0x68]
test esi, esi
je 0x4720d6
mov eax, dword [ebx + 4]
cmp dword [eax + 0x18], 0x60007
jge 0x47226d
push 6
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpLevelZero
push eax
call fcn.0047f5c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x41
push ecx
call fcn.0047b780
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x134], eax
lea eax, [esp + 0x110]
push 0xb
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x140], esi
push edi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
mov esi, dword [esp + 0x68]
test esi, esi
je 0x4720d6
push dword [esp + 0x6c]
or dword [ebx + 0x28], 0x20000000
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpLevel
push eax
call fcn.0047f5c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x471952
lea ecx, [ebx + 0x10]
push 0xe0
push ecx
call fcn.0047b780
mov dword [esp + 0x1f4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1f8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1fc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x220], eax
lea eax, [esp + 0x1f4]
push 0xc
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x224], esi
push edi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
cmp esi, edx
jae 0x472368
mov ecx, edx
lea edi, [esp + 0x50]
sub ecx, esi
lea edi, [edi + esi*4]
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
cmp esi, edx
jae 0x472387
sub edx, esi
lea edi, [esp + 0x5c]
shl edx, 2
lea edi, [edi + esi*4]
shr edx, 2
mov ecx, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleGrad
push eax
call fcn.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x3f
push ecx
call fcn.0047b780
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x260], eax
lea eax, [esp + 0x224]
push 0x11
push eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x26c], edi
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
cmp dword [ebp + 0x18], 5
jne 0x4724f4
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.bufferLoad
push eax
call fcn.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x44
push ecx
call fcn.0047b780
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb0]
push 4
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
cmp esi, 4
jae 0x472513
mov eax, dword [esp + 0x70]
lea edi, [esp + 0x34]
mov ecx, 4
lea edi, [edi + esi*4]
sub ecx, esi
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.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
cmp dword [esp + 0x2c], 0
jne 0x472555
lea ecx, [ebx + 0x10]
push 0x20
push ecx
call fcn.0047ba40
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047ca50
add esp, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x10]
push 0x42
push eax
call fcn.0047b780
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xe0], eax
lea eax, [esp + 0xc0]
push 9
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x471952
lea ecx, [ebx + 0x10]
push 0x48
push ecx
call fcn.0047b780
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa4]
push 3
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.00479d50
add esp, 0x18
jmp 0x47271f
mov edi, dword [ebp + 0x48]
mov ecx, str.dx.op.textureGather
mov esi, dword [esp + 0x68]
and edi, edx
push dword [esp + 0x6c]
test esi, esi
mov eax, str.dx.op.textureGatherCmp
cmove eax, ecx
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047f5c0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x471952
xor ecx, ecx
test esi, esi
setne cl
add ecx, 0x49
push ecx
lea ecx, [ebx + 0x10]
push ecx
call fcn.0047b780
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x188], eax
lea eax, [ebx + 0x10]
push edi
push eax
call fcn.0047b780
mov dword [esp + 0x194], eax
xor eax, eax
test esi, esi
mov dword [esp + 0x198], esi
setne al
add eax, 0xa
push eax
lea eax, [esp + 0x174]
push eax
push dword [esp + 0x34]
lea eax, [ebx + 0x10]
push eax
call fcn.00479d50
add esp, 0x20
mov edi, eax
test edi, edi
je 0x471952
xor esi, esi
cmp byte [ebp + 0x34], 0
jbe 0x472854
lea eax, [ebp + 0x24]
lea ecx, [ebx + 0x10]
mov dword [esp + 0x1c], eax
nop
push esi
push edi
push ecx
call fcn.00479f50
mov ebp, eax
push ebp
call fcn.0047cd00
add esp, 0x10
cmp eax, dword [ebx + 0x63bb0]
jne 0x47275f
or dword [ebx + 0x28], 1
cmp eax, dword [ebx + 0x63ba8]
je 0x47276f
cmp eax, dword [ebx + 0x63b9c]
jne 0x472773
or dword [ebx + 0x28], 0x10
cmp eax, dword [ebx + 0x63ba4]
jne 0x472782
or dword [ebx + 0x28], 0x8000
push ebp
push esi
push dword [esp + 0x24]
push ebx
call fcn.004748b0
mov eax, dword [esp + 0x98]
lea ecx, [ebx + 0x10]
inc esi
add esp, 0x10
movzx eax, byte [eax + 0x34]
cmp esi, eax
jb 0x472740
jmp 0x472854
push 1
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00472a00
mov esi, eax
push esi
call fcn.0047cd00
add esp, 0x10
cmp eax, dword [ebx + 0x63bb0]
jne 0x4727cd
or dword [ebx + 0x28], 1
cmp eax, dword [ebx + 0x63ba8]
je 0x4727dd
cmp eax, dword [ebx + 0x63b9c]
jne 0x4727e1
or dword [ebx + 0x28], 0x10
cmp eax, dword [ebx + 0x63ba4]
jne 0x4727f0
or dword [ebx + 0x28], 0x8000
push esi
push 0
lea eax, [ebp + 0x24]
push eax
push ebx
call fcn.004748b0
push 0
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00472a00
mov esi, eax
push esi
call fcn.0047cd00
add esp, 0x20
cmp eax, dword [ebx + 0x63bb0]
jne 0x472821
or dword [ebx + 0x28], 1
cmp eax, dword [ebx + 0x63ba8]
je 0x472831
cmp eax, dword [ebx + 0x63b9c]
jne 0x472835
or dword [ebx + 0x28], 0x10
cmp eax, dword [ebx + 0x63ba4]
jne 0x472844
or dword [ebx + 0x28], 0x8000
push esi
push 1
lea eax, [ebp + 0x24]
push eax
push ebx
call fcn.004748b0
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5b77
add esp, 0x254
ret
push 0x20
push 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.0047b870
push 0
lea ecx, [ebx + 0x10]
mov edi, eax
push str.dx.op.getDimensions
push ecx
call fcn.0047f5c0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4728d4
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047b780
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edi
push 3
lea eax, [esp + 0xa8]
push eax
lea eax, [ebx + 0x10]
push esi
push eax
call fcn.00479d50
add esp, 0x18
push 3
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00479f50
mov esi, eax
push esi
call fcn.0047cd00
add esp, 0x10
cmp eax, dword [ebx + 0x63bb0]
jne 0x4728f7
or dword [ebx + 0x28], 1
cmp eax, dword [ebx + 0x63ba8]
je 0x472907
cmp eax, dword [ebx + 0x63b9c]
jne 0x47290b
or dword [ebx + 0x28], 0x10
cmp eax, dword [ebx + 0x63ba4]
jne 0x47291a
or dword [ebx + 0x28], 0x8000
push esi
push 0
jmp 0x472847
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.0047f5c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4728d4
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047b780
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xac], eax
jmp 0x4728bd
push eax
push str.texture_op:__d_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
nop dword [eax]
xor al, 0x19
inc edi
add byte [esi + 0x1e], cl
inc edi
add byte [edx + 0x5900471a], al
sbb dword [edi], eax
cmpsb byte [esi], byte es:[edi]
sbb dword [edi], eax
les ebx, [ecx]
inc edi
add byte [edx + ebx + 0x47], ah
add al, bh
sbb al, byte [edi]
dec esi
push ds
inc edi
add byte [edx + ebx + 0x1acb0047], ah
inc edi
add byte [edi], dl
sbb eax, dword [edi]
xor bl, byte [ebx]
inc edi
add byte [ecx + 0x1b], cl
inc edi
add byte [esi], bl
sbb al, 0x47
add dl, bh
sbb al, 0x47
add byte [ebx + 0x1d], al
inc edi
add byte [esi], dh
pop ds
inc edi
add byte [esi + ebx + 0x47], dh
add byte [ecx + 0x45004721], dl
and eax, dword [edi]
and byte [edi + eax*2], 0
and byte [edi + eax*2], 0
push 1744848681
sub dword [edi], eax
invalid