Function at 0x52bd40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x77961e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
fldz
mov dword [esi + 0x3c], ebx
fst dword [esi + 0x5c]
fst dword [esi + 0x60]
fst dword [esi + 0x64]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
fst dword [esi + 0x8c]
fst dword [esi + 0x90]
fst dword [esi + 0x94]
fst dword [esi + 0x98]
fst dword [esi + 0x9c]
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
fst dword [esi + 0xc4]
fst dword [esi + 0xc8]
fst dword [esi + 0xcc]
fstp dword [esi + 0xd0]
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov eax, 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x154]
mov byte [esp + 0x2c], 0xa
call fcn.0052a250
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x180], ebx
mov dword [esi + 0x184], ebx
mov dword [esi + 0x188], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x190], ebx
mov dword [esi + 0x194], ebx
mov dword [esi + 0x198], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1e0], ebx
mov dword [esi + 0x1e4], ebx
mov dword [esi + 0x1e8], ebx
mov dword [esi + 0x1ec], ebx
fldz
mov dword [esi + 0x200], ebx
fst dword [esi + 0x204]
fst dword [esi + 0x208]
fstp dword [esi + 0x20c]
mov dword [esi + 0x210], ebx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov dword [esi + 0x234], ebx
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x250], ebx
mov dword [esi + 0x254], ebx
mov dword [esi + 0x258], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], ebx
mov dword [esi + 0x278], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], ebx
mov dword [esi + 0x288], ebx
mov dword [esi + 0x28c], ebx
mov dword [esi + 0x290], ebx
mov dword [esi + 0x294], ebx
lea ecx, [esi + 0x29c]
call fcn.0052b0f0
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], ebx
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2d0], ebx
lea ecx, [esi + 0x2d4]
call fcn.0052b640
mov dword [esi + 0x2fc], ebx
mov dword [esi + 0x308], ebx
mov dword [esi + 0x30c], ebx
mov dword [esi + 0x310], ebx
mov dword [esi + 0x314], ebx
mov dword [esi + 0x320], ebx
mov dword [esi + 0x324], ebx
lea edi, [esi + 0x328]
mov ecx, 0x100
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 0x740], ebx
mov dword [esi + 0x744], ebx
mov dword [esi + 0x748], ebx
mov dword [esi + 0x74c], ebx
mov dword [esi + 0x750], ebx
mov dword [esi + 0x754], ebx
mov dword [esi + 0x758], ebx
mov dword [esi + 0x75c], ebx
mov dword [esi + 0x760], ebx
mov dword [esi + 0x764], ebx
mov dword [esi + 0x768], ebx
mov dword [esi + 0x76c], ebx
mov dword [esi + 0x77c], ebx
mov dword [esi + 0x780], ebx
mov dword [esi + 0x784], ebx
mov dword [esi + 0x788], ebx
mov dword [esi + 0x794], ebx
mov dword [esi + 0x798], ebx
mov dword [esi + 0x79c], ebx
mov dword [esi + 0x7a0], ebx
fldz
mov dword [esi + 0x7a4], ebx
mov dword [esi + 0x7a8], ebx
fst dword [esi + 0x7ac]
fst dword [esi + 0x7b0]
mov dword [esi + 0x7b4], ebx
mov dword [esi + 0x7b8], ebx
mov dword [esi + 0x7bc], ebx
mov dword [esi + 0x7c0], ebx
fst dword [esi + 0x7c4]
fst dword [esi + 0x7c8]
lea ecx, [esi + 0x838]
fst dword [esi + 0x7cc]
fst dword [esi + 0x7d0]
fst dword [esi + 0x7d4]
fst dword [esi + 0x7d8]
fst dword [esi + 0x7dc]
fst dword [esi + 0x7e0]
fst dword [esi + 0x7ec]
fst dword [esi + 0x7f0]
fst dword [esi + 0x7f4]
fst dword [esi + 0x7f8]
fst dword [esi + 0x7fc]
fst dword [esi + 0x800]
fst dword [esi + 0x804]
fstp dword [esi + 0x808]
mov dword [esi + 0x80c], ebx
mov dword [esi + 0x810], ebx
mov dword [esi + 0x814], ebx
mov dword [esi + 0x818], ebx
call fcn.00517020
mov dword [esi + 0x9ac], ebx
mov dword [esi + 0x9b0], ebx
mov dword [esi + 0x9b4], ebx
mov dword [esi + 0x9b8], ebx
mov dword [esi + 0x9bc], ebx
mov dword [esi + 0x9c0], ebx
mov dword [esi + 0x9c4], ebx
mov dword [esi + 0x9c8], ebx
mov dword [esi + 0x9cc], ebx
mov dword [esi + 0x9d0], ebx
mov dword [esi + 0x9d4], ebx
mov dword [esi + 0x9d8], ebx
push ebx
push 0x57
push str..CTerrain.cpp
xor eax, eax
lea edi, [esi + 0x9dc]
mov ecx, 0x400
push 0x14
rep stosd dword es:[edi], eax
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x28], 0x25
je 0x52c252
mov ecx, eax
call fcn.005fb4c0
jmp 0x52c254
xor eax, eax
fldz
mov edi, 1
fstp dword [esi + 0x948]
mov dword [esi + 0x14c], eax
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0x944], ebx
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1d8], ebx
mov byte [esi + 0x1dc], bl
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x93c], edi
mov dword [esi + 0x938], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x964], edi
mov dword [esi + 0x968], edi
mov dword [esi + 0x96c], ebx
mov dword [esi + 0x73c], ebx
mov ecx, dword [0x83b0f4]
mov dword [esi + 0x324], ecx
push 2
mov ecx, esi
mov byte [esp + 0x2c], 0x24
mov dword [esi + 0x950], ebx
mov dword [esi + 0x954], ebx
mov dword [esi + 0x958], 0xffffffff
mov dword [esi + 0x970], 0x7d91
call fcn.00527ff0
xor edx, edx
lea ecx, [edi + 7]
call fcn.004df5b0
mov ecx, eax
call fcn.004cd610
mov dword [esi + 0x95c], eax
call fcn.004ba790
push ebx
mov edx, str.MaxSlope
mov ecx, str.Terrain
mov dword [esi + 0x81c], eax
mov dword [esi + 0x820], ebx
mov dword [esi + 0x824], ebx
mov dword [esi + 0x300], ebx
mov dword [esi + 0x828], ebx
mov dword [esi + 0x940], ebx
mov dword [esi + 0x974], ebx
mov dword [esi + 0x7e4], ebx
mov dword [esi + 0x7e8], ebx
mov dword [esi + 0x82c], ebx
mov dword [esi + 0x830], ebx
mov dword [esi + 0x78c], ebx
mov dword [esi + 0x790], ebx
mov dword [esi + 0x834], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x21dc], ebx
mov dword [esi + 0x21e0], edi
mov dword [esi + 0x21e4], ebx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x38], 0x100
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x22ec], ebx
mov dword [esi + 0x298], ebx
mov dword [esi + 0x99c], ebx
mov dword [esi + 0xb0], ebx
call fcn.004b8a10
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esi + 0x978]
fmul dword [0x83cf30]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call sub.MSVCR80.dll__CItan
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esi + 0x97c]
push ebx
mov edx, str.MaxHeight
mov ecx, str.Terrain
call fcn.004b8a10
fstp dword [esi + 0x980]
push ebx
mov edx, str.MinHeight
mov ecx, str.Terrain
call fcn.004b8a10
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esi + 0x984]
fld dword [esi + 0x980]
fstp dword [esi + 0xd4]
fstp dword [esi + 0xd8]
fld dword [esi + 0x980]
fsub dword [0x861cac]
fdiv dword [0x83cf50]
call fcn.007364a0
push ebx
mov edx, str.SmoothBrushWeightsNormal
mov ecx, str.WorldEditMisc
mov dword [esi + 0x988], eax
call fcn.004b8a10
fstp dword [esi + 0x98c]
push edi
mov edx, str.SmoothBrushWeightsNormal
mov ecx, str.WorldEditMisc
call fcn.004b8a10
fstp dword [esi + 0x990]
push ebx
mov edx, str.SmoothBrushWeightsReverse
mov ecx, str.WorldEditMisc
call fcn.004b8a10
fstp dword [esi + 0x994]
push edi
mov edx, str.SmoothBrushWeightsReverse
mov ecx, str.WorldEditMisc
call fcn.004b8a10
fstp dword [esi + 0x998]
push ebx
push str.OccluderColor
mov edx, str.Occlusion
lea ecx, [esp + 0x20]
call fcn.004bf5f0
mov edx, dword [eax]
mov dword [esi + 0x3c], edx
push ebx
mov edx, str.OccluderFadeTime
mov ecx, str.Occlusion
call fcn.004b8a40
push ebx
push str.ShadowImageColor
mov edx, str.FogOfWar
lea ecx, [esp + 0x20]
mov dword [esi + 0x40], eax
call fcn.004bf5f0
mov eax, dword [eax]
push ebx
mov edx, str.left
mov ecx, str.UnpathableMargins
mov dword [esi + 0x2fc], eax
call fcn.004b8a40
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ebx
mov edx, str.right
fmul qword [0x7a45f8]
mov ecx, str.UnpathableMargins
fstp dword [esi + 0x800]
call fcn.004b8a40
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ebx
mov edx, str.bottom
fmul qword [0x7a45f8]
mov ecx, str.UnpathableMargins
fstp dword [esi + 0x808]
call fcn.004b8a40
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x7a45f8]
push ebx
mov edx, 0x7baf28
mov ecx, str.UnpathableMargins
fstp dword [esi + 0x7fc]
call fcn.004b8a40
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x7a45f8]
fstp dword [esi + 0x804]
call fcn.00495400
mov ecx, esi
mov dword [esi + 0x960], eax
call fcn.00592020
mov ecx, esi
call fcn.005a2ee0
mov ecx, esi
call fcn.005525c0
mov ecx, esi
call fcn.00552f70
mov ecx, esi
call fcn.00590680
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret