Function at 0x504fb0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf4
mov eax, dword [0x961870]
push ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push esi
push edi
jae 0x504fee
mov dword [ecx], str.TtMultiSphereTri
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
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 edx, dword [ebx]
fmul dword [eax + 0x20]
mov dword [esp + 0x20], edi
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)
lea ecx, [edx + 0x10]
fmul dword [eax]
mov dword [esp + 0x28], ecx
lea esi, [esp + 0x80]
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 edx, dword [edx + 0xc]
mov dword [esp + 0x24], edx
dec edx
lea ebx, [edx + 1]
cmp ebx, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
jl 0x5052cc
mov edi, dword [esp + 0x14]
shr ebx, 2
mov dword [esp + 0x1c], ebx
neg ebx
lea edi, [edi + ebx*4]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
lea edx, [esp + 0x98]
xor edi, edi
fld dword [ecx]
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 [esi]
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)
fadd dword [eax + 0x34]
fstp dword [edx - 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)
fadd dword [eax + 0x38]
fstp dword [edx - 0x10]
mov dword [edx - 0xc], edi
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(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)
fadd dword [eax + 0x34]
fstp dword [edx - 4]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [edx]
mov dword [edx + 4], edi
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(0)
fmul dword [eax + 0x24]
fld st(2)
add esi, 0x40
fmul dword [eax + 0x14]
add edx, 0x40
add ecx, 0x40
dec ebx
faddp st(1)
fld st(3)
fmul dword [eax + 4]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [edx - 0x34]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [edx - 0x30]
mov dword [edx - 0x2c], edi
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(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)
fadd dword [eax + 0x34]
fstp dword [edx - 0x24]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [edx - 0x20]
mov dword [edx - 0x1c], edi
jne 0x505167
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test ebx, ebx
jl 0x505335
inc ebx
fld dword [ecx]
add esi, 0x10
fld dword [ecx + 4]
add ecx, 0x10
dec ebx
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 [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)
fadd dword [eax + 0x34]
fstp dword [esi - 0xc]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
fstp dword [esi - 8]
mov dword [esi - 4], 0
jne 0x5052d5
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
add eax, ecx
mov ecx, dword [esi + 8]
and ecx, 0x7fffffff
cmp ecx, eax
jge 0x505368
add ecx, ecx
cmp eax, ecx
jge 0x505358
mov eax, ecx
push 0x30
push eax
push esi
call fcn.0054d250
mov edx, dword [esp + 0x24]
add esp, 0xc
test edx, edx
jl 0x5054fa
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add eax, 0xc
lea ecx, [esi + edx*2 + 0x1c]
inc edx
lea ebx, [esp + 0x88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
jmp 0x5053a0
mov esi, dword [esp + 0x2c]
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x28], eax
fld dword [esp + 0x28]
lea ecx, [esi + 0xc]
fadd dword [edi + 0xc]
push ecx
lea edx, [esp + 0x38]
lea eax, [ebx - 8]
push edx
fstp dword [esp + 0x2c]
push eax
call fcn.00529f30
fld dword [esp + 0x30]
mov edx, dword [ebp + 0x10]
fadd dword [edx + 8]
add esp, 0x10
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x5054b3
mov eax, dword [ebp + 0x14]
fld dword [esp + 0x24]
mov eax, dword [eax]
fchs
mov esi, dword [eax + 4]
lea ecx, [esi + 1]
mov dword [eax + 4], ecx
mov ecx, dword [eax]
mov eax, dword [ebx - 8]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
mov dword [esi], eax
mov ecx, dword [ebx - 4]
mov dword [esi + 4], ecx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 0xc], ecx
fld dword [esp + 0x60]
fmul st(1)
fadd dword [esi]
fstp dword [esi]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [esi + 4]
fstp dword [esi + 4]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [esi + 8]
fstp dword [esi + 8]
fld dword [esp + 0x6c]
fmul st(1)
fadd dword [esi + 0xc]
fstp dword [esi + 0xc]
mov eax, dword [esp + 0x60]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x64]
fstp st(0)
mov dword [esi + 0x14], ecx
mov eax, dword [esp + 0x68]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], ecx
fld dword [esp + 0x70]
fsub dword [esp + 0x20]
fstp dword [esi + 0xc]
mov ax, word [eax]
cmp ax, 0xffff
jne 0x5054a3
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
push esi
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
call dword [eax + 4]
cmp ax, 0xffff
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
je 0x5054a9
mov word [esi + 0x20], ax
jmp 0x5054d2
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
dec dword [eax + 4]
jmp 0x5054d2
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
cmp ax, 0xffff
je 0x5054d2
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov word [eax], 0xffff
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add esi, 0x10
sub ecx, 2
add ebx, 0x10
dec eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x505395
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x505524
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10