Function at 0x505530
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x124
mov eax, dword [0x961870]
push ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push esi
push edi
jae 0x50556e
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 edi, dword [eax]
fld dword [edi + 0x10]
mov eax, dword [eax + 8]
fld dword [edi + 0x14]
add eax, 0x20
fld dword [edi + 0x18]
mov ebx, dword [ebp + 8]
fld st(0)
mov ecx, dword [ebx]
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 + 0x30]
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 + 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]
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x38]
fld dword [edi + 0x20]
fld dword [edi + 0x24]
fld dword [edi + 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 + 0x40]
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 + 0x44]
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 + 0x4c], 0
fstp dword [esp + 0x48]
fld dword [edi + 0x30]
fld dword [edi + 0x34]
fld dword [edi + 0x38]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
lea edx, [ecx + 0x10]
mov dword [esp + 0x24], edx
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x50]
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 + 0x54]
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 eax, dword [ebx + 8]
mov dword [esp + 0x5c], 0
add eax, 0x20
fstp dword [esp + 0x58]
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x18], esi
dec esi
lea ebx, [esi + 1]
cmp ebx, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], esi
jl 0x505847
mov ecx, dword [esp + 0x28]
shr ebx, 2
mov dword [esp + 0x1c], ebx
neg ebx
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [esp + 0xc8]
fld dword [edx]
xor ebx, ebx
fld dword [edx + 4]
fld dword [edx + 8]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [ecx]
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 [esi - 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 [esi - 0x10]
mov dword [esi - 0xc], ebx
fld dword [edx + 0x10]
fld dword [edx + 0x14]
fld dword [edx + 0x18]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esi - 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 [esi - 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 [esi]
mov dword [esi + 4], ebx
fld dword [edx + 0x20]
fld dword [edx + 0x24]
fld dword [edx + 0x28]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esi + 8]
fld st(2)
fmul dword [eax + 4]
add ecx, 0x40
fld st(1)
add esi, 0x40
fmul dword [eax + 0x24]
add edx, 0x40
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esi - 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 [esi - 0x30]
mov dword [esi - 0x2c], ebx
fld dword [edx - 0x10]
fld dword [edx - 0xc]
fld dword [edx - 8]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esi - 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 [esi - 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 [esi - 0x20]
mov dword [esi - 0x1c], ebx
dec dword [esp + 0x1c]
jne 0x5056e1
mov esi, dword [esp + 0x28]
xor ebx, ebx
cmp esi, ebx
jl 0x5058ac
inc esi
mov edi, edi
fld dword [edx]
add ecx, 0x10
fld dword [edx + 4]
add edx, 0x10
dec esi
fld dword [edx - 8]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [ecx - 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 [ecx - 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 [ecx - 8]
mov dword [ecx - 4], ebx
jne 0x505850
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x80], edx
jle 0x5059d8
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add ecx, 0xc
mov edx, eax
mov dword [esp + 0x20], ecx
lea esi, [esp + 0xb0]
add ebx, 0xc
mov dword [esp + 0x1c], edx
jmp 0x5058f0
mov ecx, dword [esp + 0x20]
fld dword [ebx]
fadd dword [edi + 0xc]
lea eax, [esp + 0x90]
push eax
push ecx
lea edx, [esp + 0x38]
fstp dword [esp + 0x20]
push edx
push esi
call fcn.00529f30
fld dword [esp + 0x28]
mov eax, dword [ebp + 0x10]
fadd dword [eax + 8]
add esp, 0x10
fcomp dword [esp + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x5059c3
fld dword [edi + 0xc]
mov ecx, dword [esi + 8]
fsub dword [esp + 0xa0]
mov edx, dword [esp + 0x90]
fld dword [esi]
mov eax, dword [esp + 0x94]
fld dword [esi + 4]
mov dword [esp + 0x68], ecx
fld dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
fmul st(3)
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x78], ecx
fadd st(2)
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x60]
fstp dword [esp + 0x60]
mov dword [esp + 0x74], eax
fld dword [esp + 0x94]
mov eax, dword [ecx]
fmul st(3)
push edx
fadd st(1)
fstp dword [esp + 0x68]
fstp st(0)
fstp st(0)
fld dword [esp + 0x9c]
fmul st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
fstp st(0)
fld dword [esp + 0xa4]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x70]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
add esi, 0x10
add ebx, 0x10
dec eax
mov dword [esp + 0x1c], eax
jne 0x5058f0
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x505a02
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10