Function at 0x510310
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
push ebx
push esi
push edi
jae 0x510349
mov dword [ecx], str.TtSphereBox
rdtsc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
add eax, 0x50
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x24], eax
call fcn.0054ce30
fld dword [esp + 0x50]
mov ecx, dword [esi]
fabs
fld dword [esp + 0x54]
mov edi, dword [edi]
fabs
fstp dword [esp + 0x34]
fld dword [esp + 0x58]
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x5c]
fabs
fld st(1)
fcomp dword [ecx + 0x10]
fnstsw ax
test ah, 5
jp 0x5103b0
fld st(1)
fstp dword [esp + 0x40]
jmp 0x5103b7
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x40], edx
fld dword [esp + 0x34]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 5
jp 0x5103cf
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
jmp 0x5103d6
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x44], edx
fld dword [esp + 0x38]
fcomp dword [ecx + 0x18]
fnstsw ax
test ah, 5
jp 0x5103ee
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
jmp 0x5103f5
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x48], edx
fcom dword [ecx + 0x1c]
fnstsw ax
test ah, 5
jp 0x510403
fld st(0)
jmp 0x510406
fld dword [ecx + 0x1c]
fld dword [esp + 0x40]
fsub st(3)
fstp dword [esp + 0x20]
fld dword [esp + 0x44]
fsub dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [esp + 0x48]
fsub dword [esp + 0x38]
fstp dword [esp + 0x28]
fsubrp st(1)
fld dword [esp + 0x20]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x51043f
mov dl, 1
jmp 0x510441
xor dl, dl
fld dword [esp + 0x24]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x510456
mov bl, 1
jmp 0x510458
xor bl, bl
fld dword [esp + 0x28]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x51046d
mov cl, 1
jmp 0x51046f
xor cl, cl
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x510480
mov al, 1
jmp 0x510482
xor al, al
shl ecx, 1
shl ebx, 2
neg edx
or ecx, ebx
shl edx, 3
or ecx, edx
or ecx, eax
test cl, 0xe
je 0x5105a2
fstp st(0)
mov eax, dword [esi]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fsqrt
fld dword [0x6419bc]
fdiv st(1)
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
fadd dword [edi + 0xc]
fsubp st(1)
fld st(0)
fcomp dword [eax + 8]
fnstsw ax
test ah, 0x41
je 0x5106fd
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
and ecx, 0x80000000
xor edx, ecx
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
mov edx, dword [esp + 0x54]
fchs
and edx, 0x80000000
xor eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
mov eax, dword [esp + 0x58]
fchs
and eax, 0x80000000
xor edx, eax
mov eax, dword [esi + 8]
add eax, 0x20
mov dword [esp + 0x28], edx
fld dword [esp + 0x28]
fchs
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)
fstp dword [esp + 0x70]
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)
fstp dword [esp + 0x74]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
mov dword [esp + 0x7c], 0
faddp st(1)
fstp dword [esp + 0x78]
jmp 0x51069f
mov edx, dword [esi]
fsub dword [edx + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x34]
fsub dword [edx + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x38]
fsub dword [edx + 0x18]
fld dword [esp + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x510601
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x510639
mov eax, dword [esi + 8]
fstp st(0)
mov esi, dword [eax + 0x20]
fld dword [esp + 0x14]
xor ecx, ecx
add eax, 0x20
mov dword [esp + 0x70], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x74], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x78], esi
mov eax, dword [eax + 0xc]
jmp 0x51065c
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x510639
mov eax, dword [esi + 8]
fstp st(0)
mov esi, dword [eax + 0x30]
fld dword [esp + 0x18]
add eax, 0x30
mov dword [esp + 0x70], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x74], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x78], esi
mov eax, dword [eax + 0xc]
mov ecx, 1
jmp 0x51065c
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x40]
add esi, 0x40
mov dword [esp + 0x70], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xc]
mov ecx, 2
fld dword [esp + ecx*4 + 0x50]
mov dword [esp + 0x7c], eax
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x510699
fld dword [esp + 0x70]
fchs
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fchs
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fchs
fstp dword [esp + 0x7c]
fsub dword [edx + 0xc]
fsub dword [edi + 0xc]
fld dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
fld dword [eax + 8]
fld st(2)
mov ecx, dword [ebp + 0x14]
fchs
mov eax, dword [ecx]
fsub st(2)
lea edx, [esp + 0x60]
fld dword [esp + 0x70]
push edx
fmul st(1)
fadd dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x78]
fmul st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x68]
fld dword [esp + 0x7c]
fmul st(1)
fadd st(2)
fstp dword [esp + 0x6c]
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [esp + 0x70]
call dword [eax + 4]
jmp 0x5106ff
fstp st(0)
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x510729
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
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