Function at 0x474770
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.004f0560
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax + 0x10], 2
je 0x4747cc
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.0047edb0
push 0x20
push edi
mov esi, eax
call fcn.0047e920
push esi
lea esi, [ebx + 0x10]
mov edi, eax
push esi
call fcn.0047fdf0
push edi
push esi
mov dword [esp + 0x90], eax
call fcn.0047fdf0
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.00476730
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 0x474d3d
xor edi, edi
mov dword [esp + 0x84], edi
push ecx
push ebp
call fcn.0040af40
mov esi, dword [ebp + 0x38]
add esp, 8
mov edx, dword [edi + esi + 0x10]
lea ecx, [edi + esi]
cmp edx, 0x10
ja case.0x47486f.1
jmp dword [edx*4 + 0x475b60]
push eax
push ecx
push 4
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.00476540
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
je 0x4758b3
jmp 0x474ceb
push 2
push ecx
push 3
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.00476540
add esp, 0x14
mov dword [esp + 0x78], eax
test eax, eax
je 0x4758b3
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 0x474ce7
cmp dword [ebp + 0x20], 0xa
je 0x474ce7
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x20000000
mov dword [ebx + 0x2c], eax
jmp 0x474ce7
push 0x80
push 0
push ecx
push ebx
call fcn.004769f0
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x4758b3
jmp 0x474ce7
cmp dword [ebp + 0x20], 5
je 0x474ce7
cmp dword [ebp + 0x18], 5
je 0x474931
push eax
push 0
push ecx
push ebx
call fcn.004769f0
add esp, 0x10
jmp 0x474935
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4758b3
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 0x474ce7
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.00407cc0
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 0x474cef
mov byte [esp + 0x13], 1
jmp 0x474cef
push eax
push 0
push ecx
push ebx
call fcn.004769f0
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x4758b3
jmp 0x474ce7
push 0x80
push 0
push ecx
push ebx
call fcn.004769f0
add esp, 0x10
mov dword [esp + 0x68], eax
test eax, eax
je 0x4758b3
jmp 0x474ce7
push 0x80
push ecx
push 3
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.00476540
add esp, 0x14
mov dword [esp + 0x7c], eax
test eax, eax
je 0x4758b3
jmp 0x474ce7
push 0x80
push ecx
push 3
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.00476540
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
test esi, esi
je 0x4758b3
mov eax, dword [esp + 0x18]
jmp 0x474cef
push 2
push 0
push ecx
push ebx
call fcn.004769f0
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4758b3
jmp 0x474ce7
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 0x474ce7
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
mov eax, dword [ecx + eax]
jmp 0x474ce3
mov al, byte [ebp + 0x54]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x58]
mov byte [esp + 0x98], al
push esi
call fcn.0047eaf0
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.004769f0
add esp, 0x10
push eax
push 0
push esi
call fcn.0047cfa0
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 0x474b30
mov edx, dword [ecx + 8]
cmp edx, edi
ja 0x474b30
mov eax, dword [ecx + 0xc]
cmp eax, edi
jae 0x474b35
mov eax, dword [esp + 0x74]
inc esi
add ecx, eax
jmp 0x474b18
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.0046d9d0
mov edi, dword [esp + 0xa4]
add esp, 0x20
mov dword [esp + 0x20], eax
jmp 0x474ce7
push ebp
call fcn.0040ac90
add esp, 4
test al, al
je 0x474ce7
mov al, byte [ebp + 0x55]
lea esi, [ebx + 0x10]
push 0
push dword [ebp + 0x5c]
mov byte [esp + 0x9c], al
push esi
call fcn.0047eaf0
add esp, 8
push eax
mov eax, dword [ebp + 0x38]
push 4
push 0
add eax, edi
push eax
push ebx
call fcn.004769f0
add esp, 0x10
push eax
push 0
push esi
call fcn.0047cfa0
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 0x474c09
mov edx, dword [ecx + 8]
cmp edx, edi
ja 0x474c09
mov eax, dword [ecx + 0xc]
cmp eax, edi
jae 0x474c0e
mov eax, dword [esp + 0x74]
inc esi
add ecx, eax
jmp 0x474bf1
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.0046d9d0
mov edi, dword [esp + 0xa4]
add esp, 0x20
jmp 0x474ce3
push 1
push 0
push 0x24
push 0
push ecx
push ebx
call fcn.004769f0
add esp, 0x10
push eax
push ebx
call fcn.0046dca0
mov esi, eax
lea eax, [ebx + 0x10]
push ebp
push eax
call fcn.0047f720
add esp, 0x18
test esi, esi
je 0x474c80
test eax, eax
je 0x474c80
push eax
push esi
push ebx
call fcn.0046c8f0
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x474ce7
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x474ce7
push ebp
call fcn.0040ac90
add esp, 4
test al, al
je 0x474ce7
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.004769f0
add esp, 0x10
push eax
push ebx
call fcn.0046dca0
push dword [esp + 0x2c]
mov esi, eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047f5e0
add esp, 0x18
test esi, esi
je 0x474ce1
test eax, eax
je 0x474ce1
push eax
push esi
push ebx
call fcn.0046c8f0
add esp, 0xc
jmp 0x474ce3
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 0x474852
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 0x474d5b
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 0x474d78
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.0x474d96.6
jmp dword [eax*4 + 0x475ba4]
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.004f33d4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
cmp dword [esp + 0x68], 0
je 0x474eb8
cmp dword [ebx + 0x1c], 8
jb 0x474eb8
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpBias
push eax
call fcn.004829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474dfa
xor esi, esi
jmp 0x4758af
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.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleBias
push eax
call fcn.004829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474eda
xor esi, esi
jmp 0x4758af
lea eax, [ebx + 0x10]
push 0x3d
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
cmp dword [esp + 0x68], 0
lea eax, [ebx + 0x10]
je 0x47504b
push 6
push str.dx.op.sampleCmp
push eax
call fcn.004829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474fa8
xor esi, esi
jmp 0x4758af
lea eax, [ebx + 0x10]
push 0x40
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
cmp dword [ebx + 0x14], 0
jne 0x47510c
push dword [esp + 0x6c]
push str.dx.op.sample
push eax
call fcn.004829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x475074
xor esi, esi
jmp 0x4758af
lea eax, [ebx + 0x10]
push 0x3c
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
push ecx
mov dword [esp], 0
push eax
call fcn.0047e850
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.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4752fb
jmp 0x4758af
cmp byte [esp + 0x13], 0
je 0x47521a
cmp dword [esp + 0x68], 0
je 0x475121
cmp dword [ebx + 0x1c], 7
jae 0x47521a
push 6
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpLevelZero
push eax
call fcn.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4758af
lea eax, [ebx + 0x10]
push 0x41
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
cmp dword [esp + 0x68], 0
je 0x475121
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.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4758af
lea eax, [ebx + 0x10]
push 0xe0
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
lea eax, [ebx + 0x10]
push 0x3e
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
cmp edi, edx
jae 0x4753bd
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 0x4753dc
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 0x475508
cmp dword [ebx + 0x1c], 8
jb 0x475508
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleCmpGrad
push eax
call fcn.004829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x475413
xor esi, esi
jmp 0x4758af
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.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.sampleGrad
push eax
call fcn.004829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x47552a
xor esi, esi
jmp 0x4758af
lea eax, [ebx + 0x10]
push 0x3f
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
cmp dword [ebp + 0x18], 5
jne 0x475678
push dword [esp + 0x6c]
lea eax, [ebx + 0x10]
push str.dx.op.bufferLoad
push eax
call fcn.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4758af
lea eax, [ebx + 0x10]
push 0x44
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
mov edx, dword [esp + 0x18]
cmp edx, 4
jae 0x47569b
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.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4758af
cmp dword [esp + 0x2c], 0
jne 0x4756dd
lea eax, [ebx + 0x10]
push 0x20
push eax
call fcn.0047edb0
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047fdf0
add esp, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x10]
push 0x42
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4758af
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
jmp 0x4758ad
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.004829f0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4757fb
xor esi, esi
jmp 0x4758af
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.0047eaf0
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.0047eaf0
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.0047d0c0
add esp, 0x20
mov esi, eax
test esi, esi
jne 0x4758ba
xor al, al
jmp 0x475a20
xor edi, edi
cmp byte [ebp + 0x34], 0
jbe 0x475a1e
lea ecx, [ebx + 0x10]
nop dword [eax]
push edi
push esi
push ecx
call fcn.0047d2c0
push eax
mov dword [esp + 0x2c], eax
call fcn.004800c0
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x4758f9
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475909
cmp edx, dword [ebx + 0x63b9c]
jne 0x475913
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475928
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.00477b50
movzx eax, byte [ebp + 0x34]
lea ecx, [ebx + 0x10]
inc edi
add esp, 0x10
cmp edi, eax
jb 0x4758d0
jmp 0x475a1e
push 1
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00475be0
mov esi, eax
push esi
call fcn.004800c0
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x475977
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475987
cmp edx, dword [ebx + 0x63b9c]
jne 0x475991
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x4759a6
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.00477b50
push 0
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00475be0
mov esi, eax
push esi
call fcn.004800c0
mov edx, eax
add esp, 0x20
cmp edx, dword [ebx + 0x63bb0]
jne 0x4759df
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x4759ef
cmp edx, dword [ebx + 0x63b9c]
jne 0x4759f9
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475a0e
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.00477b50
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eee05
add esp, 0x2cc
ret
push 0x20
push 0
lea eax, [ebx + 0x10]
push 0
push eax
call fcn.0047ebe0
push 0
lea ecx, [ebx + 0x10]
mov edi, eax
push str.dx.op.getDimensions
push ecx
call fcn.004829f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x475a9e
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047eaf0
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.0047d0c0
add esp, 0x18
push 3
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0047d2c0
mov esi, eax
push esi
call fcn.004800c0
mov edx, eax
add esp, 0x10
cmp edx, dword [ebx + 0x63bb0]
jne 0x475ac9
mov ecx, dword [ebx + 0x2c]
or dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], ecx
cmp edx, dword [ebx + 0x63ba8]
je 0x475ad9
cmp edx, dword [ebx + 0x63b9c]
jne 0x475ae3
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x10
mov dword [ebx + 0x2c], eax
cmp edx, dword [ebx + 0x63ba4]
jne 0x475af8
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x8000
mov dword [ebx + 0x2c], eax
push esi
push 0
jmp 0x475a11
push 0
lea eax, [ebx + 0x10]
push str.dx.op.getDimensions
push eax
call fcn.004829f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x475a9e
lea eax, [ebx + 0x10]
push 0x48
push eax
call fcn.0047eaf0
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 0x475a87
push eax
push str.texture_op:__d_n
push 2
call fcn.004f33d4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
nop
jbe 0x475baa
inc edi
add byte [ebp - 0x2fffb8b3], bl
dec ecx
inc edi
add byte [ecx - 0xfffb8b8], bl
dec eax
inc edi
add byte [edx], dl
dec ecx
inc edi
add byte [edx + 0x46004749], dh
dec edx
inc edi
add byte [ebp - 0xdffb8b3], bl
dec ecx
inc edi
add byte [ecx], bl
dec edx
inc edi
add byte [ebp + 0x4a], ah
inc edi
add byte [eax - 0x68ffb8b6], al
dec edx
inc edi
add byte [edx + 0x4b], ch
inc edi
add byte [edi], bh
dec esp
inc edi
add byte [eax + 0x7d00474c], cl
dec edi
inc edi
add bl, al
dec ebp
inc edi
add byte [ebp + 0x51], al
inc edi
add byte [edi + 0x4004753], dl
push esi
inc edi
add byte [esi + edx*2], al
inc edi
add byte [esi + 0x5b], al
inc edi
add byte [esi + 0x5b], al
inc edi
add byte [ebx + 0x57], ah
inc edi
add byte [ebx + 0x59], cl
inc edi
add ah, al
push edi
inc edi
add byte [ecx], bh
pop edx
inc edi
add byte [eax], al
pop ebx
inc edi
add ah, cl
int3