Function at 0x100cf7f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ecx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.100cbce0
test eax, eax
je 0x100cf816
mov cl, 1
cmp dword [eax], 0
jne 0x100cf835
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.nss3.dll_PK11_GetAllTokens
test eax, eax
je 0x100cf9a0
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov esi, eax
mov ebx, dword [eax + 8]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100cfa3c
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov ebx, dword [esi]
test ebx, ebx
je 0x100cf959
inc dword [ebx + 0xc]
mov eax, dword [esi + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [ebp - 0x24], esi
mov edi, dword [ebx + 8]
mov ecx, edi
call fcn.100cd440
test eax, eax
je 0x100cf921
cmp dword [edi + 0x30], 0
jne 0x100cf8d7
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100cf941
mov esi, dword [ebp - 0x28]
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [edi]
mov esi, dword [edi + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call ecx
mov esi, eax
cmp dword [edi + 0x30], 0
jne 0x100cf90b
mov eax, dword [edi + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test esi, esi
mov esi, dword [ebp - 0x24]
jne 0x100cf921
mov edi, dword [ebp - 0x18]
lea eax, [edi + 1]
cmp eax, 1
ja 0x100cf9c8
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], 1
call sym.nss3.dll_PK11_GetNextSafe
mov ebx, eax
test eax, eax
jne 0x100cf885
jmp 0x100cf964
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov dword [ebp - 0x20], eax
jmp 0x100cf8bf
mov eax, dword [esi + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.100b8950
lea ecx, [eax - 0x13]
xor edi, edi
cmp ecx, 0xb
jae 0x100cf988
mov edi, dword [eax*4 + 0x101c0220]
cmp byte [ebp - 0x2c], 0
jne 0x100cf9b4
mov ecx, esi
call fcn.100cace0
mov dword [esp], esi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100cf9b4
mov dword [esp + 4], 0
mov dword [esp], 0xffffe006
call sym.nss3.dll_PR_SetError
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100cfa53
mov esi, dword [ebp - 0x28]
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov esi, dword [ebx + 0xc]
lea eax, [esi - 1]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp esi, 1
jne 0x100cfa34
mov eax, dword [ebx + 8]
lock dec dword [eax + 0x48]
jne 0x100cfa2b
mov dword [esp], eax
call fcn.100cb320
mov dword [esp], ebx
call dword [sym.imp.mozglue.dll_free]
mov esi, dword [ebp - 0x24]
jmp 0x100cf988
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov edi, eax
jmp 0x100cf858
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov dword [ebp - 0x20], eax
jmp 0x100cf9e6