Function at 0x4dcc10
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
push esi
push edi
push dword [0x884c50]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x4dcc56
mov dword [ecx], str.LtHeightField
mov dword [ecx + 0xc], str.StClosestPoints
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4dcc70
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call fcn.004dc7b0
add esp, 0x10
push dword [0x884c50]
call edi
mov dword [esp + 0x14], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x4dcca1
mov dword [esi], str.StGetSpheres
rdtsc
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push dword [eax + 8]
mov edx, dword [ecx]
push dword [ecx + 8]
mov esi, dword [eax]
lea ecx, [esp + 0xd8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edx
call fcn.0046efa0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x2c]
call eax
push dword [0x884adc]
mov esi, eax
mov dword [esp + 0x18], esi
call edi
shl esi, 4
add esi, 0x7f
and esi, 0xffffff80
mov edi, dword [eax + 0xc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edi
lea ecx, [edi + esi]
cmp esi, dword [eax + 8]
jg 0x4dcd02
cmp ecx, dword [eax + 0x10]
ja 0x4dcd02
mov dword [eax + 0xc], ecx
jmp 0x4dcd10
push esi
mov ecx, eax
call fcn.0046a3c0
mov edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x10]
movaps xmm5, xmmword [ecx]
movaps xmm4, xmmword [ecx + 0x20]
movaps xmm1, xmm5
unpcklps xmm1, xmmword [ecx + 0x10]
movaps xmm3, xmmword [eax + 0x50]
movaps xmm2, xmm1
unpckhps xmm5, xmmword [ecx + 0x10]
movaps xmm0, xmm3
mov ecx, dword [esp + 0x1c]
movlhps xmm2, xmm4
shufps xmm0, xmm3, 0x55
movaps xmm6, xmm2
movhlps xmm6, xmm1
mov eax, dword [ecx]
shufps xmm6, xmm4, 0xd4
mulps xmm6, xmm0
movaps xmm0, xmm3
mov eax, dword [eax + 0x30]
shufps xmm0, xmm3, 0
mulps xmm0, xmm2
shufps xmm3, xmm3, 0xaa
shufps xmm5, xmm4, 0xe4
mulps xmm3, xmm5
addps xmm6, xmm0
addps xmm6, xmm3
movaps xmmword [esp + 0x34], xmm6
call eax
push dword [0x884c50]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [esp + 0x24], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 0xc]
jae 0x4dcdb8
mov dword [eax], str.StCastSpheres
rdtsc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x24]
mov dword [ecx + 4], eax
cmp dword [esp + 0x14], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x84], 0x3f800000
movss xmm0, dword [eax + 0x60]
movss dword [esp + 0x74], xmm0
movups xmm0, xmmword [eax + 0x50]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x80], 0x77f7c8
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xc4], eax
jle 0x4dcedf
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x28]
nop
movaps xmm5, xmmword [edi]
lea edx, [esp + 0x80]
movaps xmm1, xmmword [esp + 0xd0]
movaps xmm4, xmm5
movaps xmm0, xmmword [esp + 0xe0]
movaps xmm3, xmm5
mov eax, dword [esi + 8]
shufps xmm4, xmm5, 0x55
mulps xmm0, xmm4
mov ecx, dword [esp + 0x2c]
shufps xmm3, xmm5, 0
mulps xmm1, xmm3
push edx
movss xmm2, dword [edi + 0xc]
lea edx, [esp + 0x44]
shufps xmm5, xmm5, 0xaa
push dword [ebp + 0xc]
addps xmm1, xmm0
movss dword [esp + 0x78], xmm2
movaps xmm0, xmmword [esp + 0xf8]
mulps xmm0, xmm5
push edx
addps xmm0, xmmword [esp + 0x10c]
addps xmm1, xmm0
movaps xmmword [esp + 0x4c], xmm1
addps xmm1, xmmword [esp + 0x3c]
movaps xmmword [esp + 0x5c], xmm1
movaps xmm1, xmmword [eax + 0x10]
movaps xmm0, xmmword [eax]
mulps xmm0, xmm3
mulps xmm1, xmm4
addps xmm1, xmm0
movaps xmm0, xmmword [eax + 0x20]
mulps xmm0, xmm5
addps xmm0, xmmword [eax + 0x30]
mov eax, dword [ecx]
movss dword [esp + 0xac], xmm2
addps xmm1, xmm0
movaps xmmword [esp + 0x9c], xmm1
call dword [eax + 0x30]
add edi, 0x10
sub dword [esp + 0x14], 1
jne 0x4dce20
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x4dcf08
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x4dcf08
cmp dword [eax + 0x14], edi
je 0x4dcf08
mov dword [eax + 0xc], edi
jmp 0x4dcf11
push edx
push edi
mov ecx, eax
call fcn.0046a590
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x4dcf40
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret