Function at 0x100ce230
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 [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.100ca720
test eax, eax
je 0x100ce256
mov cl, 1
cmp dword [eax], 0
jne 0x100ce275
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 0x100ce3e0
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov esi, eax
mov ebx, dword [eax + 8]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100ce47c
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 0x100ce399
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.100cbe80
test eax, eax
je 0x100ce361
cmp dword [edi + 0x30], 0
jne 0x100ce317
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100ce381
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 0x100ce34b
mov eax, dword [edi + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test esi, esi
mov esi, dword [ebp - 0x24]
jne 0x100ce361
mov edi, dword [ebp - 0x18]
lea eax, [edi + 1]
cmp eax, 1
ja 0x100ce408
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 0x100ce2c5
jmp 0x100ce3a4
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov dword [ebp - 0x20], eax
jmp 0x100ce2ff
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.100b7390
lea ecx, [eax - 0x13]
xor edi, edi
cmp ecx, 0xb
jae 0x100ce3c8
mov edi, dword [eax*4 + 0x101be040]
cmp byte [ebp - 0x2c], 0
jne 0x100ce3f4
mov ecx, esi
call fcn.100c9720
mov dword [esp], esi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100ce3f4
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.10156ff0
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 [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100ce493
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 0x100ce474
mov eax, dword [ebx + 8]
lock dec dword [eax + 0x48]
jne 0x100ce46b
mov dword [esp], eax
call fcn.100c9d60
mov dword [esp], ebx
call dword [sym.imp.mozglue.dll_free]
mov esi, dword [ebp - 0x24]
jmp 0x100ce3c8
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100ce298
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov dword [ebp - 0x20], eax
jmp 0x100ce426