Function at 0x512240
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 0x512279
mov dword [ecx], str.TtSphereCapsule
rdtsc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x84], ecx
fld dword [edi + 0x10]
fld dword [edi + 0x14]
add esi, 0x50
fld dword [edi + 0x18]
add eax, 0x20
fld st(2)
lea ecx, [esp + 0x30]
fmul dword [eax]
push ecx
fld st(1)
lea edx, [esp + 0x54]
fmul dword [eax + 0x20]
push edx
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x48]
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 + 0x4c]
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 + 0x54], 0
fstp dword [esp + 0x50]
fld dword [edi + 0x20]
fld dword [edi + 0x24]
fld dword [edi + 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 [esp + 0x58]
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 + 0x5c]
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 + 0x64], 0
lea eax, [esp + 0x48]
fstp dword [esp + 0x60]
push eax
push esi
call fcn.005298f0
fld dword [esi]
fsub dword [esp + 0x40]
mov ecx, dword [ebp + 0x10]
add esp, 0x10
fstp dword [esp + 0x20]
fld dword [esi + 4]
fsub dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [esi + 8]
fsub dword [esp + 0x38]
fstp dword [esp + 0x28]
fld dword [esi + 0xc]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x2c]
fld dword [ebx + 0xc]
fadd dword [edi + 0xc]
fld st(0)
fadd dword [ecx + 8]
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)
fstp dword [esp + 0x18]
fld st(0)
fmul st(1)
fld dword [esp + 0x18]
fcompp
fnstsw ax
fstp st(0)
test ah, 1
je 0x51257c
fld dword [esp + 0x18]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jne 0x512415
fld dword [esp + 0x18]
mov edx, dword [esp + 0x20]
fsqrt
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
fld dword [esp + 0x2c]
jmp 0x5124bb
fld dword [0x641de0]
xor ecx, ecx
fld dword [esp + 0x50]
mov edx, 1
fsub dword [esp + 0x40]
mov ebx, 2
fstp dword [esp + 0x20]
fld dword [esp + 0x54]
fsub dword [esp + 0x44]
fstp dword [esp + 0x24]
fld dword [esp + 0x58]
fsub dword [esp + 0x48]
fstp dword [esp + 0x28]
fld dword [esp + 0x5c]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x20]
fabs
fld dword [esp + 0x24]
fabs
fst dword [esp + 0x18]
fld dword [esp + 0x28]
fabs
fstp dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x512487
fstp st(0)
xor edx, edx
fld dword [esp + 0x18]
mov ecx, 1
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x51249d
mov ebx, ecx
mov ecx, 2
fld dword [esp + edx*4 + 0x20]
mov eax, dword [esp + ebx*4 + 0x20]
mov dword [esp + ecx*4 + 0x70], 0
fchs
mov dword [esp + edx*4 + 0x70], eax
fstp dword [esp + ebx*4 + 0x70]
fld dword [esp + 0x7c]
fld dword [esp + 0x78]
fmul dword [esp + 0x78]
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x70]
faddp st(1)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5124f2
fsqrt
fdivr dword [0x6419bc]
jmp 0x5124fa
fstp st(0)
fld dword [0x641de0]
fld dword [esp + 0x70]
fmul st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fmul st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fmul st(1)
fstp dword [esp + 0x78]
fxch st(1)
fmul st(1)
fstp dword [esp + 0x7c]
mov ecx, dword [esi]
fstp st(0)
fld dword [edi + 0xc]
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x64], edx
fld dword [esi + 8]
fxch st(1)
mov ecx, dword [ebp + 0x14]
fsub st(2)
mov eax, dword [ecx]
fld dword [esp + 0x70]
lea edx, [esp + 0x60]
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)
fsub st(1)
fstp dword [esp + 0x70]
fstp st(0)
call dword [eax + 4]
jmp 0x51257e
fstp st(0)
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x5125a8
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