Function at 0x100d5e70
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 [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.100d34a0
test eax, eax
je 0x100d5e96
mov cl, 1
cmp dword [eax], 0
jne 0x100d5eb5
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 0x100d6018
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov esi, eax
mov ebx, dword [eax + 8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x100d60b4
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 0x100d5fd9
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.100d4740
test eax, eax
je 0x100d5fa1
cmp dword [edi + 0x30], 0
jne 0x100d5f57
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100d5fc1
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 0x100d5f8b
mov eax, dword [edi + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
test esi, esi
mov esi, dword [ebp - 0x24]
jne 0x100d5fa1
mov edi, dword [ebp - 0x18]
lea eax, [edi + 1]
cmp eax, 1
ja 0x100d6040
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 0x100d5f05
jmp 0x100d5fe4
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov dword [ebp - 0x20], eax
jmp 0x100d5f3f
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.100bed00
lea ecx, [eax - 0x13]
xor edi, edi
cmp ecx, 0xb
jae 0x100d6008
mov edi, dword [eax*4 + 0x101aacf0]
cmp byte [ebp - 0x2c], 0
jne 0x100d602c
mov dword [esp], esi
call sym.nss3.dll_PK11_FreeSlotList
jmp 0x100d602c
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.1014dc80
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 [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100d60cb
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 0x100d60ac
mov eax, dword [ebx + 8]
lock dec dword [eax + 0x48]
jne 0x100d60a3
mov dword [esp], eax
call fcn.100d1c70
mov dword [esp], ebx
call dword [sym.imp.mozglue.dll_free]
mov esi, dword [ebp - 0x24]
jmp 0x100d6008
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x100d5ed8
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov dword [ebp - 0x20], eax
jmp 0x100d605e