Function at 0x100cdc10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov ecx, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx]
mov ecx, edi
call fcn.100ca720
test eax, eax
je 0x100cdc3c
mov ebx, eax
mov al, 1
cmp dword [ebx], 0
jne 0x100cdc63
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 4], 0
call sym.nss3.dll_PK11_GetAllTokens
xor ebx, ebx
test eax, eax
je 0x100ce014
mov ecx, eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x40], eax
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
call sym.nss3.dll_PR_SetError
test esi, esi
je 0x100cdcea
mov eax, esi
neg eax
mov cl, 1
mov dword [ebp - 0x34], ecx
xor ecx, ecx
inc ecx
mov esi, dword [ebp + 8]
mov esi, dword [esi + ecx*4 - 4]
cmp esi, 0x21f
jg 0x100cdcb0
cmp esi, 0x80000efe
je 0x100cdcd5
cmp esi, 0x200
je 0x100cdcd5
cmp esi, 0x210
je 0x100cdcd5
jmp 0x100cdcf1
lea edi, [esi - 0x255]
cmp edi, 0x1b
ja 0x100cdcc5
mov edx, 0x8000801
bt edx, edi
jb 0x100cdcd5
cmp esi, 0x250
je 0x100cdcd5
cmp esi, 0x220
jne 0x100cdcf1
cmp ecx, dword [ebp + 0x14]
setb dl
mov dword [ebp - 0x34], edx
lea esi, [eax + ecx]
inc esi
inc ecx
cmp esi, 1
jne 0x100cdc87
jmp 0x100cdcf1
mov dword [ebp - 0x34], 0
mov esi, dword [ebx + 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 0x100ce0d1
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esi + 8], edi
mov esi, dword [ebx]
test esi, esi
je 0x100cdfc1
inc dword [esi + 0xc]
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], esi
mov ecx, dword [esi + 8]
call fcn.100cbe80
test eax, eax
je 0x100cdf9b
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x34]
je 0x100cdf64
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + esi*4]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
cmp ebx, 0x80000efe
mov dword [ebp - 0x24], ecx
jne 0x100cdd7a
mov eax, dword [ecx + 0x28]
jmp 0x100cdd9a
cmp ebx, 0x7ff
jae 0x100cdde7
movzx eax, bl
movsx ecx, byte [ecx + eax + 0x1e4]
mov edx, ebx
shr edx, 8
xor eax, eax
bt ecx, edx
setb al
test eax, eax
je 0x100cdf9b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100cddbf
mov edx, dword [eax + esi*4]
test edx, edx
je 0x100cddbf
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100cde0f
mov eax, dword [eax + esi*4]
jmp 0x100cde11
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100cdf3d
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100cdf3d
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100cde44
mov eax, dword [eax + esi*4]
jmp 0x100cde46
mov eax, dword [ecx + 0x98]
test eax, eax
jle 0x100cdf9b
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x94]
xor edx, edx
cmp dword [ecx + edx*4], ebx
je 0x100cdda2
inc edx
cmp eax, edx
jne 0x100cde00
jmp 0x100cdf9b
xor eax, eax
test eax, eax
sete cl
mov dword [ebp - 0x3c], ecx
cmp ebx, 1
sete cl
jne 0x100cde39
test eax, eax
jne 0x100cde39
cmp dword [edi + 0x124], 0
je 0x100cde59
mov eax, dword [edi + 0x128]
jmp 0x100cdf37
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
jmp 0x100cde6c
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ebx, 1
sete byte [ebp - 0x1d]
mov dword [ebp - 0x3c], 0
jmp 0x100cde6c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x1d], 1
mov al, 1
mov dword [ebp - 0x3c], eax
cmp dword [edi + 0x30], 0
jne 0x100cdea9
mov edi, dword [edi + 0x3c]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100cdf4c
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x44]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x24]
mov eax, dword [edi]
mov edi, dword [edi + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call ecx
mov ecx, dword [ebp - 0x24]
mov ebx, eax
cmp dword [ecx + 0x30], 0
jne 0x100cdee0
mov eax, dword [ecx + 0x3c]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov ecx, dword [ebp - 0x24]
test ebx, ebx
setne al
mov dl, byte [ebp - 0x1d]
xor dl, 1
or dl, al
jne 0x100cdf16
cmp dword [ecx + 0x124], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
jne 0x100cdf20
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x128], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x124], 1
jmp 0x100cdf20
test ebx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
jne 0x100cdf9b
cmp byte [ebp - 0x3c], 0
jne 0x100cdf30
cmp dword [ebp - 0x1c], eax
ja 0x100cdf9b
cmp dword [ebp - 0x18], eax
jb 0x100cdf9b
test edx, edx
je 0x100cdf3d
mov eax, dword [ebp - 0x14]
not eax
test edx, eax
jne 0x100cdf9b
inc esi
cmp esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x34]
jne 0x100cdd5e
jmp 0x100cdf64
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov dword [ebp - 0x44], eax
jmp 0x100cde91
test al, 1
je 0x100ce02d
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
cmp dword [eax + 0x24], 0
je 0x100ce02d
mov ecx, dword [ebp + 0x18]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.nss3.dll_PK11_Authenticate
test eax, eax
je 0x100ce02d
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 8], 1
call sym.nss3.dll_PK11_GetNextSafe
mov esi, eax
test eax, eax
jne 0x100cdd3c
jmp 0x100cdfcc
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp byte [ebp - 0x40], 0
jne 0x100cdfe2
mov ecx, ebx
call fcn.100c9720
mov dword [esp], ebx
call dword [sym.imp.mozglue.dll_free]
cmp dword [0x101f2f50], 0
je 0x100ce115
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100ce0e8
xor ebx, ebx
cmp dword [eax + 0x28], 0
jne 0x100ce0bd
mov dword [esp + 4], 0
mov dword [esp], 0xffffe041
call sym.nss3.dll_PR_SetError
jmp 0x100ce0bd
mov edi, dword [ebp - 0x38]
mov ebx, dword [edi + 8]
lock inc dword [ebx + 0x48]
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 8]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100ce0fd
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov esi, dword [edi + 0xc]
lea eax, [esi - 1]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp esi, 1
jne 0x100ce0a4
mov eax, dword [edi + 8]
lock dec dword [eax + 0x48]
jne 0x100ce09b
mov dword [esp], eax
call fcn.100c9d60
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
cmp byte [ebp - 0x40], 0
jne 0x100ce0bd
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.100c9720
mov dword [esp], esi
call dword [sym.imp.mozglue.dll_free]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100cdd0f
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
jmp 0x100ce008
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov dword [ebp - 0x24], eax
jmp 0x100ce059
call fcn.100029d0
jmp 0x100cdfef