Function at 0x101ba090
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp byte [esi + 0x12bf], 0
je 0x101ba0cb
mov ebx, dword [ebp + 0x24]
test ebx, ebx
js 0x101ba0e3
cmp dword [esi + 0x2e4], ebx
jge 0x101ba0ef
add esi, 0x1d04
mov ecx, esi
push str.Samples_must_not_be_greater_than_maximum_supported_value_for_the_format.
push 0x501
jmp 0x101ba0dd
add esi, 0x1d04
mov ecx, esi
push str.Extension_is_not_enabled.
push 0x502
push eax
call fcn.1001a2a0
xor ebx, ebx
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x1c]
push dword [ebp + 0x20]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push esi
call fcn.101a7490
add esp, 0x18
test al, al
je 0x101ba0e3
mov dl, byte [ebp + 0x18]
test edi, edi
je 0x101ba244
cmp dword [esi + 0x1c], 3
jl 0x101ba244
mov eax, dword [esi + 0x136c]
cmp dword [eax + 0x2c], edi
jbe 0x101ba140
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edi*4]
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov edi, dword [ebp + 0x20]
jmp 0x101ba201
mov ecx, edi
shr ecx, 0x10
mov dword [ebp - 0x10], eax
mov eax, edi
shr eax, 8
mov dword [ebp - 0x18], edi
mov edx, 0xff
and dword [ebp - 0x18], edx
and eax, edx
and ecx, edx
mov edx, edi
shr edx, 0x18
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x18]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
xor edx, eax
imul edx, edx, 0x1000193
mov dword [ebp - 0x20], ecx
xor edx, ecx
imul edx, edx, 0x1000193
xor edx, dword [ebp - 0x14]
imul edx, edx, 0x1000193
mov ecx, dword [ebp - 0x10]
and edx, dword [ecx + 0x4c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x38]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x40]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ecx + edx*8 + 4]
cmp edx, dword [ebp - 0x14]
je 0x101ba1ea
and edi, 0xff000000
mov ecx, dword [ebp - 0x20]
shl ecx, 0x10
or ecx, edi
shl eax, 8
or eax, ecx
add eax, dword [ebp - 0x18]
cmp eax, dword [edx + 8]
je 0x101ba1ec
mov ecx, dword [ebp - 0x10]
add ecx, ecx
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + ecx*4]
mov edi, dword [ebp + 0x20]
cmp edx, ecx
je 0x101ba1f1
mov edx, dword [edx + 4]
cmp eax, dword [edx + 8]
jne 0x101ba1dc
jmp 0x101ba1f3
xor edx, edx
mov edi, dword [ebp + 0x20]
jmp 0x101ba1f3
xor edx, edx
test edx, edx
mov eax, dword [ebp - 0x14]
cmovne eax, edx
mov ecx, dword [eax + 0xc]
mov dl, byte [ebp + 0x18]
movzx eax, dl
push edi
push eax
call fcn.1008e490
mov eax, dword [eax]
push dword [eax + 8]
call fcn.100cf8f0
add esp, 4
shl eax, 4
lea ecx, [esi + eax]
add ecx, 0x398
call fcn.10004a80
mov dl, byte [ebp + 0x18]
cmp eax, ebx
jae 0x101ba244
add esi, 0x1d04
mov ecx, esi
push str.Samples_must_not_be_greater_than_maximum_supported_value_for_the_format.
push 0x502
jmp 0x101ba28e
cmp dword [ebp + 0x14], 0x8ce0
je 0x101ba265
cmp byte [esi + 0x12c0], 0
jne 0x101ba265
add esi, 0x1d04
mov ecx, esi
push str.Invalid_Attachment_Type.
jmp 0x101ba289
movzx eax, dl
mov bl, 1
push eax
push esi
call fcn.101a5550
add esp, 8
test al, al
jne 0x101ba0e5
add esi, 0x1d04
mov ecx, esi
push str.Invalid_or_unsupported_texture_target.
push 0x500
push dword [ebp + 0xc]
jmp 0x101ba0de