Function at 0x505a10
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
push ebx
push esi
push edi
jae 0x505a49
mov dword [ecx], str.TtMultiSphereTriangle
rdtsc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
fld dword [esi + 0x10]
mov eax, dword [eax + 8]
fld dword [esi + 0x14]
mov dword [esp + 0x20], esi
fld dword [esi + 0x18]
add esi, 0x10
fld st(0)
add eax, 0x20
fmul dword [eax + 0x20]
mov ebx, dword [ebp + 8]
fld st(2)
mov ecx, dword [ebx]
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 + 0x10]
fld dword [esi + 0x14]
fld dword [esi + 0x18]
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 + 0x80]
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 + 0x84]
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 + 0x8c], 0
fstp dword [esp + 0x88]
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)
lea edi, [esp + 0xc0]
fld st(3)
mov dword [esp + 0x2c], edi
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x90]
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 + 0x94]
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, [ecx + 0x10]
mov dword [esp + 0x9c], 0
mov dword [esp + 0x24], eax
fstp dword [esp + 0x98]
mov edx, dword [ecx + 0xc]
mov ecx, eax
mov eax, dword [ebx + 8]
add eax, 0x20
mov dword [esp + 0x28], edx
dec edx
lea ebx, [edx + 1]
cmp ebx, 4
mov dword [esp + 0x1c], edx
jl 0x505d43
mov edi, dword [esp + 0x1c]
shr ebx, 2
mov dword [esp + 0x18], ebx
neg ebx
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0xd8]
fld dword [ecx]
xor ebx, ebx
fld dword [ecx + 4]
fld dword [ecx + 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 [edi]
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 [edx - 0x14]
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 [edx - 0x10]
mov dword [edx - 0xc], ebx
fld dword [ecx + 0x10]
fld dword [ecx + 0x14]
fld dword [ecx + 0x18]
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 [edx - 8]
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 [edx - 4]
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 [edx]
mov dword [edx + 4], ebx
fld dword [ecx + 0x20]
fld dword [ecx + 0x24]
fld dword [ecx + 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 [edx + 8]
fld st(2)
fmul dword [eax + 4]
add edi, 0x40
fld st(1)
add edx, 0x40
fmul dword [eax + 0x24]
add ecx, 0x40
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [edx - 0x34]
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 [edx - 0x30]
mov dword [edx - 0x2c], ebx
fld dword [ecx - 0x10]
fld dword [ecx - 0xc]
fld dword [ecx - 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 [edx - 0x28]
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 [edx - 0x24]
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 [edx - 0x20]
mov dword [edx - 0x1c], ebx
dec dword [esp + 0x18]
jne 0x505bdd
mov edx, dword [esp + 0x1c]
xor ebx, ebx
cmp edx, ebx
jl 0x505dac
inc edx
lea ebx, [ebx]
fld dword [ecx]
add edi, 0x10
fld dword [ecx + 4]
add ecx, 0x10
dec edx
fld dword [ecx - 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 [edi - 0x10]
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 [edi - 0xc]
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 [edi - 8]
mov dword [edi - 4], ebx
jne 0x505d50
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
call fcn.00529a50
mov eax, dword [esp + 0x30]
add esp, 8
cmp eax, ebx
jle 0x505ed2
mov edi, dword [esp + 0x24]
lea esi, [esp + 0xc0]
add edi, 0xc
mov dword [esp + 0x1c], eax
fld dword [edi]
mov ebx, dword [esp + 0x20]
fadd dword [ebx + 0xc]
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x34]
push edx
fstp dword [esp + 0x20]
lea eax, [esp + 0x78]
push eax
push esi
call fcn.00529f30
fld dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
fadd dword [ecx + 8]
add esp, 0x10
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x505ebd
fld dword [ebx + 0xc]
mov edx, dword [esi + 8]
fsub dword [esp + 0xb0]
mov eax, dword [esp + 0xa0]
fld dword [esi]
mov ecx, dword [esp + 0xa4]
fld dword [esi + 4]
mov dword [esp + 0x48], edx
fld dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
fmul st(3)
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x54], ecx
fadd st(2)
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
fstp dword [esp + 0x40]
mov dword [esp + 0x58], edx
fld dword [esp + 0xa4]
mov edx, dword [ecx]
fmul st(3)
push eax
fadd st(1)
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld dword [esp + 0xac]
fmul st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0xb4]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x50]
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x1c], eax
jne 0x505de6
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x505efc
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret