Function at 0x5114c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
mov eax, dword [0x961870]
push ebx
push esi
mov esi, dword [0x96186c]
cmp esi, eax
push edi
jae 0x5114fa
mov dword [esi], str.TtSphereTriangle
rdtsc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
add esi, 0xc
mov dword [0x96186c], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fld dword [esi + 0x10]
fld dword [esi + 0x14]
mov edi, dword [eax + 8]
fld dword [esi + 0x18]
mov ebx, dword [eax]
fld st(0)
mov eax, dword [edx + 8]
fmul dword [eax + 0x40]
add edi, 0x50
add 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 + 0x60]
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 + 0x64]
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 + 0x6c], 0
fstp dword [esp + 0x68]
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 + 0x70]
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 + 0x74]
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 + 0x7c], 0
fstp dword [esp + 0x78]
fld dword [esi + 0x30]
fld dword [esi + 0x34]
fld dword [esi + 0x38]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
lea edx, [esp + 0x40]
fmul dword [eax + 0x10]
push edx
add ecx, 0x10
push ecx
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]
lea eax, [esp + 0x68]
push eax
push edi
fstp dword [esp + 0x98]
mov dword [esp + 0x9c], 0
call fcn.00529f30
fld dword [ebx + 0xc]
fadd dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add esp, 0x10
fld st(0)
fadd dword [ecx + 8]
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x5116ea
mov edx, dword [edi]
fld dword [esi + 0xc]
fsub dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
fld dword [edi + 8]
fld dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fmul st(2)
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
fadd dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
fld dword [esp + 0x44]
lea eax, [esp + 0x10]
fmul st(2)
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
push eax
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x4c]
fmul st(2)
fadd st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fstp st(0)
fld dword [esp + 0x54]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
call dword [edx + 4]
jmp 0x5116ec
fstp st(0)
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x511716
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 0x10