Function at 0x46bd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x886f80]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x58]
cmp dword [ebx + 0x18], 0x32
push edi
jne 0x46bd61
push ebx
push esi
call fcn.004682d0
add esp, 8
mov ecx, eax
jmp 0x46be86
movups xmm0, xmmword [ebx + 0x54]
sub esp, 0x10
lea edi, [ebx + 0x54]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00409ef0
add esp, 0x10
mov dword [esp + 0x20], eax
xor ebp, ebp
test eax, eax
je 0x46bda0
mov ebp, dword [eax]
add ebp, 0x18fb8
lea ebp, [esi + ebp*4]
test ebp, ebp
je 0x46bda0
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x46be9d
movups xmm0, xmmword [edi]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x46bdbc
test eax, eax
jne 0x46be74
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
cmp ecx, 2
je 0x46be74
xor eax, eax
test ecx, ecx
push 4
push 0
sete al
push edi
push esi
mov dword [esp + 0x20], eax
call fcn.00473740
mov ecx, dword [esi + 0x63fec]
add esp, 0x10
mov edx, dword [esi + 0x63bc8]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x640fc]
shr ecx, 2
shr eax, 2
add ecx, eax
shr edx, 2
add ecx, edx
cmp dword [esi + 0x24], 6
mov dword [esp + 0x1c], ecx
mov edx, ecx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x18
mov ecx, eax
imul ecx, edx
add ecx, dword [esi + 0x64208]
cmp dword [ecx + 4], edi
jne 0x46be38
mov edi, dword [ecx + 8]
test edi, edi
je 0x46be3d
mov edi, dword [esp + 0x10]
inc edx
add ecx, eax
jmp 0x46be28
cmp dword [esp + 0x20], 0
sete al
sub edx, dword [esp + 0x1c]
movzx eax, al
push eax
push dword [esp + 0x1c]
push edx
push dword [esp + 0x1c]
push dword [ecx + 0xc]
push edi
push 1
push esi
call fcn.0046aa80
add esp, 0x20
mov ecx, eax
mov dword [esp + 0x10], ecx
test ebp, ebp
je 0x46be8a
mov dword [ebp], ecx
jmp 0x46be8a
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x64230]
shl ecx, 6
mov ecx, dword [ecx + eax]
mov dword [esp + 0x10], ecx
mov eax, ebx
mov edx, 0x54
add eax, edx
mov edi, eax
test ecx, ecx
je 0x46c126
mov eax, dword [ebx + 0x18]
cmp eax, 0x8c
jne 0x46bed2
movups xmm0, xmmword [edi]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmovne eax, ecx
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 4]
shr eax, 0x15
and eax, 0xffffff01
mov dword [esp + 0x1c], eax
jmp 0x46bee8
imul eax, eax, 0x64
movzx eax, byte [eax + 0x51987c]
cmp dword [ebx + eax*4 + 0x30], 0
setne al
mov byte [esp + 0x1c], al
lea ebp, [esi + 0x10]
push 0x20
push ebp
call fcn.0047ba40
add esp, 8
test eax, eax
je 0x46c126
push eax
push ebp
call fcn.0047ca50
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x46c126
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x18]
cmp eax, 0x8c
jne 0x46bf4d
movups xmm0, xmmword [edi]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmovne eax, ecx
mov eax, dword [eax + 0x20]
movzx eax, word [eax + 6]
and eax, 0xf
jmp 0x46bf5b
imul eax, eax, 0x64
movzx eax, byte [eax + 0x51987b]
mov eax, dword [ebx + eax*4 + 0x30]
push eax
mov dword [esp + 0x18], eax
call fcn.0045edc0
add esp, 4
mov dword [esp + 0x20], eax
cmp byte [esp + 0x1c], 0
je 0x46bf78
inc eax
mov dword [esp + 0x20], eax
xor edi, edi
test eax, eax
je 0x46bfa4
lea eax, [ebx + 0x64]
push 4
push edi
push eax
push esi
call fcn.00473740
add esp, 0x10
mov dword [esp + edi*4 + 0x24], eax
test eax, eax
je 0x46c126
inc edi
lea eax, [ebx + 0x64]
cmp edi, dword [esp + 0x20]
jb 0x46bf81
imul eax, dword [ebx + 0x18], 0x64
push 0x20
movzx eax, byte [eax + 0x519885]
push dword [ebx + eax*4 + 0x30]
call fcn.00473470
add esp, 8
mov ecx, eax
cmp dword [esp + 0x14], 5
push ecx
jne 0x46bfe7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.0046a070
add esp, 0x10
jmp 0x46c062
push str.dx.op.textureLoad
push ebp
call fcn.0047f5c0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x46c126
push 0x20
push ebp
call fcn.0047ba40
push eax
push ebp
call fcn.0047ca50
push 0x42
push ebp
mov edi, eax
call fcn.0047b780
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push 9
push eax
push dword [esp + 0x38]
mov dword [esp + 0x5c], edi
push ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
call fcn.00479d50
add esp, 0x28
mov dword [esp + 0x14], eax
test eax, eax
je 0x46c126
movzx ecx, byte [ebx + 0x2c]
xor edi, edi
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x46c0ea
nop dword [eax]
push edi
push eax
push ebp
call fcn.00479f50
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x46c126
push ebp
call fcn.0047cd00
add esp, 4
cmp eax, dword [esi + 0x63bb0]
jne 0x46c0aa
or dword [esi + 0x28], 1
cmp eax, dword [esi + 0x63ba8]
je 0x46c0ba
cmp eax, dword [esi + 0x63b9c]
jne 0x46c0be
or dword [esi + 0x28], 0x10
cmp eax, dword [esi + 0x63ba4]
jne 0x46c0cd
or dword [esi + 0x28], 0x8000
push ebp
push edi
lea eax, [ebx + 0x1c]
push eax
push esi
call fcn.004748b0
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x10]
inc edi
add esp, 0x10
cmp edi, dword [esp + 0x18]
jb 0x46c080
imul eax, dword [ebx + 0x18], 0x64
movzx eax, byte [eax + 0x51987d]
push dword [ebx + eax*4 + 0x30]
call fcn.004624a0
add esp, 4
mov eax, dword [eax + 0x20]
and al, 7
cmp al, 1
jbe 0x46c111
or dword [esi + 0x28], 0x800
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004e5b77
add esp, 0x48
ret
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5b77
add esp, 0x48
ret