Function at 0x5142f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
push ebx
push esi
push edi
jae 0x514329
mov dword [ecx], 0x65c638
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
add eax, 0x20
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], edx
call fcn.0054c890
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x9617f0]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
shl eax, 4
mov dword [esp + 0x78], eax
add eax, 0xf
and eax, 0xfffffff0
cmp eax, edx
jle 0x51438a
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x51439e
mov ebx, dword [ecx + 8]
lea edi, [ebx + eax]
sub edx, eax
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
mov dword [esp + 0x1c], ebx
mov edi, ebx
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x5143c8
mov dword [ecx], str.StgetSpheres
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
mov edx, dword [0x961870]
mov ecx, eax
mov eax, dword [0x96186c]
cmp eax, edx
jae 0x5143fe
mov esi, eax
mov dword [esi], str.Sttransform
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
mov dword [0x96186c], eax
mov esi, dword [esp + 0x18]
dec esi
mov dword [esp + 0x10], esi
mov ebx, esi
inc esi
cmp esi, 4
mov edx, edi
jl 0x51460c
lea eax, [edi + 0x18]
mov edi, ecx
sub edi, dword [esp + 0x1c]
shr esi, 2
mov dword [esp + 0x20], edi
mov edi, esi
neg edi
lea edi, [ebx + edi*4]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x7c], edi
fld dword [ecx + 0xc]
xor edi, edi
fld dword [ecx]
fld dword [ecx + 4]
fld dword [ecx + 8]
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x40]
fmul st(3)
faddp st(1)
fld dword [esp + 0x30]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [edx]
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x44]
fmul st(3)
faddp st(1)
fld dword [esp + 0x34]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [eax - 0x14]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x48]
fmul st(3)
faddp st(1)
fld dword [esp + 0x38]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [eax - 0x10]
mov dword [eax - 0xc], edi
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [eax - 0xc]
fld dword [ecx + 0x1c]
fld dword [ecx + 0x10]
fld dword [ecx + 0x14]
fld dword [ebx + eax]
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x40]
fmul st(3)
faddp st(1)
fld dword [esp + 0x30]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [eax - 8]
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x44]
fmul st(3)
faddp st(1)
fld dword [esp + 0x34]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [eax - 4]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x48]
fmul st(3)
faddp st(1)
fld dword [esp + 0x38]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [eax]
mov dword [eax + 4], edi
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [eax + 4]
fld dword [ecx + 0x2c]
fld dword [ecx + 0x20]
fld dword [ecx + 0x24]
add edx, 0x40
fld dword [ecx + 0x28]
add eax, 0x40
fld dword [esp + 0x50]
add ecx, 0x40
dec esi
fmul st(1)
fld dword [esp + 0x40]
fmul st(3)
faddp st(1)
fld dword [esp + 0x30]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [eax - 0x38]
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x44]
fmul st(3)
faddp st(1)
fld dword [esp + 0x34]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [eax - 0x34]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x48]
fmul st(3)
faddp st(1)
fld dword [esp + 0x38]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [eax - 0x30]
mov dword [eax - 0x2c], edi
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [eax - 0x2c]
fld dword [ecx - 4]
fld dword [ecx - 0x10]
fld dword [ecx - 0xc]
fld dword [ecx - 8]
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x40]
fmul st(3)
faddp st(1)
fld dword [esp + 0x30]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [eax - 0x28]
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x44]
fmul st(3)
faddp st(1)
fld dword [esp + 0x34]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [eax - 0x24]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x48]
fmul st(3)
faddp st(1)
fld dword [esp + 0x38]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [eax - 0x20]
mov dword [eax - 0x1c], edi
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [eax - 0x1c]
jne 0x514434
mov eax, dword [0x96186c]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x7c]
xor esi, esi
cmp ebx, esi
jl 0x514693
inc ebx
fld dword [ecx + 0xc]
add edx, 0x10
fld dword [ecx]
add ecx, 0x10
dec ebx
fld dword [ecx - 0xc]
fld dword [ecx - 8]
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x40]
fmul st(3)
faddp st(1)
fld dword [esp + 0x30]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [edx - 0x10]
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x44]
fmul st(3)
faddp st(1)
fld dword [esp + 0x34]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [edx - 0xc]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x48]
fmul st(3)
faddp st(1)
fld dword [esp + 0x38]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [edx - 8]
mov dword [edx - 4], esi
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [edx - 4]
jne 0x514617
mov eax, dword [0x96186c]
cmp eax, dword [0x961870]
jae 0x5146b9
mov ecx, eax
mov dword [ecx], str.Stcollide
rdtsc
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x7c]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov esi, dword [esp + 0x78]
mov ecx, dword [0x9617f0]
mov eax, dword [ecx + 0xc]
add esi, 0xf
and esi, 0xfffffff0
cmp esi, eax
mov dword [esp + 0x78], esi
jle 0x5146e2
mov eax, dword [ecx]
push esi
call dword [eax + 0x24]
mov ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x5146f6
mov edx, dword [ecx + 8]
lea ebx, [esi + edx]
sub eax, esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov dword [esp + 0x20], edx
mov ebx, edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], edi
call dword [edx + 0x28]
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x514751
mov dword [ecx], str.Stexamine
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x14], ecx
jl 0x5148e9
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea esi, [ebx + 0xc]
add edi, 8
sub ebx, eax
inc edx
mov dword [esp + 0x10], edx
lea esp, [esp]
fld dword [esi]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jp 0x5148c8
fld dword [edi - 8]
mov ecx, dword [edi]
fld dword [edi - 4]
mov eax, dword [ebp + 8]
fld dword [edi + 4]
mov dword [esp + 0xb0], eax
fchs
mov eax, dword [ebp + 0xc]
fsub dword [esi]
mov dword [esp + 0xb4], eax
mov eax, dword [eax + 8]
mov dword [esp + 0x88], ecx
fst dword [esp + 0x18]
fmul dword [esi - 0xc]
fadd st(2)
fstp dword [esp + 0x80]
fld dword [esp + 0x18]
fmul dword [esi - 8]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x18]
fmul dword [ebx + edi]
fadd dword [esp + 0x88]
fld dword [esi - 0xc]
fld dword [esi - 8]
fld dword [ebx + edi]
fld st(0)
fmul dword [eax + 0x40]
fld st(2)
fmul dword [eax + 0x30]
faddp st(1)
fld st(3)
fmul dword [eax + 0x20]
faddp st(1)
fstp dword [esp + 0xa0]
fld st(0)
fmul dword [eax + 0x44]
fld st(2)
fmul dword [eax + 0x34]
faddp st(1)
fld st(3)
fmul dword [eax + 0x24]
faddp st(1)
fstp dword [esp + 0xa4]
fmul dword [eax + 0x48]
fxch st(1)
fmul dword [eax + 0x38]
faddp st(1)
fxch st(1)
fmul dword [eax + 0x28]
mov dword [esp + 0xac], 0
faddp st(1)
fstp dword [esp + 0xa8]
fld st(0)
fmul dword [eax + 0x40]
fld st(2)
fmul dword [eax + 0x30]
faddp st(1)
fld dword [esp + 0x80]
fmul dword [eax + 0x20]
faddp st(1)
fadd dword [eax + 0x50]
fstp dword [esp + 0x90]
fld dword [esp + 0x80]
fmul dword [eax + 0x24]
fld st(1)
fmul dword [eax + 0x44]
faddp st(1)
fld st(2)
fmul dword [eax + 0x34]
faddp st(1)
fadd dword [eax + 0x54]
fstp dword [esp + 0x94]
fld dword [esp + 0x80]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x48]
faddp st(1)
fxch st(1)
fmul dword [eax + 0x38]
mov edx, dword [esi]
faddp st(1)
mov ecx, dword [ebp + 0x14]
fadd dword [eax + 0x58]
mov eax, dword [ecx]
mov dword [esp + 0x9c], edx
lea edx, [esp + 0x90]
push edx
fstp dword [esp + 0x9c]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
add edi, 0x10
add esi, 0x10
dec eax
mov dword [esp + 0x10], eax
jne 0x514780
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x78]
test esi, esi
mov ecx, dword [0x9617f0]
je 0x514907
mov eax, dword [ecx + 0x14]
cmp ebx, eax
je 0x5148fe
test eax, eax
jne 0x514907
mov eax, dword [ecx]
push esi
push ebx
call dword [eax + 0x28]
jmp 0x514917
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub edx, esi
add eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
test esi, esi
mov ecx, dword [0x9617f0]
je 0x514935
mov eax, dword [ecx + 0x14]
cmp edi, eax
je 0x51492c
test eax, eax
jne 0x514935
mov edx, dword [ecx]
push esi
push edi
call dword [edx + 0x28]
jmp 0x514945
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub edx, esi
add eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x51496f
mov dword [ecx], 0x65b984
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret