Function at 0x50fe90
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x64
mov eax, dword [0x961870]
push ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push esi
push edi
jae 0x50fecb
mov dword [ecx], str.TtSphereBox
rdtsc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ecx]
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
and edx, 0x7fffffff
cmp eax, edx
jne 0x50feeb
push 0x30
push edi
call fcn.0054d2c0
add esp, 8
mov eax, dword [edi + 4]
mov edx, dword [edi]
lea esi, [eax + eax*2]
shl esi, 4
add esi, edx
inc eax
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 8]
add ebx, 0x50
add ecx, 0x20
push ebx
push ecx
lea ecx, [esp + 0x68]
call fcn.0054ce30
fld dword [esp + 0x60]
mov ecx, dword [edi]
fabs
fld dword [esp + 0x64]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
fabs
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
mov dword [esp + 0x28], eax
fabs
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x48]
fld dword [esp + 0x6c]
fabs
fld st(1)
fcomp dword [ecx + 0x10]
fnstsw ax
test ah, 5
jp 0x50ff5c
fld st(1)
fstp dword [esp + 0x50]
jmp 0x50ff63
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x50], edx
fld dword [esp + 0x44]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 5
jp 0x50ff7b
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
jmp 0x50ff82
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x54], edx
fld dword [esp + 0x48]
fcomp dword [ecx + 0x18]
fnstsw ax
test ah, 5
jp 0x50ff9a
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
jmp 0x50ffa1
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x58], edx
fcom dword [ecx + 0x1c]
fnstsw ax
test ah, 5
jp 0x50ffaf
fld st(0)
jmp 0x50ffb2
fld dword [ecx + 0x1c]
fld dword [esp + 0x50]
fsub st(3)
fstp dword [esp + 0x30]
fld dword [esp + 0x54]
fsub dword [esp + 0x44]
fstp dword [esp + 0x34]
fld dword [esp + 0x58]
fsub dword [esp + 0x48]
fstp dword [esp + 0x38]
fsubrp st(1)
fld dword [esp + 0x30]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x50ffeb
mov cl, 1
jmp 0x50ffed
xor cl, cl
fld dword [esp + 0x34]
mov byte [esp + 0x1a], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x510008
mov byte [esp + 0x1a], 0
fld dword [esp + 0x38]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x51001d
mov dl, 1
jmp 0x51001f
xor dl, dl
fcomp dword [0x641de0]
mov byte [esp + 0x1b], 1
fnstsw ax
test ah, 5
jnp 0x510036
mov byte [esp + 0x1b], 0
xor eax, eax
mov al, byte [esp + 0x1a]
shl edx, 1
neg ecx
shl ecx, 3
shl eax, 2
or edx, eax
mov eax, dword [esp + 0x24]
or edx, ecx
or edx, dword [esp + 0x1b]
test dl, 0xe
je 0x51015f
fstp st(0)
mov ecx, dword [esp + 0x28]
fld dword [esp + 0x34]
mov edx, dword [ebp + 0x10]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fsqrt
fld dword [0x6419bc]
fdiv st(1)
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x38]
fstp st(0)
fld dword [eax + 0xc]
fadd dword [ecx + 0xc]
fsubp st(1)
fld st(0)
fcomp dword [edx + 8]
fnstsw ax
test ah, 0x41
je 0x5102a9
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
and eax, 0x80000000
xor edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], edx
fld dword [esp + 0x30]
mov edx, dword [esp + 0x64]
fchs
and edx, 0x80000000
xor eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
fld dword [esp + 0x34]
mov eax, dword [esp + 0x68]
fchs
and eax, 0x80000000
xor edx, eax
mov eax, dword [edi + 8]
add eax, 0x20
mov dword [esp + 0x38], edx
fld dword [esp + 0x38]
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 [esi + 0x10]
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 [esi + 0x14]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fstp dword [esi + 0x18]
mov dword [esi + 0x1c], 0
jmp 0x510222
fsub dword [eax + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x44]
fsub dword [eax + 0x14]
fstp dword [esp + 0x20]
fld dword [esp + 0x48]
fsub dword [eax + 0x18]
fld dword [esp + 0x1c]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x5101a4
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
mov eax, dword [edi + 8]
jne 0x5101c4
fstp st(0)
xor ecx, ecx
fld dword [esp + 0x1c]
add eax, 0x20
jmp 0x5101cc
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
mov eax, dword [edi + 8]
jne 0x5101c4
fstp st(0)
mov ecx, 1
fld dword [esp + 0x20]
add eax, 0x30
jmp 0x5101cc
mov ecx, 2
add eax, 0x40
mov edx, dword [eax]
fld dword [esp + ecx*4 + 0x60]
fcomp dword [0x641de0]
mov dword [esi + 0x10], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
mov edx, dword [eax + 8]
mov dword [esi + 0x18], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x1c], eax
fnstsw ax
test ah, 5
jp 0x510214
fld dword [esi + 0x10]
fchs
fstp dword [esi + 0x10]
fld dword [esi + 0x14]
fchs
fstp dword [esi + 0x14]
fld dword [esi + 0x18]
fchs
fstp dword [esi + 0x18]
fld dword [esi + 0x1c]
fchs
fstp dword [esi + 0x1c]
mov ecx, dword [esp + 0x24]
fsub dword [ecx + 0xc]
mov ecx, dword [esp + 0x28]
fsub dword [ecx + 0xc]
fld dword [ecx + 0xc]
mov edx, dword [ebx]
mov dword [esi], edx
fld st(1)
mov eax, dword [ebx + 4]
fchs
fsubrp st(1)
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0xc]
fld st(0)
mov dword [esi + 0xc], edx
fmul dword [esi + 0x10]
mov ebx, dword [esp + 0x2c]
fadd dword [esi]
fstp dword [esi]
fld st(0)
fmul dword [esi + 0x14]
fadd dword [esi + 4]
fstp dword [esi + 4]
fld st(0)
fmul dword [esi + 0x18]
fadd dword [esi + 8]
fstp dword [esi + 8]
fmul dword [esi + 0x1c]
fadd dword [esi + 0xc]
fstp dword [esi + 0xc]
fstp dword [esi + 0xc]
cmp word [ebx + 0xc], 0xffff
jne 0x51028e
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
push esi
push edx
mov edx, dword [ebp + 8]
push edi
push edx
call dword [eax + 4]
mov word [ebx + 0xc], ax
mov bx, word [ebx + 0xc]
cmp bx, 0xffff
je 0x51029f
mov word [esi + 0x20], bx
jmp 0x5102d6
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
dec dword [eax + 4]
jmp 0x5102d6
mov ecx, dword [ebp + 0x14]
fstp st(0)
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x2c]
dec edx
mov dword [eax + 4], edx
xor eax, eax
mov ax, word [esi + 0xc]
cmp ax, 0xffff
je 0x5102d6
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov word [esi + 0xc], 0xffff
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x510300
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
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