Function at 0x10040df0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
mov ecx, dword [esi + 4]
push dword [ebp + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x100]
mov dword [ebp + 0x10], eax
test eax, eax
js 0x1004121c
test edi, edi
je 0x1004121c
mov ecx, dword [edi]
test ecx, ecx
je 0x1004121c
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
sub eax, 3
je 0x100410e7
sub eax, 1
je 0x10040fa8
sub eax, 1
je 0x10040e57
pop edi
pop esi
mov eax, 0x8876086c
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [edi]
mov eax, dword [esi + 0x1c8]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x100410f9
lea edx, [eax + 0x68]
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
xor eax, 0x811c9dc5
mov dword [ebp - 4], edx
imul eax, eax, 0x1000193
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003e010
mov esi, dword [eax + 4]
test esi, esi
jne 0x10040ecb
mov esi, dword [ebp - 4]
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x6c]
je 0x10040eed
mov esi, dword [esi + 0xc]
lea eax, [esi - 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x1013ded8
mov esi, 0xc
mov edx, ecx
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10040f15
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10040f00
xor eax, eax
jmp 0x10040f3c
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10040f37
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10040f37
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10040f37
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10040f37
xor eax, eax
jmp 0x10040f3c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10041207
push 0x10
call fcn.100d088c
mov esi, eax
add esp, 4
test esi, esi
je 0x100410f9
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esi], vtable.m_IDirect3DCubeTexture9.0
mov dword [esi + 4], vtable.m_IDirect3DCubeTexture9.1.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov ecx, dword [eax + 0x1c8]
test ebx, ebx
je 0x10041217
lea eax, [ebp + 8]
add ecx, 0x68
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003e080
lea ecx, [esi + 4]
mov eax, dword [eax]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [edi]
mov eax, dword [esi + 0x1c8]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x100410f9
lea edx, [eax + 0x1e8]
movzx eax, bl
xor eax, 0x811c9dc5
mov dword [ebp - 4], edx
imul ecx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003e010
mov esi, dword [eax + 4]
test esi, esi
jne 0x1004101f
mov esi, dword [ebp - 4]
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x1ec]
jne 0x10040ed3
mov ecx, 0x1013ded8
mov esi, 0xc
mov edx, ecx
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10041055
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10041040
xor eax, eax
jmp 0x1004107c
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10041077
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10041077
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10041077
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10041077
xor eax, eax
jmp 0x1004107c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10041207
push 0x10
call fcn.100d088c
mov esi, eax
add esp, 4
test esi, esi
je 0x100410f9
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esi], vtable.m_IDirect3DVolumeTexture9.0
mov dword [esi + 4], vtable.m_IDirect3DVolumeTexture9.1.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov ecx, dword [eax + 0x1c8]
test ebx, ebx
je 0x10041217
lea eax, [ebp + 8]
add ecx, 0x1e8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003e080
lea ecx, [esi + 4]
mov eax, dword [eax]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [edi]
mov esi, dword [esi + 0x1c8]
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], ebx
test ebx, ebx
jne 0x10041109
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [esi + 0x148]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003e010
mov eax, dword [eax + 4]
test eax, eax
jne 0x10041165
mov eax, dword [esi + 0x14c]
cmp eax, dword [esi + 0x14c]
je 0x10041187
mov esi, dword [eax + 0xc]
lea eax, [esi - 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x1013ded8
mov esi, 0xc
mov edx, ecx
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10041207
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10041193
push 0x10
call fcn.100d088c
mov esi, eax
add esp, 4
test esi, esi
je 0x100410f9
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov eax, dword [ecx + 4]
mov dword [esi], vtable.m_IDirect3DTexture9.0
mov dword [esi + 4], vtable.m_IDirect3DTexture9.1.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov ecx, dword [eax + 0x1c8]
test ebx, ebx
je 0x10041217
lea eax, [ebp + 8]
add ecx, 0x148
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003e080
lea ecx, [esi + 4]
mov eax, dword [eax]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 0x1013ded8
push ebx
call fcn.1003f4e0
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc