Function at 0x100a4770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebx + 0x60]
mov esi, dword [ebx + 0x64]
cmp byte [0x101f50ac], 0
jne 0x100a47a9
cmp dword [0x101f4f80], 0
je 0x100a4979
mov byte [0x101f50ac], 1
test byte [ebx + 0x47], 0x20
jne 0x100a47cc
call sym.nss3.dll_PK11_GetInternalKeySlot
test eax, eax
je 0x100a47cc
mov edi, dword [eax + 0x60]
mov esi, dword [eax + 0x64]
lock dec dword [eax + 0x48]
jne 0x100a47cc
mov dword [esp], eax
call fcn.100cb320
cmp edi, 1
jne 0x100a484f
call sym.nss3.dll_PR_Now
mov ecx, eax
mov edi, edx
mov edx, 0x3938700
mov eax, esi
imul edx
add eax, dword [ebx + 0x70]
adc edx, dword [ebx + 0x74]
cmp eax, ecx
sbb edx, edi
jge 0x100a4849
mov edi, dword [ebx + 0x3c]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x100a4958
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x38]
mov ecx, dword [eax + 0x4e]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
mov dword [ebx + 0x134], 0
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
jmp 0x100a484f
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], edi
mov edi, dword [ebx + 0x3c]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x100a4941
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], esi
mov bl, byte [0x101f50ac]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x134]
cmp dword [0x101f4f80], 0
je 0x100a496f
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
test edi, edi
je 0x100a48c8
xor bl, 1
test bl, 1
jne 0x100a48c8
mov eax, esi
sub eax, edi
cmp eax, 0x3e7
ja 0x100a48c8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x138]
mov dword [ebp - 0x1c], eax
jmp 0x100a490e
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edi, dword [ebx + 0x38]
mov ecx, dword [eax + 0x3e]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
call ecx
test eax, eax
je 0x100a48ff
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [ebx + 0x38], 0
xor esi, esi
jmp 0x100a492d
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x134], esi
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 1]
xor esi, esi
cmp ecx, 3
ja 0x100a492d
mov esi, dword [eax*4 + 0x101bd25c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov esi, eax
jmp 0x100a486d
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov esi, eax
jmp 0x100a480d
call fcn.1001b2f0
jmp 0x100a489b
call fcn.1001b2f0
jmp 0x100a47a2