Function at 0x511720
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa4
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
push ebx
push esi
push edi
jae 0x511759
mov dword [ecx], str.TtSphereTriangle
rdtsc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
lea ecx, [esp + 0x40]
push ecx
add edx, 0x10
push edx
call fcn.00529a50
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
fld dword [esi + 0x10]
fld dword [esi + 0x14]
mov eax, dword [ebx + 8]
fld dword [esi + 0x18]
add edi, 0x50
fld st(0)
add eax, 0x20
fmul dword [eax + 0x20]
mov dword [esp + 0x14], ecx
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 + 0x78]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x7c]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
mov dword [esp + 0x84], 0
fstp dword [esp + 0x80]
fld dword [esi + 0x20]
fld dword [esi + 0x24]
fld dword [esi + 0x28]
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 + 0x88]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x8c]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [esp + 0x90]
mov dword [esp + 0x94], 0
fld dword [esi + 0x30]
lea edx, [esp + 0x58]
fld dword [esi + 0x34]
push edx
fld dword [esi + 0x38]
lea ecx, [esp + 0x7c]
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 + 0x9c]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0xa0]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
lea eax, [esp + 0x4c]
push eax
push ecx
push edi
fstp dword [esp + 0xb0]
mov dword [esp + 0xb4], 0
call fcn.00529f30
mov edx, dword [esp + 0x24]
fld dword [edx + 0xc]
mov dword [esp + 0xc4], eax
fadd dword [esi + 0xc]
mov eax, dword [ebp + 0x10]
add esp, 0x18
fld st(0)
fadd dword [eax + 8]
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x511977
mov ecx, dword [edi]
fld dword [esi + 0xc]
fsub dword [esp + 0x60]
mov dword [esp + 0x10], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x14], edx
fld dword [edi + 8]
fld dword [esp + 0x50]
mov eax, dword [esp + 0x50]
fmul st(2)
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], eax
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
fstp dword [esp + 0x10]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x54]
lea eax, [esp + 0x10]
fmul st(2)
mov dword [esp + 0x28], edx
mov edx, dword [ecx]
push eax
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x5c]
fmul st(2)
fadd st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fstp st(0)
fld dword [esp + 0x64]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
call dword [edx + 4]
jmp 0x511979
fstp st(0)
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x5119a3
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret