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

Disassembly:
mov eax, dword [0x821094]
sub esp, 0x180
test eax, eax
push esi
mov esi, ecx
je 0x4afbce
lea eax, [esp + 0x80]
push 0x104
push eax
push str.D:DevProjectsJMain1SourceVTerrain.cpp
mov dword [0x8210d4], 1
call fcn.004e6240
lea ecx, [esp + 0x80]
push 0x81d
push ecx
push str.Program_runs_to__s__d.
push esi
call fcn.004331c0
add esp, 0x10
mov eax, dword [esi + 0x78]
xor ecx, ecx
test eax, eax
mov dword [esp + 0xc], ecx
jle 0x4afe3a
push ebx
push ebp
push edi
mov edi, dword [esi + 0x74]
xor eax, eax
test edi, edi
mov dword [esp + 0x14], eax
jle 0x4afe27
fild dword [esp + 0x18]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
fstp dword [esp + 0x40]
fild dword [esp + 0x10]
fstp dword [esp + 0x3c]
lea ebp, [eax + 1]
imul edi, ecx
mov dword [esp + 0x10], ebp
add edi, eax
fild dword [esp + 0x10]
push 1
lea edx, [esp + 0x78]
fst dword [esp + 0x38]
fmul dword [esi + 0x7c]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fmul dword [esi + 0x80]
fchs
fst dword [esp + 0x14]
fild dword [esp + 0x18]
fmul dword [esi + 0x7c]
fst dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [esi + 0x80]
fchs
fstp dword [esp + 0x18]
fadd dword [esp + 0x3c]
fadd dword [esp + 0x34]
fmul dword [0x4f1a3c]
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fadd dword [esp + 0x18]
fadd dword [esp + 0x14]
fmul dword [0x4f1a3c]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004af760
mov edx, eax
lea edi, [edi + edi*2]
shl edi, 4
mov eax, dword [edx]
mov ebx, edi
add ebx, dword [esi + 0x2a0]
mov ecx, dword [edx + 4]
fld dword [esp + 0x34]
mov edx, dword [edx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [esi + 0x2a0]
lea ebx, [edi + ebx + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [esi + 0x2a0]
lea ebx, [edi + ebx + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
fmul dword [esi + 0x7c]
fadd dword [esp + 0x38]
fadd dword [esp + 0x30]
fmul dword [0x4f1a3c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x3c]
fmul dword [esi + 0x80]
fchs
fadd dword [esp + 0x14]
fadd dword [esp + 0x10]
fmul dword [0x4f1a3c]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 1
push eax
lea edx, [esp + 0x88]
push ecx
push edx
mov ecx, esi
call fcn.004af760
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
fld dword [esp + 0x24]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x2a0]
fadd dword [edi + eax + 0xc]
fld dword [esp + 0x28]
fadd dword [edi + eax + 0x10]
lea eax, [edi + eax + 0xc]
fstp dword [esp + 0x6c]
fld dword [esp + 0x2c]
fadd dword [eax + 8]
fstp dword [esp + 0x70]
fmul dword [0x4f05b8]
fstp dword [esp + 0x44]
fld dword [esp + 0x6c]
fmul dword [0x4f05b8]
mov ebx, dword [esp + 0x44]
mov dword [eax], ebx
fstp dword [esp + 0x48]
fld dword [esp + 0x70]
fmul dword [0x4f05b8]
mov ebx, dword [esp + 0x48]
mov dword [eax + 4], ebx
fstp dword [esp + 0x4c]
mov ebx, dword [esp + 0x4c]
fld dword [esp + 0x24]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x2a0]
fadd dword [edi + eax + 0x18]
fld dword [esp + 0x28]
fadd dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x18]
fstp dword [esp + 0x60]
fld dword [esp + 0x2c]
fadd dword [eax + 8]
fstp dword [esp + 0x64]
fmul dword [0x4f05b8]
fstp dword [esp + 0x50]
fld dword [esp + 0x60]
fmul dword [0x4f05b8]
mov ebx, dword [esp + 0x50]
mov dword [eax], ebx
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul dword [0x4f05b8]
mov ebx, dword [esp + 0x54]
mov dword [eax + 4], ebx
fstp dword [esp + 0x58]
mov ebx, dword [esp + 0x58]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x2a0]
lea eax, [edi + eax + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edi, dword [esi + 0x74]
mov ecx, dword [esp + 0x18]
mov eax, ebp
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4afc0a
mov eax, dword [esi + 0x78]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x4afbe2
pop edi
pop ebp
pop ebx
mov ecx, esi
call fcn.004afe80
test al, al
jne 0x4afe67
push str.GenerateNormal__:_Error_Occurs_
push esi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop esi
add esp, 0x180
ret
mov al, 1
pop esi
add esp, 0x180
ret