Function at 0x4f9270
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp + 8]
push 0x734dcc
push str.textures
and dword [edi + 0x16c], 0xfffffffb
mov dword [ebp - 0x6c], edi
call fcn.00466230
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x4f92b4
call fcn.00464440
mov esi, eax
mov dword [ebp - 0x24], eax
cmp byte [esi + 8], 6
jne 0x4f92d9
mov ecx, esi
call fcn.00465800
cmp eax, 0xa
jae 0x4f92e2
mov ecx, esi
call fcn.00465800
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], ebx
test eax, eax
jg 0x4f92f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
mov dword [ebp - 0x2c], 0xa
mov dword [ebp - 0xc], ebx
nop
cmp byte [esi + 8], 0
jne 0x4f92fd
call fcn.00464440
jmp 0x4f9341
mov esi, dword [esi]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x74], 0
push eax
mov ecx, esi
mov dword [ebp - 0x70], ebx
call fcn.004679d0
mov ecx, dword [ebp - 0xc8]
cmp byte [ecx + 0xd], 0
jne 0x4f932c
cmp ebx, dword [ecx + 0x14]
jae 0x4f932e
mov ecx, dword [esi]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp ecx, dword [eax]
jne 0x4f933e
call fcn.00464440
jmp 0x4f9341
lea eax, [ecx + 0x18]
cmp byte [eax + 8], 4
mov dword [ebp - 0x1c], eax
jne 0x4f9980
movzx eax, bl
xor eax, 0x811c9dc5
mov dword [ebp - 0x14], 0
imul ecx, eax, 0x1000193
movzx eax, byte [ebp - 0xb]
xor ecx, eax
movzx eax, byte [ebp - 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp - 9]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x1c0]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004301e0
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4f93b1
mov ebx, dword [edi + 0x1c4]
mov dword [ebp - 0x18], ebx
cmp ebx, dword [edi + 0x1c4]
je 0x4f9950
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x18], 0
je 0x4f9950
mov eax, dword [ecx]
cmp dword [eax + 0xc], 1
je 0x4f93f8
cmp dword [ecx + 0x1c], 0xf
mov eax, dword [edi + 0x70]
mov edx, dword [eax + 0x2a90]
mov eax, dword [edx]
mov esi, dword [eax + 0x30]
lea eax, [ecx + 8]
jbe 0x4f93eb
mov eax, dword [eax]
push eax
mov ecx, edx
call esi
test al, al
je 0x4f9950
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 8]
push 0x734dc0
push str.usertexturereference
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
call fcn.00466230
mov esi, eax
test esi, esi
jne 0x4f942a
call fcn.00464440
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xc0], 0
cmp byte [esi + 8], 7
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
jne 0x4f94f8
push 0x7200c1
push str.width
mov ecx, esi
call fcn.00466230
mov dword [ebp - 8], eax
test eax, eax
jne 0x4f9486
call fcn.00464440
mov dword [ebp - 8], eax
push 0x7200d2
push str.height
mov ecx, esi
call fcn.00466230
mov esi, eax
test esi, esi
jne 0x4f94a4
call fcn.00464440
mov esi, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
and eax, 0xff
cmp eax, 1
je 0x4f94be
cmp eax, 2
je 0x4f94be
cmp eax, 3
jne 0x4f94c6
call fcn.004652e0
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 8]
and ecx, 0xff
cmp ecx, 1
je 0x4f94de
cmp ecx, 2
je 0x4f94de
cmp ecx, 3
jne 0x4f94ea
mov ecx, esi
call fcn.004652e0
mov dword [ebp - 0x20], eax
jmp 0x4f94ed
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4f94f8
test eax, eax
jne 0x4f955e
mov eax, dword [ebp - 0x1c]
mov edx, dword [edi + 0x70]
mov ecx, dword [eax]
test ecx, ecx
je 0x4f9511
mov eax, dword [eax + 8]
shr eax, 8
test al, 1
je 0x4f9511
add ecx, 4
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xc4]
push eax
push ecx
lea ecx, [edx + 0x28e0]
call fcn.004f4420
mov ebx, dword [ebp - 0x98]
test al, al
je 0x4f9558
test byte [ebp - 0xc0], 4
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
je 0x4f955e
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x9c]
jmp 0x4f955e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4f9916
test eax, eax
je 0x4f9916
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov word [edi + 0x1e0], cx
shr ecx, 0x1f
mov word [edi + 0x1e2], ax
push ecx
addsd xmm0, qword [ecx*8 + 0x739f30]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x739f30]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm1
movss dword [ebp - 8], xmm1
mulss xmm0, dword [0x7399bc]
movss dword [esp], xmm0
call fcn.005ed6a8
add esp, 4
mov dword [ebp - 0x18c], 0x720528
fstp dword [ebp - 0x14]
cvttss2si esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x17c], 0x720520
call fcn.0040d540
or dword [ebp - 0x28], 1
lea eax, [ebp - 0x174]
push ecx
push eax
lea ecx, [ebp - 0x18c]
call fcn.0040d420
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x18c], 0x720530
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x174]
call fcn.0040de20
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x174], 0x720534
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
add edx, 8
cmp dword [edx + 0x14], 0xf
jbe 0x4f9670
mov edx, dword [edx]
push eax
lea ecx, [ebp - 0x17c]
call fcn.0040fee0
add esp, 4
mov edx, 0x7200e0
mov ecx, eax
call fcn.0040e220
push esi
mov ecx, eax
call fcn.00428020
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x174]
call fcn.0040d4a0
mov ecx, dword [edi + 0x70]
lea eax, [ebp - 0x8c]
add ecx, 0x28e0
cmp dword [ebp - 0x78], 0xf
push 0
cmova eax, dword [ebp - 0x8c]
push eax
call fcn.004f41f0
mov edx, dword [ebp - 0x8c]
mov esi, eax
mov dword [ebp - 0x10], edx
test esi, esi
jne 0x4f98cf
mov edi, dword [ebp - 0x7c]
lea eax, [ebp - 0x8c]
mov esi, 0xf
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x78], esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
cmova eax, edx
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x4c], 0
movss xmm0, dword [ebp - 8]
movss dword [ebp - 0x30], xmm0
cmp edi, esi
ja 0x4f9744
push edi
push eax
lea esi, [ebp - 0x64]
mov dword [ebp - 0x54], edi
push esi
call fcn.005c3580
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4f97b0
cmp edi, 0x7fffffff
ja 0x4f9995
mov ecx, edi
or ecx, esi
cmp ecx, 0x7fffffff
jbe 0x4f9763
mov ecx, 0x7fffffff
jmp 0x4f9781
mov edx, esi
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x4f9779
mov ecx, 0x7fffffff
jmp 0x4f9781
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00414510
mov ecx, dword [ebp - 8]
mov esi, eax
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x54], edi
push esi
mov dword [ebp - 0x50], ecx
call fcn.005c3580
mov byte [edi + esi], 0
add esp, 0x14
mov dword [ebp - 0x64], esi
cmp dword [ebp - 0x68], 1
jne 0x4f97dd
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
add eax, 0x10
cmp ecx, eax
je 0x4f97dd
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x4f97d3
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040c060
test byte [ebp - 0xc0], 2
mov ecx, 0xa
mov edi, dword [ebp - 0x6c]
mov eax, 8
cmovne eax, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x70]
mov ecx, dword [eax + 0x28dc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
add eax, 8
cmp dword [eax + 0x14], 0xf
jbe 0x4f9816
mov eax, dword [eax]
lea esi, [ebp - 0x64]
push esi
push eax
call edx
mov dword [ebp - 8], eax
test dword [eax + 0x10], 0x40000000
je 0x4f9839
test eax, eax
je 0x4f9835
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
xor esi, esi
jmp 0x4f984e
mov ecx, dword [edi + 0x70]
lea eax, [ebp - 8]
push eax
add ecx, 0x28e0
call fcn.004f3f60
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x4f9882
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4f9878
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f999a
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x4f98c8
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4f98be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f999a
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov edx, dword [ebp - 0x10]
test esi, esi
je 0x4f98d6
or dword [edi + 0x16c], 4
mov eax, dword [ebp - 0x78]
cmp eax, 0xf
jbe 0x4f9909
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4f98ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f999a
push ecx
push edx
call fcn.005ab85c
add esp, 8
lea ecx, [ebp - 0x18c]
call fcn.00404ea0
jmp 0x4f9919
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x4f994c
mov ecx, dword [ebp - 0x90]
mov eax, ebx
sub ecx, ebx
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x4f9942
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f999a
push ecx
push ebx
call fcn.005ab85c
add esp, 8
test esi, esi
jne 0x4f9979
mov eax, dword [ebp - 0x1c]
mov edx, dword [edi + 0x70]
mov ecx, dword [eax]
test ecx, ecx
je 0x4f9969
mov eax, dword [eax + 8]
shr eax, 8
test al, 1
je 0x4f9969
add ecx, 4
push 1
push ecx
lea ecx, [edx + 0x28e0]
call fcn.004f41f0
mov esi, eax
mov ebx, dword [ebp - 0xc]
mov dword [edi + ebx*4 + 0x74], esi
inc ebx
mov dword [ebp - 0xc], ebx
cmp ebx, dword [ebp - 0x2c]
jge 0x4f92d9
mov esi, dword [ebp - 0x24]
jmp 0x4f92f0
call fcn.00414440
call fcn.005c695f
int3