Function at 0x10ac65d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10e1e9b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov ecx, dword [edi + 0x1328]
imul ecx, dword [edi + 0x132c]
cmp ecx, ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x30], ecx
jle 0x10ac6633
lea eax, [ecx + ecx*2]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + ecx + 0x20]
push 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], eax
call fcn.109b8e40
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov ecx, dword [edi + 0x1328]
imul ecx, dword [edi + 0x132c]
cmp ecx, ebp
mov byte [esp + 0x90], 1
mov dword [esp + 0x3c], ecx
jle 0x10ac6677
lea eax, [ecx + ecx*2]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [eax + ecx + 0x20]
mov dword [esp + 0x40], ecx
push 4
lea ecx, [esp + 0x3c]
call fcn.109b8e40
mov eax, dword [0x10fcccac]
mov edx, dword [eax]
push str.Smoothing_Terrain_colors...
push 3
push ebp
push eax
call dword [edx + 0x14]
mov eax, dword [edi + 0x3dc]
add esp, 0x10
cmp eax, ebp
je 0x10ac67b0
mov eax, dword [eax + 0xb4]
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x3dc]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [edi + 0x3dc]
cmp byte [eax + 0x44], 5
je 0x10ac66d7
mov eax, dword [0x10fcccac]
push str.VertexLightMap_must_be_32_bit_color_
push eax
call fcn.109baf50
add esp, 8
jmp 0x10ac68e4
mov ecx, dword [edi + 0x1328]
cmp dword [eax + 0x4c], ecx
jne 0x10ac6798
mov edx, dword [edi + 0x132c]
cmp dword [eax + 0x50], edx
jne 0x10ac6798
imul ecx, edx
shl ecx, 2
push ecx
mov ecx, dword [eax + 0xb4]
mov edx, dword [ecx + 0x20]
mov eax, dword [esp + 0x3c]
push edx
push eax
call fcn.10902f60
mov ecx, dword [esp + 0x3c]
add esp, 0xc
xor eax, eax
cmp ecx, ebp
jle 0x10ac68e4
xor ecx, ecx
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + eax*4 + 2]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
fild dword [esp + 0x20]
inc eax
add ecx, 0x10
fstp dword [ecx + edx - 0x10]
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + eax*4 - 3]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [ecx + edx - 0xc]
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + eax*4 - 4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [ecx + edx - 8]
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + eax*4 - 1]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [ecx + edx - 4]
mov edx, dword [esp + 0x30]
cmp eax, edx
jl 0x10ac6723
jmp 0x10ac68e4
mov eax, dword [0x10fcccac]
push str.VertexLightMap_must_match_heightfield_dimesions_
push eax
call fcn.109baf50
add esp, 8
jmp 0x10ac68e4
mov eax, dword [edi + 0x1314]
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x10], ecx
jle 0x10ac68e4
mov edx, dword [edi + 0x1310]
lea ebx, [ebx]
mov eax, dword [edx + ecx*4]
mov ebx, dword [eax + 0x90]
mov esi, dword [edi + 0x13e8]
imul ebx, ebx, 0x1c
add ebx, esi
cmp dword [eax + 0x68], ebp
mov dword [esp + 0x18], ebx
jl 0x10ac68cf
mov eax, dword [eax + 0x64]
xor esi, esi
test eax, eax
jl 0x10ac68bc
mov edi, edi
mov edx, dword [edi + 0x1310]
mov edx, dword [edx + ecx*4]
mov eax, dword [edx + 0x70]
mov ecx, dword [edx + 0x44]
add eax, ebp
imul eax, dword [ecx + 0x1328]
add eax, dword [edx + 0x6c]
mov ecx, dword [edx + 0x64]
movzx edx, word [edx + 0x94]
add eax, esi
inc ecx
imul ecx, ebp
add ecx, esi
add edx, ecx
mov ecx, dword [ebx + 4]
lea edx, [edx + edx*8]
mov edx, dword [ecx + edx*4 + 0x18]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
fstp dword [ecx + ebx]
movzx ebx, dh
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [ecx + ebx + 4]
movzx ebx, dl
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [ecx + ebx + 8]
mov ebx, edx
shr ebx, 0x18
mov dword [esp + 0x20], ebx
fild dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
inc esi
fstp dword [ecx + ebx + 0xc]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x1310]
mov ecx, dword [edx + eax*4]
mov eax, dword [ecx + 0x64]
cmp esi, eax
mov ecx, dword [esp + 0x10]
jle 0x10ac6800
mov edx, dword [edi + 0x1310]
mov esi, dword [edx + ecx*4]
inc ebp
cmp ebp, dword [esi + 0x68]
jle 0x10ac67f4
mov eax, dword [edi + 0x1314]
inc ecx
xor ebp, ebp
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x10ac67d0
cmp dword [edi + 0x3dc], ebp
jne 0x10ac6c9f
mov edx, dword [edi + 0x24]
mov eax, dword [0x110a36dc]
mov ecx, dword [eax + edx*4]
add ecx, 0xc
push ecx
lea edx, [esp + 0x48]
push str._sRayTrace
push edx
call fcn.109bc8a0
add esp, 0xc
cmp dword [eax + 4], ebp
mov byte [esp + 0x90], 2
je 0x10ac6922
mov eax, dword [eax]
jmp 0x10ac6927
mov eax, 0x10e43c3c
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.109d7850
push 2
lea ecx, [esp + 0x48]
mov byte [esp + 0x94], 3
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.109b8e40
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 1
call fcn.109148d0
mov eax, dword [0x110b8b00]
test eax, eax
mov esi, dword [edi + 0x1c]
jne 0x10ac6982
push 0x10e44b40
call fcn.10a276a0
add esp, 4
mov dword [0x110b8b00], eax
call fcn.10a224b0
mov eax, dword [0x10f43374]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x110b8b00]
push 0
push eax
push 0
push 0x80004
push ecx
push esi
push edx
call fcn.109cd900
push eax
call fcn.109276c0
mov esi, eax
mov eax, dword [esi]
mov byte [esi + 0x44], 5
mov ecx, dword [edi + 0x132c]
mov edx, dword [edi + 0x1328]
add esp, 0x20
push ecx
push edx
mov ecx, esi
call dword [eax + 0xb4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [edi + 0x1328]
imul ecx, dword [edi + 0x132c]
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0xb4]
shl ecx, 2
push ecx
mov ecx, dword [eax + 0x20]
push edx
push ecx
call fcn.10902f60
mov eax, dword [0x10fcccac]
mov edx, dword [eax]
push str.Smoothing_Terrain_colors...
push 3
push 1
push eax
call dword [edx + 0x14]
mov eax, dword [edi + 0x132c]
add esp, 0x1c
mov edx, 1
dec eax
cmp eax, edx
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x68], 0x40000000
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x70], 0x40000000
mov dword [esp + 0x74], 0x40800000
mov dword [esp + 0x78], 0x40000000
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x80], 0x40000000
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x14], edx
jle 0x10ac6c88
mov ecx, dword [edi + 0x1328]
lea eax, [ecx - 1]
lea esp, [esp]
mov ebp, 1
cmp eax, ebp
jle 0x10ac6c74
lea ecx, [ecx]
mov ebx, ecx
fld dword [0x10e4500c]
lea esi, [edx + 1]
imul ebx, esi
mov esi, dword [esp + 0x2c]
add ebx, ebp
shl ebx, 4
lea esi, [ebx + esi - 8]
mov ebx, ecx
imul ebx, edx
mov edx, dword [esp + 0x2c]
add ebx, ebp
shl ebx, 4
add edx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
add edx, 0xfffffff8
dec ebx
imul ecx, ebx
mov ebx, dword [esp + 0x2c]
add ecx, ebp
shl ecx, 4
lea ecx, [ecx + ebx - 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x68]
mov ebx, 3
fld dword [eax - 4]
add ecx, 0x10
fld st(0)
add edx, 0x10
fmul dword [ecx - 0x18]
add esi, 0x10
add eax, 0xc
dec ebx
fstp dword [esp + 0x54]
fld st(0)
fmul dword [ecx - 0x14]
fstp dword [esp + 0x58]
fld st(0)
fmul dword [ecx - 0x10]
fstp dword [esp + 0x5c]
fmul dword [ecx - 0xc]
fstp dword [esp + 0x60]
fadd dword [esp + 0x54]
fld dword [esp + 0x58]
fadd dword [esp + 0x48]
fld dword [esp + 0x5c]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x60]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [eax - 0xc]
fld st(0)
fmul dword [edx - 0x18]
fld st(1)
fmul dword [edx - 0x14]
fstp dword [esp + 0x58]
fld st(1)
fmul dword [edx - 0x10]
fstp dword [esp + 0x5c]
fxch st(1)
fmul dword [edx - 0xc]
fstp dword [esp + 0x60]
fadd st(2)
fstp dword [esp + 0x44]
fld dword [esp + 0x58]
fadd st(1)
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld dword [esp + 0x5c]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x60]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [eax - 8]
fld st(0)
fmul dword [esi - 0xc]
fstp dword [esp + 0x24]
fld st(0)
fmul dword [esi - 0x10]
fstp dword [esp + 0x10]
fld st(0)
fmul dword [esi - 0x14]
fstp dword [esp + 0x1c]
fmul dword [esi - 0x18]
fadd dword [esp + 0x44]
fld dword [esp + 0x48]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fadd dword [esp + 0x24]
fstp dword [esp + 0x50]
fld dword [esp + 0x18]
fadd dword [eax - 0x10]
fadd dword [eax - 0xc]
fadd dword [eax - 8]
fstp dword [esp + 0x18]
jne 0x10ac6b00
fld dword [0x10e45008]
mov eax, dword [esp + 0x28]
fdiv dword [esp + 0x18]
inc ebp
fst dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
fstp st(0)
fld dword [esp + 0x48]
fmul dword [esp + 0x10]
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
fld dword [esp + 0x4c]
mov dword [eax + 4], edx
fmul dword [esp + 0x10]
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [esp + 0x50]
mov dword [eax + 8], ecx
fmul dword [esp + 0x10]
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x1328]
mov edx, dword [esp + 0x14]
lea eax, [ecx - 1]
cmp ebp, eax
jl 0x10ac6a90
mov esi, dword [edi + 0x132c]
inc edx
dec esi
cmp edx, esi
mov dword [esp + 0x14], edx
jl 0x10ac6a80
mov eax, dword [0x10fcccac]
mov ecx, dword [eax]
push str.Smoothing_Terrain_colors...
push 3
push 2
push eax
call dword [ecx + 0x14]
add esp, 0x10
mov ecx, dword [edi + 0x1314]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x10ac6ec0
jmp 0x10ac6cc0
mov edx, dword [edi + 0x1310]
mov ecx, dword [edi + 0x13e8]
lea esi, [edx + eax*4]
mov edx, dword [esi]
mov ebx, dword [edx + 0x90]
mov ebp, dword [edx + 0x68]
imul ebx, ebx, 0x1c
add ebx, ecx
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
jl 0x10ac6eaa
mov esi, dword [esi]
mov ebp, dword [esi + 0x64]
xor edx, edx
test ebp, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
jl 0x10ac6e8f
jmp 0x10ac6d10
mov edx, dword [esp + 0x1c]
mov edi, edi
mov esi, dword [edi + 0x1310]
mov eax, dword [esi + eax*4]
mov esi, dword [eax + 0x70]
mov ebx, dword [eax + 0x44]
mov ebp, dword [eax + 0x6c]
add esi, ecx
imul esi, dword [ebx + 0x1328]
add esi, ebp
mov ebp, dword [eax + 0x64]
add esi, edx
inc ebp
imul ebp, ecx
mov ecx, dword [esp + 0x2c]
mov eax, esi
shl eax, 4
add eax, ecx
mov ecx, dword [eax]
add ebp, edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
fld dword [esp + 0x54]
mov dword [esp + 0x5c], eax
call fcn.10ddea68
mov ebx, eax
cmp ebx, 0xff
mov ecx, ebx
jle 0x10ac6d71
mov ecx, 0xff
mov edx, dword [esp + 0x20]
fld dword [esp + 0x58]
movzx eax, word [edx + 0x94]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 4]
add eax, ebp
lea eax, [eax + eax*8]
mov byte [edx + eax*4 + 0x1a], cl
call fcn.10ddea68
cmp eax, 0xff
mov dword [esp + 0x24], eax
mov ecx, eax
jle 0x10ac6da7
mov ecx, 0xff
mov eax, dword [edi + 0x1310]
fld dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
movzx eax, word [eax + 0x94]
add eax, ebp
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + edx*4 + 0x19], cl
call fcn.10ddea68
cmp eax, 0xff
mov dword [esp + 0x20], eax
jle 0x10ac6de7
mov dword [esp + 0x20], 0xff
mov ecx, dword [edi + 0x1310]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + edx*4]
movzx ecx, word [ecx + 0x94]
add ecx, ebp
cmp ebx, 0xff
lea edx, [ecx + ecx*8]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x20]
mov byte [ecx + edx*4 + 0x18], al
mov eax, dword [esp + 0x28]
jle 0x10ac6e24
mov ebx, 0xff
mov ecx, dword [esp + 0x24]
cmp ecx, 0xff
mov edx, dword [edi + 0x13f4]
mov byte [edx + esi*4 + 2], bl
jle 0x10ac6e3f
mov ecx, 0xff
cmp eax, 0xff
mov edx, dword [edi + 0x13f4]
mov byte [edx + esi*4 + 1], cl
jle 0x10ac6e55
mov eax, 0xff
mov ecx, dword [edi + 0x13f4]
mov byte [ecx + esi*4], al
mov edx, dword [edi + 0x1310]
mov ecx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 0x64]
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
cmp eax, edx
mov eax, dword [esp + 0x10]
jle 0x10ac6d0a
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 0x1310]
lea esi, [edx + eax*4]
mov edx, dword [esi]
mov ebp, dword [edx + 0x68]
inc ecx
cmp ecx, ebp
mov dword [esp + 0x14], ecx
jle 0x10ac6cf1
inc dword [ebx + 0x18]
mov ecx, dword [edi + 0x1314]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10ac6cc0
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 0
call fcn.1093dd10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.10a33ad0
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret