Function at 0x10040d20
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 0x1004114c
test edi, edi
je 0x1004114c
mov ecx, dword [edi]
test ecx, ecx
je 0x1004114c
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
sub eax, 3
je 0x10041017
sub eax, 1
je 0x10040ed8
sub eax, 1
je 0x10040d87
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 0x10041029
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.1003df40
mov esi, dword [eax + 4]
test esi, esi
jne 0x10040dfb
mov esi, dword [ebp - 4]
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x6c]
je 0x10040e1d
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, 0x10141a98
mov esi, 0xc
mov edx, ecx
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10040e45
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10040e30
xor eax, eax
jmp 0x10040e6c
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10040e67
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10040e67
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10040e67
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10040e67
xor eax, eax
jmp 0x10040e6c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10041137
push 0x10
call fcn.100d4efc
mov esi, eax
add esp, 4
test esi, esi
je 0x10041029
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 0x10041147
lea eax, [ebp + 8]
add ecx, 0x68
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003dfb0
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 0x10041029
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.1003df40
mov esi, dword [eax + 4]
test esi, esi
jne 0x10040f4f
mov esi, dword [ebp - 4]
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x1ec]
jne 0x10040e03
mov ecx, 0x10141a98
mov esi, 0xc
mov edx, ecx
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10040f85
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10040f70
xor eax, eax
jmp 0x10040fac
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10040fa7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10040fa7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10040fa7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10040fa7
xor eax, eax
jmp 0x10040fac
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10041137
push 0x10
call fcn.100d4efc
mov esi, eax
add esp, 4
test esi, esi
je 0x10041029
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 0x10041147
lea eax, [ebp + 8]
add ecx, 0x1e8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003dfb0
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 0x10041039
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.1003df40
mov eax, dword [eax + 4]
test eax, eax
jne 0x10041095
mov eax, dword [esi + 0x14c]
cmp eax, dword [esi + 0x14c]
je 0x100410b7
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, 0x10141a98
mov esi, 0xc
mov edx, ecx
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10041137
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100410c3
push 0x10
call fcn.100d4efc
mov esi, eax
add esp, 4
test esi, esi
je 0x10041029
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 0x10041147
lea eax, [ebp + 8]
add ecx, 0x148
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003dfb0
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 0x10141a98
push ebx
call fcn.1003f410
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