Function at 0x46e360
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4c6060]
sub esp, 0x420
push ebx
mov ebx, dword [esp + 0x440]
push esi
mov esi, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x20]
shl esi, 5
add esi, 0x10
and esi, 0xfffffff0
lea edx, [ecx + esi]
cmp edx, dword [eax + 0x2c]
ja 0x46e39b
mov dword [eax + 0x20], edx
mov dword [esp + 0xc], ecx
jmp 0x46e3a9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
push ebp
push edi
xor edi, edi
cmp dword [ebx + 4], edi
jle 0x46e4ba
mov ecx, dword [esp + 0x434]
mov ebp, dword [ecx + 0xc]
mov edx, dword [ebx]
mov ecx, dword [edx + edi*4]
mov eax, dword [ecx + 0x90]
fld dword [eax + ebp + 0x10]
add eax, ebp
mov edx, esi
fstp dword [edx]
add esi, 0x10
fld dword [eax + 0x14]
add edi, 1
fstp dword [edx + 4]
fld dword [eax + 0x18]
fstp dword [edx + 8]
fld dword [eax + 0x1c]
fstp dword [edx + 0xc]
mov edx, esi
fld dword [eax + 0x20]
add esi, 0x10
fstp dword [edx]
fld dword [eax + 0x24]
fstp dword [edx + 4]
fld dword [eax + 0x28]
fstp dword [edx + 8]
fld dword [eax + 0x2c]
fstp dword [edx + 0xc]
fld dword [ecx + 0x130]
fsub dword [ecx + 0x120]
fstp dword [eax + 0x10]
fld dword [ecx + 0x134]
fsub dword [ecx + 0x124]
fstp dword [eax + 0x14]
fld dword [ecx + 0x138]
fsub dword [ecx + 0x128]
fstp dword [eax + 0x18]
fld dword [ecx + 0x13c]
fsub dword [ecx + 0x12c]
fstp dword [eax + 0x1c]
fld dword [ecx + 0x13c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fmul dword [eax + 0x10]
fstp dword [eax + 0x10]
fld dword [eax + 0x14]
fmul st(1)
fstp dword [eax + 0x14]
fld dword [eax + 0x18]
fmul st(1)
fstp dword [eax + 0x18]
fmul dword [eax + 0x1c]
fstp dword [eax + 0x1c]
fld dword [ecx + 0x13c]
fstp dword [esp + 0x10]
fld dword [ecx + 0x170]
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [eax + 0x20]
fld dword [ecx + 0x174]
fmul st(1)
fstp dword [eax + 0x24]
fld dword [ecx + 0x178]
fmul st(1)
fstp dword [eax + 0x28]
fmul dword [ecx + 0x17c]
fstp dword [eax + 0x2c]
cmp edi, dword [ebx + 4]
jl 0x46e3c4
mov eax, dword [esp + 0x440]
mov esi, dword [eax]
mov eax, dword [esp + 0x43c]
cmp esi, dword [eax + 4]
mov dword [esp + 0x10], esi
jge 0x46e67c
mov edi, dword [esp + 0x450]
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
mov ebp, dword [eax]
mov eax, dword [ebp + esi]
movzx ecx, byte [eax + 0x1c]
add ebp, esi
cmp dword [esp + 0x444], ecx
jg 0x46e65e
mov eax, dword [eax + 0x28]
mov edx, dword [esp + 0x448]
mov ecx, dword [edx]
mov edx, dword [eax + 4]
movzx edx, word [edx + 0x94]
add eax, 4
xor ebx, ebx
cmp byte [edx + ecx], 0x10
sete bl
mov ebx, dword [eax + ebx*4]
movzx eax, word [ebx + 0x94]
cmp byte [eax + ecx], 8
jne 0x46e57b
mov eax, dword [esp + 0x440]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov eax, dword [esp + 0x43c]
mov eax, dword [eax]
lea ecx, [ecx + ecx*2]
mov ebp, dword [eax + ecx*4 + 8]
mov edx, dword [eax + ecx*4]
mov ebx, dword [eax + ecx*4 + 4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x20], ebp
mov ebp, dword [eax + esi]
mov dword [ecx], ebp
mov ebp, dword [eax + esi + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + esi + 8]
mov dword [ecx + 8], ebp
mov dword [eax + esi], edx
mov edx, dword [esp + 0x20]
jmp 0x46e64f
mov edx, dword [ebp + 4]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x438]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
push 0x100
push ecx
push edx
push eax
call fcn.004a6a50
mov ecx, dword [esp + 0x44c]
add esp, 0x14
push ecx
push eax
mov eax, dword [esp + 0x43c]
mov ecx, dword [eax]
fld dword [ecx + 8]
lea edx, [esp + 0x38]
push edx
push ebp
push ecx
fstp dword [esp]
call fcn.0046e210
add esp, 0x14
cmp eax, 0xffffffff
je 0x46e657
movzx edx, word [ebx + 0x94]
mov eax, dword [esp + 0x448]
mov ecx, dword [eax]
mov byte [edx + ecx], 8
mov edx, dword [edi + 8]
and edx, 0x3fffffff
cmp dword [edi + 4], edx
jne 0x46e5fd
push 4
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], ebx
add dword [edi + 4], 1
mov eax, dword [esp + 0x440]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov eax, dword [esp + 0x43c]
mov eax, dword [eax]
lea ecx, [ecx + ecx*2]
mov ebp, dword [eax + ecx*4 + 8]
mov edx, dword [eax + ecx*4]
mov ebx, dword [eax + ecx*4 + 4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x2c], ebp
mov ebp, dword [eax + esi]
mov dword [ecx], ebp
mov ebp, dword [eax + esi + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [eax + esi + 8]
mov dword [ecx + 8], ebp
mov dword [eax + esi], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + esi + 4], ebx
mov dword [eax + esi + 8], edx
mov ebx, dword [esp + 0x44c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x43c]
add ecx, 1
add esi, 0xc
cmp ecx, dword [eax + 4]
mov dword [esp + 0x10], ecx
jl 0x46e4e5
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp dword [ebx + 4], edx
pop edi
pop ebp
jle 0x46e6de
mov eax, dword [esp + 0x42c]
mov esi, dword [eax + 0xc]
mov eax, dword [ebx]
fld dword [ecx]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x90]
fstp dword [eax + esi + 0x10]
fld dword [ecx + 4]
add eax, esi
fstp dword [eax + 0x14]
add ecx, 0x10
fld dword [ecx - 8]
add edx, 1
fstp dword [eax + 0x18]
add ecx, 0x10
fld dword [ecx - 0x14]
fstp dword [eax + 0x1c]
fld dword [ecx - 0x10]
fstp dword [eax + 0x20]
fld dword [ecx - 0xc]
fstp dword [eax + 0x24]
fld dword [ecx - 8]
fstp dword [eax + 0x28]
fld dword [ecx - 4]
fstp dword [eax + 0x2c]
cmp edx, dword [ebx + 4]
jl 0x46e693
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0xc]
cmp ecx, dword [eax + 0x28]
pop esi
mov dword [eax + 0x20], ecx
pop ebx
jne 0x46e703
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
add esp, 0x420
ret