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

Disassembly:
mov eax, dword [0x821094]
sub esp, 0x16c
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
mov esi, ecx
je 0x4b021c
lea eax, [esp + 0x74]
push 0x104
push eax
push str.D:DevProjectsJMain1SourceVTerrain.cpp
mov dword [0x8210d4], 1
call fcn.004e6240
lea ecx, [esp + 0x74]
push 0x8c3
push ecx
push str.Program_runs_to__s__d.
push esi
call fcn.004331c0
add esp, 0x10
mov ecx, dword [esi + 0x2b0]
mov dword [esp + 0x1c], ebx
mov eax, dword [ecx + 0x5c30]
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x18], edx
mov edx, eax
fild qword [esp + 0x18]
shr edx, 8
and edx, 0xff
mov dword [esp + 0x1c], ebx
fmul dword [0x4f0644]
mov dword [esp + 0x18], edx
and eax, 0xff
fstp dword [esp + 0x3c]
fild qword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x5c34]
mov dword [esp + 0x1c], ebx
mov edx, eax
fmul dword [0x4f0644]
shr edx, 0x10
and edx, 0xff
fstp dword [esp + 0x30]
fild qword [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov edx, eax
and eax, 0xff
fmul dword [0x4f0644]
shr edx, 8
and edx, 0xff
fstp dword [esp + 0x4c]
fild qword [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
fmul dword [0x4f0644]
fstp dword [esp + 0x34]
fild qword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x5f3b]
mov dword [esp + 0x1c], ebx
fmul dword [0x4f0644]
mov dl, byte [eax + 0x62]
test dl, dl
fstp dword [esp + 0x38]
fild qword [esp + 0x18]
fmul dword [0x4f0644]
fstp dword [esp + 0x50]
jne 0x4b0383
fld dword [esp + 0x3c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4b030e
fld dword [esp + 0x3c]
jmp 0x4b0312
fld dword [esp + 0x30]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x4b033e
fld dword [esp + 0x3c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4b0336
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
jmp 0x4b033e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
fld dword [esp + 0x34]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x4b0353
fld dword [esp + 0x34]
jmp 0x4b0357
fld dword [esp + 0x38]
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x4b0383
fld dword [esp + 0x34]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x4b037b
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], edx
jmp 0x4b0383
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
add ecx, 0x5c38
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x30], ecx
call fcn.004ee078
fld dword [esp + 0x24]
fchs
fstp dword [esp + 0x40]
fld dword [esp + 0x28]
mov eax, dword [esp + 0x40]
fchs
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x78]
inc eax
fld dword [esp + 0x2c]
inc ecx
imul eax, ecx
fchs
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
shl eax, 2
push eax
mov dword [esp + 0x30], edx
call dword [0x4f01f4]
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x58], ebp
jne 0x4b0423
push str.LightTerrain__:_Error_Occurs_
push esi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
fld dword [esp + 0x28]
fcomp dword [0x4f0594]
push edi
fnstsw ax
test ah, 0x41
jne 0x4b045a
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x78]
inc ecx
inc edx
imul ecx, edx
shl ecx, 2
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4b0667
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
mov dword [esp + 0x18], ecx
fsubr dword [0x4f0590]
fsqrt
fld dword [0x4f0590]
fdiv st(1)
fmul dword [esi + 0x7c]
fmul dword [0x4f05b8]
fstp dword [esp + 0x14]
fld dword [esp + 0x2c]
fdiv st(1)
fstp dword [esp + 0x60]
fstp st(0)
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
inc eax
test eax, eax
fmul dword [esi + 0x7c]
fstp dword [esp + 0x64]
fld dword [esi + 0x80]
fimul dword [esp + 0x18]
fstp dword [esp + 0x1c]
jle 0x4b0665
mov dword [esp + 0x10], 0
lea eax, [ecx + 1]
xor edi, edi
test eax, eax
mov dword [esp + 0x58], edi
jle 0x4b064f
fild dword [esp + 0x10]
fstp dword [esp + 0x68]
fild dword [esp + 0x58]
imul eax, ebx
fmul dword [esi + 0x7c]
fstp dword [esp + 0x44]
mov ecx, dword [esi + 0x29c]
add eax, edi
mov dword [esp + 0x18], 0
fld dword [ecx + eax*4]
fstp dword [esp + 0x48]
fld dword [esp + 0x68]
fmul dword [esi + 0x7c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x44]
fcomp dword [0x4f0400]
fnstsw ax
test ah, 0x41
jne 0x4b060c
fld dword [esp + 0x44]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 1
je 0x4b060c
fld dword [esp + 0x4c]
fcomp dword [0x4f0400]
fnstsw ax
test ah, 1
je 0x4b060c
fld dword [esp + 0x1c]
fchs
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 1
je 0x4b060c
fld dword [esp + 0x48]
fcomp dword [esi + 0x2ac]
fnstsw ax
test ah, 1
je 0x4b060c
fld dword [esp + 0x28]
fmul dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
push 1
mov ecx, esi
fstp dword [esp + 0x74]
fld dword [esp + 0x34]
fmul dword [esp + 0x18]
fstp dword [esp + 0x78]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x74]
fadd dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
fstp dword [esp + 0x4c]
fld dword [esp + 0x78]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
push edx
push eax
call fcn.004af510
fld dword [esp + 0x48]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4b05f5
fsub dword [esp + 0x48]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4b05f5
fst dword [esp + 0x18]
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 0x41
je 0x4b060c
jmp 0x4b05f7
fstp st(0)
fld dword [esp + 0x44]
fcomp dword [0x4f0400]
fnstsw ax
test ah, 0x41
je 0x4b0521
fld dword [esp + 0x18]
fdiv dword [esp + 0x60]
fsubr dword [0x4f0590]
fcom dword [0x4f0400]
fnstsw ax
test ah, 1
je 0x4b062f
fstp st(0)
fld dword [0x4f0400]
mov ecx, dword [esi + 0x74]
inc ecx
imul ecx, ebx
add ecx, edi
inc edi
mov dword [esp + 0x58], edi
fstp dword [ebp + ecx*4]
mov ecx, dword [esi + 0x74]
lea eax, [ecx + 1]
cmp edi, eax
jl 0x4b04dc
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x78]
inc ebx
dec eax
inc edx
mov dword [esp + 0x10], eax
cmp ebx, edx
jl 0x4b04c3
xor ebx, ebx
mov eax, dword [esi + 0x78]
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x18], edx
jle 0x4b0b34
jmp 0x4b067c
xor ebx, ebx
mov eax, dword [esi + 0x74]
mov dword [esp + 0x58], ebx
test eax, eax
jle 0x4b0b24
mov ecx, eax
imul ecx, edx
add ecx, ebx
inc eax
imul eax, edx
add eax, ebx
mov edx, dword [esi + 0x2a0]
fld dword [ebp + eax*4]
lea ebp, [ecx + ecx*2]
shl ebp, 4
mov eax, ebp
add eax, edx
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
fmul dword [esp + 0x30]
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x2c]
faddp st(1)
fcom dword [0x4f0400]
fnstsw ax
test ah, 1
je 0x4b06f1
fstp st(0)
fld dword [0x4f0400]
fmulp st(1)
fld st(0)
fmul dword [esp + 0x38]
fadd dword [esp + 0x40]
fstp dword [esp + 0x10]
fld st(0)
rcr al, 0x4c
and al, 0x3c
fadd dword [esp + 0x34]
fstp dword [esp + 0x14]
fmul dword [esp + 0x54]
fadd dword [esp + 0x50]
fld dword [esp + 0x10]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0730
mov dword [esp + 0x10], 0x3f800000
fld dword [esp + 0x14]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0749
mov dword [esp + 0x14], 0x3f800000
fcom dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b075e
fstp st(0)
fld dword [0x4f0590]
fld dword [esp + 0x10]
fmul dword [0x4f1ae4]
lea edi, [ecx + ecx*2]
shl edi, 6
call fcn.004ecc00
fld dword [esp + 0x14]
fmul dword [0x4f1ae4]
mov ebx, eax
shl ebx, 8
call fcn.004ecc00
fmul dword [0x4f1ae4]
or ebx, eax
shl ebx, 8
call fcn.004ecc00
mov ecx, dword [esi + 0x2e0]
or ebx, eax
mov eax, dword [esp + 0x58]
mov dword [edi + ecx + 0x10], ebx
mov edx, dword [esi + 0x74]
inc edx
mov ecx, dword [esi + 0x2a0]
imul edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x5c]
fld dword [eax + edx*4 + 4]
lea edx, [ecx + ebp + 0xc]
mov eax, dword [ecx + ebp + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x24], edx
fld dword [esp + 0x24]
fmul dword [esp + 0x30]
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x2c]
faddp st(1)
fcom dword [0x4f0400]
fnstsw ax
test ah, 1
je 0x4b080b
fstp st(0)
fld dword [0x4f0400]
fmulp st(1)
fld st(0)
fmul dword [esp + 0x38]
fadd dword [esp + 0x40]
fstp dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x3c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x14]
fmul dword [esp + 0x54]
fadd dword [esp + 0x50]
fld dword [esp + 0x10]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b084a
mov dword [esp + 0x10], 0x3f800000
fld dword [esp + 0x14]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0863
mov dword [esp + 0x14], 0x3f800000
fcom dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0878
fstp st(0)
fld dword [0x4f0590]
fld dword [esp + 0x10]
fmul dword [0x4f1ae4]
call fcn.004ecc00
fld dword [esp + 0x14]
fmul dword [0x4f1ae4]
mov ebx, eax
shl ebx, 8
call fcn.004ecc00
fmul dword [0x4f1ae4]
or ebx, eax
shl ebx, 8
call fcn.004ecc00
mov edx, dword [esp + 0x18]
or ebx, eax
mov eax, dword [esi + 0x2e0]
mov dword [edi + eax + 0x30], ebx
mov ecx, dword [esi + 0x74]
inc ecx
lea eax, [edx + 1]
imul ecx, eax
mov eax, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x5c]
fld dword [eax + ecx*4]
mov ecx, dword [esi + 0x2a0]
lea edx, [ecx + ebp + 0x18]
mov eax, dword [ecx + ebp + 0x18]
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x24], edx
fld dword [esp + 0x24]
fmul dword [esp + 0x30]
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x2c]
faddp st(1)
fcom dword [0x4f0400]
fnstsw ax
test ah, 1
je 0x4b0923
fstp st(0)
fld dword [0x4f0400]
fmulp st(1)
fld st(0)
fmul dword [esp + 0x38]
fadd dword [esp + 0x40]
fstp dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x3c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x14]
fmul dword [esp + 0x54]
fadd dword [esp + 0x50]
fld dword [esp + 0x10]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0962
mov dword [esp + 0x10], 0x3f800000
fld dword [esp + 0x14]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b097b
mov dword [esp + 0x14], 0x3f800000
fcom dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0990
fstp st(0)
fld dword [0x4f0590]
fld dword [esp + 0x10]
fmul dword [0x4f1ae4]
call fcn.004ecc00
fld dword [esp + 0x14]
fmul dword [0x4f1ae4]
mov ebx, eax
shl ebx, 8
call fcn.004ecc00
fmul dword [0x4f1ae4]
or ebx, eax
shl ebx, 8
call fcn.004ecc00
or ebx, eax
mov eax, dword [esi + 0x2e0]
mov dword [edi + eax + 0x50], ebx
mov ecx, dword [esi + 0x2e0]
mov ebx, dword [esp + 0x58]
mov edx, dword [edi + ecx + 0x30]
lea eax, [edi + ecx]
mov dword [eax + 0x70], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
inc ecx
lea eax, [edx + 1]
imul ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, ebx
fld dword [eax + ecx*4 + 4]
mov ecx, dword [esi + 0x2a0]
lea edx, [ecx + ebp + 0x24]
mov eax, dword [ecx + ebp + 0x24]
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x24], edx
fld dword [esp + 0x24]
fmul dword [esp + 0x30]
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x2c]
faddp st(1)
fcom dword [0x4f0400]
fnstsw ax
test ah, 1
je 0x4b0a4c
fstp st(0)
fld dword [0x4f0400]
fmulp st(1)
fld st(0)
fmul dword [esp + 0x38]
fadd dword [esp + 0x40]
fstp dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x3c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x14]
fmul dword [esp + 0x54]
fadd dword [esp + 0x50]
fld dword [esp + 0x10]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0a8b
mov dword [esp + 0x10], 0x3f800000
fld dword [esp + 0x14]
fcomp dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0aa4
mov dword [esp + 0x14], 0x3f800000
fcom dword [0x4f0590]
fnstsw ax
test ah, 0x41
jne 0x4b0ab9
fstp st(0)
fld dword [0x4f0590]
fld dword [esp + 0x10]
fmul dword [0x4f1ae4]
call fcn.004ecc00
fld dword [esp + 0x14]
fmul dword [0x4f1ae4]
mov ebp, eax
shl ebp, 8
call fcn.004ecc00
fmul dword [0x4f1ae4]
or ebp, eax
shl ebp, 8
call fcn.004ecc00
or ebp, eax
mov eax, dword [esi + 0x2e0]
mov dword [edi + eax + 0x90], ebp
mov ecx, dword [esi + 0x2e0]
add edi, ecx
mov ebp, dword [esp + 0x5c]
inc ebx
mov edx, dword [edi + 0x50]
mov dword [esp + 0x58], ebx
mov dword [edi + 0xb0], edx
mov eax, dword [esi + 0x74]
mov edx, dword [esp + 0x18]
cmp ebx, eax
jl 0x4b068b
mov eax, dword [esi + 0x78]
inc edx
cmp edx, eax
mov dword [esp + 0x18], edx
jl 0x4b067a
push ebp
call dword [0x4f01b4]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret