Function at 0x514ad0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x104
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
push ebx
push esi
push edi
jae 0x514b09
mov dword [ecx], str.LtHeightField
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
je 0x514b2b
mov ecx, dword [ebp + 8]
push eax
push ebx
push edi
push ecx
call fcn.005142f0
mov ecx, dword [0x96186c]
add esp, 0x10
cmp ecx, dword [0x961870]
jae 0x514b4f
mov dword [ecx], str.StGetSpheres
rdtsc
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [edi]
mov edx, eax
mov eax, dword [edx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 8]
add eax, 0x20
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.0054c890
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x9617f0]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
shl eax, 4
mov dword [esp + 0x14], eax
add eax, 0xf
and eax, 0xfffffff0
cmp eax, edx
jle 0x514ba9
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
jmp 0x514bc1
mov ebx, dword [ecx + 8]
mov dword [esp + 0x10], ebx
add ebx, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
fld dword [ebx + 0x10]
mov dword [esp + 0x10], eax
fld dword [ebx + 0x14]
mov eax, dword [edi + 8]
fld dword [ebx + 0x18]
add eax, 0x20
fld st(0)
mov edx, dword [esi]
fmul dword [eax + 8]
mov ecx, esi
fld st(2)
fmul dword [eax + 4]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fstp dword [esp + 0x30]
fld st(0)
fmul dword [eax + 0x18]
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fld st(3)
fmul dword [eax + 0x10]
faddp st(1)
fstp dword [esp + 0x34]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x24]
faddp st(1)
fxch st(1)
fmul dword [eax + 0x20]
mov eax, dword [esp + 0x10]
push eax
faddp st(1)
fstp dword [esp + 0x3c]
call dword [edx + 0x2c]
mov ecx, dword [0x961870]
mov esi, eax
mov eax, dword [0x96186c]
cmp eax, ecx
jae 0x514c51
mov ecx, eax
mov dword [ecx], str.StCastSpheres
rdtsc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0xb4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xf0], ecx
mov ecx, dword [ebx + 0x1c]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov dword [esp + 0xf4], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xf8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xa4], 0
mov dword [esp + 0xc4], 0x3f800000
mov dword [esp + 0xc0], 0x65c650
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], eax
jle 0x514e28
fld dword [esi]
mov edx, dword [ebp + 8]
fld dword [esi + 4]
mov eax, dword [edx + 8]
fld dword [esi + 8]
mov ecx, dword [esi + 0xc]
fld dword [esp + 0x60]
add eax, 0x20
fmul st(1)
mov dword [esp + 0x8c], 0
fld dword [esp + 0x50]
mov dword [esp + 0xb0], ecx
fmul st(3)
mov dword [esp + 0x9c], 0
faddp st(1)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esp + 0x80]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x84]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x48]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x78]
fstp dword [esp + 0x88]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x30]
fadd dword [esp + 0x80]
fstp dword [esp + 0x90]
fld dword [esp + 0x34]
fadd dword [esp + 0x84]
fstp dword [esp + 0x94]
fld dword [esp + 0x38]
fadd dword [esp + 0x88]
fstp dword [esp + 0x98]
fld dword [esi]
fld dword [esi + 4]
fld dword [esi + 8]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0xd0]
fld st(0)
fmul dword [eax + 0x24]
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fld st(3)
fmul dword [eax + 4]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0xd4]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
mov eax, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [esp + 0xe0], eax
fstp dword [esp + 0xd8]
lea eax, [esp + 0xc0]
push eax
push edi
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0xe8], 0
call dword [edx + 0x2c]
add esi, 0x10
dec ebx
jne 0x514cc4
mov eax, dword [esp + 0x14]
mov ecx, dword [0x9617f0]
add eax, 0xf
and eax, 0xfffffff0
je 0x514e52
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x10]
cmp esi, edx
je 0x514e49
test edx, edx
jne 0x514e52
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x514e62
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x514e8c
mov dword [ecx], 0x65b984
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret