Function at 0x514f50
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
mov eax, dword [0x961870]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push edi
mov dword [esp + 0x28], esi
jae 0x514f90
mov dword [ecx], 0x65c638
rdtsc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ecx + 8]
add eax, 0x20
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], edx
call fcn.0054c890
mov ebx, dword [esi + 0x10]
mov ecx, dword [0x9617f0]
mov eax, dword [ecx + 0xc]
mov esi, ebx
shl esi, 4
add esi, 0xf
and esi, 0xfffffff0
cmp esi, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
jle 0x514fea
mov edx, dword [ecx]
push esi
call dword [edx + 0x24]
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x514ffe
mov edx, dword [ecx + 8]
lea edi, [edx + esi]
sub eax, esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov dword [esp + 0x1c], edx
mov edi, edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x961870]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
jae 0x515034
mov dword [ecx], str.StgetSpheres
rdtsc
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push edi
call dword [eax + 0x2c]
mov edx, dword [0x961870]
mov ecx, eax
mov eax, dword [0x96186c]
cmp eax, edx
jae 0x515072
mov dword [esp + 0x24], eax
mov dword [eax], str.Sttransform
rdtsc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
add eax, 0xc
mov dword [0x96186c], eax
lea eax, [ebx - 1]
mov ebx, eax
mov dword [esp + 0x2c], eax
inc eax
cmp eax, 4
mov edx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
jl 0x5152b5
lea eax, [edi + 0x18]
mov ebx, ecx
sub ebx, edi
mov edi, dword [esp + 0x24]
shr edi, 2
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], edi
neg edi
lea edi, [ebx + edi*4]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x20], edi
fld dword [ecx + 0xc]
xor edi, edi
fld dword [ecx]
fld dword [ecx + 4]
fld dword [ecx + 8]
fld dword [esp + 0x70]
fmul st(1)
fld dword [esp + 0x60]
fmul st(3)
faddp st(1)
fld dword [esp + 0x50]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [edx]
fld dword [esp + 0x74]
fmul st(1)
fld dword [esp + 0x64]
fmul st(3)
faddp st(1)
fld dword [esp + 0x54]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [eax - 0x14]
fld dword [esp + 0x78]
fmul st(1)
fld dword [esp + 0x68]
fmul st(3)
faddp st(1)
fld dword [esp + 0x58]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x88]
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 + 0x70]
fmul st(1)
fld dword [esp + 0x60]
fmul st(3)
faddp st(1)
fld dword [esp + 0x50]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [eax - 8]
fld dword [esp + 0x74]
fmul st(1)
fld dword [esp + 0x64]
fmul st(3)
faddp st(1)
fld dword [esp + 0x54]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [eax - 4]
fld dword [esp + 0x78]
fmul st(1)
fld dword [esp + 0x68]
fmul st(3)
faddp st(1)
fld dword [esp + 0x58]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x88]
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 + 0x70]
add ecx, 0x40
fmul st(1)
fld dword [esp + 0x60]
fmul st(3)
faddp st(1)
fld dword [esp + 0x50]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [eax - 0x38]
fld dword [esp + 0x74]
fmul st(1)
fld dword [esp + 0x64]
fmul st(3)
faddp st(1)
fld dword [esp + 0x54]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [eax - 0x34]
fld dword [esp + 0x78]
fmul st(1)
fld dword [esp + 0x68]
fmul st(3)
faddp st(1)
fld dword [esp + 0x58]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x88]
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 + 0x70]
fmul st(1)
fld dword [esp + 0x60]
fmul st(3)
faddp st(1)
fld dword [esp + 0x50]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [eax - 0x28]
fld dword [esp + 0x74]
fmul st(1)
fld dword [esp + 0x64]
fmul st(3)
faddp st(1)
fld dword [esp + 0x54]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [eax - 0x24]
fld dword [esp + 0x78]
fmul st(1)
fld dword [esp + 0x68]
fmul st(3)
faddp st(1)
fld dword [esp + 0x58]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x88]
fstp dword [eax - 0x20]
mov dword [eax - 0x1c], edi
mov edi, dword [esp + 0x24]
fstp st(0)
dec edi
fstp st(0)
fstp st(0)
fstp dword [eax - 0x1c]
mov dword [esp + 0x24], edi
jne 0x5150b6
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ebx, ebx
jl 0x515348
lea eax, [ebx + 1]
fld dword [ecx + 0xc]
add edx, 0x10
fld dword [ecx]
add ecx, 0x10
dec eax
fld dword [ecx - 0xc]
fld dword [ecx - 8]
fld dword [esp + 0x70]
fmul st(1)
fld dword [esp + 0x60]
fmul st(3)
faddp st(1)
fld dword [esp + 0x50]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [edx - 0x10]
fld dword [esp + 0x74]
fmul st(1)
fld dword [esp + 0x64]
fmul st(3)
faddp st(1)
fld dword [esp + 0x54]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [edx - 0xc]
fld dword [esp + 0x78]
fmul st(1)
fld dword [esp + 0x68]
fmul st(3)
faddp st(1)
fld dword [esp + 0x58]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x88]
fstp dword [edx - 8]
mov dword [edx - 4], 0
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [edx - 4]
jne 0x5152c0
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x515372
mov dword [ecx], str.Stcollide
rdtsc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ecx, dword [0x9617f0]
mov eax, dword [ecx + 0xc]
cmp esi, eax
jle 0x51538d
mov edx, dword [ecx]
push esi
call dword [edx + 0x24]
mov ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x5153a1
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 ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], edx
push ebx
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [ecx]
push edx
mov dword [esp + 0x48], edi
call dword [eax + 0x28]
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x5153f0
mov dword [ecx], str.Stexamine
rdtsc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
test eax, eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x38], edx
jl 0x5155f7
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
add ebx, 0xc
add edi, 8
inc eax
mov dword [esp + 0x2c], eax
fld dword [ebx]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x51545c
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ax, word [ecx]
cmp ax, 0xffff
je 0x5155cf
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov word [eax], 0xffff
jmp 0x5155cf
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
and edx, 0x7fffffff
cmp eax, edx
mov dword [esp + 0x34], esi
jne 0x515480
push 0x30
push esi
call fcn.0054d2c0
add esp, 8
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
lea esi, [eax + eax*2]
shl esi, 4
add esi, edx
inc eax
mov dword [ecx + 4], eax
fld dword [edi - 8]
fld dword [edi - 4]
mov eax, dword [edi]
fld dword [edi + 4]
mov ecx, dword [esp + 0x30]
fchs
mov edx, dword [ebp + 0xc]
fst dword [esp + 0x24]
mov dword [esp + 0x48], eax
fmul dword [ebx - 0xc]
mov eax, dword [edx + 8]
add eax, 0x20
fadd st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x24]
fmul dword [ebx - 8]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x24]
fmul dword [ecx + edi]
fadd dword [esp + 0x48]
fld dword [ebx - 0xc]
fld dword [ebx - 8]
fld dword [ecx + edi]
xor ecx, ecx
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], ecx
mov eax, dword [edx + 8]
fld st(0)
add eax, 0x20
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esi]
fld dword [esp + 0x40]
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 [esi + 4]
fld dword [esp + 0x40]
fmul dword [eax + 8]
fxch st(1)
fmul dword [eax + 0x28]
faddp st(1)
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
mov eax, dword [esp + 0x18]
fstp dword [esi + 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx]
mov dword [esi + 0xc], ecx
cmp word [eax], 0xffff
jne 0x5155c0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
push edx
call dword [eax + 4]
cmp ax, 0xffff
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
jne 0x5155c0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
dec dword [eax + 4]
mov eax, dword [esp + 0x18]
mov cx, word [eax]
mov word [esi + 0x20], cx
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add ecx, 2
add edi, 0x10
add ebx, 0x10
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
jne 0x515421
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test esi, esi
mov ecx, dword [0x9617f0]
je 0x515615
mov eax, dword [ecx + 0x14]
cmp ebx, eax
je 0x51560c
test eax, eax
jne 0x515615
mov edx, dword [ecx]
push esi
push ebx
call dword [edx + 0x28]
jmp 0x515625
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 0x515643
mov eax, dword [ecx + 0x14]
cmp edi, eax
je 0x51563a
test eax, eax
jne 0x515643
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0x28]
jmp 0x515653
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 0x51567d
mov dword [ecx], 0x65b984
rdtsc
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
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