Function at 0x511e30
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x961870]
push ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
push esi
push edi
jae 0x511e6b
mov dword [ecx], str.TtSphereCapsule
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
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 0x511e8b
push 0x30
push edi
call fcn.0054d2c0
add esp, 8
mov eax, dword [edi + 4]
mov ebx, dword [edi]
lea esi, [eax + eax*2]
shl esi, 4
add esi, ebx
inc eax
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx]
fld dword [ebx + 0x10]
mov eax, dword [ecx + 8]
fld dword [ebx + 0x14]
add edi, 0x50
fld dword [ebx + 0x18]
add eax, 0x20
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 [ebx + 0x20]
fld dword [ebx + 0x24]
fld dword [ebx + 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 + 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]
fstp dword [esp + 0x58]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
mov dword [esp + 0x6c], 0
call fcn.005298f0
fld dword [edi]
fsub dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
add esp, 0x10
fstp dword [esp + 0x20]
fld dword [edi + 4]
fsub dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [edi + 8]
fsub dword [esp + 0x38]
fstp dword [esp + 0x28]
fld dword [edi + 0xc]
fsub dword [esp + 0x3c]
fstp dword [esp + 0x2c]
fld dword [edx + 0xc]
fadd dword [ebx + 0xc]
fld st(0)
fadd dword [eax + 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 + 0x10]
fld st(0)
fmul st(1)
fld dword [esp + 0x10]
fcompp
fnstsw ax
fstp st(0)
test ah, 1
je 0x5121d1
fld dword [esp + 0x10]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
jne 0x512032
fld dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
fsqrt
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
jmp 0x5120e7
fld dword [0x641de0]
xor ecx, ecx
fld dword [esp + 0x50]
mov edx, 1
fsub dword [esp + 0x40]
mov dword [esp + 0x1c], 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 + 0x10]
fld dword [esp + 0x28]
fabs
fstp dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5120a7
fstp st(0)
xor edx, edx
fld dword [esp + 0x10]
mov ecx, 1
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x5120bf
mov eax, ecx
mov ecx, 2
jmp 0x5120c3
mov eax, dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], 0
lea ecx, [edx*4]
fld dword [esp + ecx + 0x20]
shl eax, 2
mov edx, dword [esp + eax + 0x20]
fchs
mov dword [ecx + esi + 0x10], edx
fstp dword [eax + esi + 0x10]
fld dword [esi + 0x18]
fld dword [esi + 0x14]
fld dword [esi + 0x10]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x512121
fsqrt
fdivr dword [0x6419bc]
jmp 0x512129
fstp st(0)
fld dword [0x641de0]
fld st(0)
fmul dword [esi + 0x10]
fstp dword [esi + 0x10]
fld st(0)
fmul dword [esi + 0x14]
fstp dword [esi + 0x14]
fld st(0)
fmul dword [esi + 0x18]
fstp dword [esi + 0x18]
fmul dword [esi + 0x1c]
fstp dword [esi + 0x1c]
mov eax, dword [edi]
fld dword [ebx + 0xc]
mov dword [esi], eax
mov ecx, dword [edi + 4]
fsub st(1)
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
fld st(0)
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
fmul dword [esi + 0x10]
mov edi, dword [esp + 0x14]
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]
fsub st(1)
fstp dword [esi + 0xc]
cmp word [edi + 0xc], 0xffff
fstp st(0)
jne 0x5121b6
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [edx + 4]
mov word [edi + 0xc], ax
mov di, word [edi + 0xc]
cmp di, 0xffff
je 0x5121c7
mov word [esi + 0x20], di
jmp 0x5121fe
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
dec dword [eax + 4]
jmp 0x5121fe
mov edx, dword [ebp + 0x14]
fstp st(0)
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x14]
dec edx
mov dword [eax + 4], edx
xor eax, eax
mov ax, word [esi + 0xc]
cmp ax, 0xffff
je 0x5121fe
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 0x512228
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