Function at 0x1003b8c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e6b0
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x1009400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], 0
mov edx, dword [0x101f42b0]
movzx eax, dl
xor eax, 0x811c9dc5
mov edi, dword [ebp + 8]
imul ecx, eax, 0x1000193
movzx eax, dh
mov dword [ebp - 0xec], edi
xor ecx, eax
movzx eax, byte [0x101f42b2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [0x101f42b3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push 0x101f42b0
lea eax, [ebp - 0xdc]
push eax
call fcn.10036b40
mov eax, dword [eax + 4]
test eax, eax
je 0x1003b962
cmp eax, dword [0x101f4d28]
jne 0x1003c907
mov ecx, str.jumptube
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003b990
test dl, dl
je 0x1003b98c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003b990
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003b970
xor ecx, ecx
jmp 0x1003b995
sbb ecx, ecx
or ecx, 1
mov eax, dword [0x101f42ac]
test ecx, ecx
mov esi, dword [0x101f42b0]
mov ecx, str.jumptube5
cmove eax, esi
mov dword [0x101f42ac], eax
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003b9d1
test dl, dl
je 0x1003b9cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003b9d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003b9b1
xor ecx, ecx
jmp 0x1003b9d6
sbb ecx, ecx
or ecx, 1
mov eax, dword [0x101f42a4]
test ecx, ecx
mov ecx, str.NAV_star.tga
cmove eax, esi
mov dword [0x101f42a4], eax
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003ba10
test dl, dl
je 0x1003ba0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003ba10
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003b9f0
xor ecx, ecx
jmp 0x1003ba15
sbb ecx, ecx
or ecx, 1
mov eax, dword [0x101f427c]
test ecx, ecx
mov ecx, edi
mov dword [ebp - 0xb8], 0
cmove eax, esi
mov dword [ebp - 0xf8], 0
mov dword [0x101f427c], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ba70
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0xb8]
call fcn.10004a90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
lea edx, [eax - 4]
mov byte [ebp - 0xd0], 0
cmp eax, edx
jb 0x1003c924
sub eax, edx
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push ecx
add eax, edx
lea ecx, [ebp - 0xd0]
push eax
call fcn.10004a90
mov dword [ebp - 0xd8], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 0x10
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xc0]
cmovae ecx, edi
push 4
push str..tga
mov edx, esi
call fcn.10009550
add esp, 8
test al, al
jne 0x1003bb6c
cmp dword [ebp - 0xbc], 0x10
lea ecx, [ebp - 0xd0]
push 4
cmovae ecx, edi
mov edx, esi
push str..dds
call fcn.10009550
add esp, 8
test al, al
jne 0x1003bb6c
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x40]
call fcn.10007ae0
mov ecx, 5
jmp 0x1003bbb5
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea ecx, [eax - 4]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10004a90
lea eax, [ebp - 0x28]
mov ecx, 0xe
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 3
test cl, 2
je 0x1003bc28
mov edx, dword [ebp - 0x14]
and ecx, 0xfffffffd
mov dword [ebp - 0xd8], ecx
cmp edx, 0x10
jb 0x1003bc28
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003bc18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bc57
push edx
push ecx
call fcn.1004d7a1
mov ecx, dword [ebp - 0xd8]
add esp, 8
mov byte [ebp - 4], 4
test cl, 1
je 0x1003bc79
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1003bc67
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003bc5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003bc5d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push 0
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
push 0x1008752b
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.10004a90
mov byte [ebp - 4], 5
mov esi, 0x7fffffff
cmp byte [0x100940e7], 0
je 0x1003bef2
push 0x1d
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push str..._data_textures_normal_maps_
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10004a90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x18]
sub eax, edx
mov edi, dword [ebp - 0x90]
push edi
push ecx
cmp edi, eax
ja 0x1003bd45
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0x28]
add esi, edx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov esi, 0x7fffffff
jmp 0x1003bd61
mov byte [ebp - 0xd8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xd8]
push edi
call fcn.100086f0
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x1003c929
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..dds
push ecx
push eax
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x40]
call fcn.10008d20
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x1003bdcb
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003bdc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bee0
push edx
push ecx
call fcn.1004d7a1
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x88]
movq xmm0, qword [ebp - 0x30]
movd eax, xmm1
push 0x100895e8
movups xmmword [ebp - 0x88], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xe0]
movq qword [ebp - 0x78], xmm0
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 0xe0], 0
jne 0x1003beb6
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x1003c929
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..tga
push ecx
push eax
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x40]
call fcn.10008d20
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x1003be7a
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003be70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003bee0
push edx
push ecx
call fcn.1004d7a1
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x88]
movq xmm0, qword [ebp - 0x30]
movd eax, xmm1
push 0x100895e8
movups xmmword [ebp - 0x88], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xe0]
movq qword [ebp - 0x78], xmm0
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003bef8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003bee6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003bee6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
jmp 0x1003bef8
mov edi, dword [ebp - 0x90]
push 0
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x70]
push 0x1008752b
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.10004a90
mov byte [ebp - 4], 7
cmp byte [0x10094109], 0
je 0x1003c149
push 0x1f
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push str..._data_textures_specular_maps_
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10004a90
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x18]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x1003bfb0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea eax, [edi + edx]
cmovae esi, dword [ebp - 0x28]
add esi, edx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov esi, 0x7fffffff
jmp 0x1003bfcc
mov byte [ebp - 0xd8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xd8]
push edi
call fcn.100086f0
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x1003c929
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..dds
push ecx
push eax
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x40]
call fcn.10008d20
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x1003c033
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c029
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c139
push edx
push ecx
call fcn.1004d7a1
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x70]
movq xmm0, qword [ebp - 0x30]
movd eax, xmm1
push 0x100895e8
movups xmmword [ebp - 0x70], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xe4]
movq qword [ebp - 0x60], xmm0
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
cmp dword [ebp - 0xe4], 0
jne 0x1003c10f
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x1003c929
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..tga
push ecx
push eax
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x40]
call fcn.10008d20
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x1003c0d9
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c0cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c139
push edx
push ecx
call fcn.1004d7a1
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x70]
movq xmm0, qword [ebp - 0x30]
movd eax, xmm1
push 0x100895e8
movups xmmword [ebp - 0x70], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xe4]
movq qword [ebp - 0x60], xmm0
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003c149
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c13f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c13f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
push 0
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push 0x1008752b
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.10004a90
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
push 0x1d
mov dword [ebp - 0x28], 0
push str..._data_textures_height_maps_
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10004a90
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x18]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x1003c1f4
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0x28]
add esi, edx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov esi, 0x7fffffff
jmp 0x1003c20a
mov byte [ebp - 0xd8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xd8]
push edi
call fcn.100086f0
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 4
jb 0x1003c929
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..dds
push ecx
push eax
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x40]
call fcn.10008d20
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x1003c271
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c267
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c373
push edx
push ecx
call fcn.1004d7a1
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x58]
movq xmm0, qword [ebp - 0x30]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
movd eax, xmm1
push 0x100895e8
movups xmmword [ebp - 0x58], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xe8]
movq qword [ebp - 0x48], xmm0
push ecx
push eax
call edi
add esp, 0xc
cmp dword [ebp - 0xe8], 0
jne 0x1003c349
mov ecx, dword [ebp - 0x18]
sub esi, ecx
cmp esi, 4
jb 0x1003c929
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push str..tga
push ecx
push eax
push ecx
push dword [ebp - 0xd8]
lea ecx, [ebp - 0x40]
call fcn.10008d20
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x1003c317
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c30d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c373
push edx
push ecx
call fcn.1004d7a1
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x58]
movq xmm0, qword [ebp - 0x30]
movd eax, xmm1
push 0x100895e8
movups xmmword [ebp - 0x58], xmm1
cmovae ecx, eax
lea eax, [ebp - 0xe8]
movq qword [ebp - 0x48], xmm0
push ecx
push eax
call edi
add esp, 0xc
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003c383
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c379
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c379
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor al, al
cmp dword [ebp - 0xe0], 0
je 0x1003c4dd
mov esi, dword [ebp - 0xec]
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c3c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10004a90
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push str.NormalMap_found:
push eax
call fcn.10026d80
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x1003c3f6
mov esi, dword [esi]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1003c426
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c41c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c462
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x1003c472
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c468
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c468
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1002e470
push dword [ebp - 0xe0]
mov byte [ebp - 0xd1], 1
call edi
add esp, 8
lea ecx, [ebp - 0xf8]
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0
push 0
push 0xfffffffffffffffd
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push dword [0x101f3f18]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
mov al, byte [ebp - 0xd1]
cmp dword [ebp - 0xe4], 0
je 0x1003c627
mov esi, dword [ebp - 0xec]
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c510
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10004a90
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x40]
push str.SpecMap_found:
push eax
call fcn.10026d80
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x1003c546
mov esi, dword [esi]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1003c576
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c56c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c5b2
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x1003c5c2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c5b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c5b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1002e470
push dword [ebp - 0xe4]
mov byte [ebp - 0xd1], 1
call edi
add esp, 8
lea ecx, [ebp - 0xf4]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0
push 0
push 0xfffffffffffffffd
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push dword [0x101f3f18]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
mov al, byte [ebp - 0xd1]
cmp dword [ebp - 0xe8], 0
je 0x1003c764
mov esi, dword [ebp - 0xec]
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c658
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10004a90
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push str.HeightMap_found:
push eax
call fcn.10026d80
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x1003c68e
mov esi, dword [esi]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1003c6be
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c6b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c6fa
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x1003c70a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c700
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c700
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1002e470
push dword [ebp - 0xe8]
call edi
add esp, 8
lea ecx, [ebp - 0xf0]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0
push 0
push 0xfffffffffffffffd
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push dword [0x101f3f18]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
jmp 0x1003c768
test al, al
je 0x1003c783
push ecx
call fcn.1003cba0
movq xmm0, qword [ebp - 0xf8]
movq qword [eax], xmm0
mov ecx, dword [ebp - 0xf0]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x1003c7b7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c7ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c8f7
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x1003c7fd
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c7f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c8f7
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x1003c846
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c83c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c8f7
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x1003c893
mov edx, dword [ebp - 0xa0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c889
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c8f7
push ecx
push edx
call fcn.1004d7a1
add esp, 8
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x1003c8cb
mov edx, dword [ebp - 0xd0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c8c1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c8f7
push ecx
push edx
call fcn.1004d7a1
add esp, 8
mov edx, dword [ebp - 0xa4]
cmp edx, 0x10
jb 0x1003c907
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c8fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c8fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d763
mov esp, ebp
pop ebp
ret 4
call fcn.10007ea0
call fcn.10002c90
int3