Function at 0x100cf1d0
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx]
mov ecx, edi
call fcn.100cbce0
test eax, eax
je 0x100cf1fc
mov ebx, eax
mov al, 1
cmp dword [ebx], 0
jne 0x100cf223
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 0x100cf5d4
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 0x100cf2aa
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 0x100cf270
cmp esi, 0x80000efe
je 0x100cf295
cmp esi, 0x200
je 0x100cf295
cmp esi, 0x210
je 0x100cf295
jmp 0x100cf2b1
lea edi, [esi - 0x255]
cmp edi, 0x1b
ja 0x100cf285
mov edx, 0x8000801
bt edx, edi
jb 0x100cf295
cmp esi, 0x250
je 0x100cf295
cmp esi, 0x220
jne 0x100cf2b1
cmp ecx, dword [ebp + 0x14]
setb dl
mov dword [ebp - 0x34], edx
lea esi, [eax + ecx]
inc esi
inc ecx
cmp esi, 1
jne 0x100cf247
jmp 0x100cf2b1
mov dword [ebp - 0x34], 0
mov esi, dword [ebx + 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 0x100cf691
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 0x100cf581
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.100cd440
test eax, eax
je 0x100cf55b
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x34]
je 0x100cf524
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 0x100cf33a
mov eax, dword [ecx + 0x28]
jmp 0x100cf35a
cmp ebx, 0x7ff
jae 0x100cf3a7
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 0x100cf55b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100cf37f
mov edx, dword [eax + esi*4]
test edx, edx
je 0x100cf37f
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100cf3cf
mov eax, dword [eax + esi*4]
jmp 0x100cf3d1
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [ebp - 0x24]
je 0x100cf4fd
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100cf4fd
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100cf404
mov eax, dword [eax + esi*4]
jmp 0x100cf406
mov eax, dword [ecx + 0x98]
test eax, eax
jle 0x100cf55b
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x94]
xor edx, edx
cmp dword [ecx + edx*4], ebx
je 0x100cf362
inc edx
cmp eax, edx
jne 0x100cf3c0
jmp 0x100cf55b
xor eax, eax
test eax, eax
sete cl
mov dword [ebp - 0x3c], ecx
cmp ebx, 1
sete cl
jne 0x100cf3f9
test eax, eax
jne 0x100cf3f9
cmp dword [edi + 0x124], 0
je 0x100cf419
mov eax, dword [edi + 0x128]
jmp 0x100cf4f7
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
jmp 0x100cf42c
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ebx, 1
sete byte [ebp - 0x1d]
mov dword [ebp - 0x3c], 0
jmp 0x100cf42c
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 0x100cf469
mov edi, dword [edi + 0x3c]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100cf50c
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 0x100cf4a0
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 0x100cf4d6
cmp dword [ecx + 0x124], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
jne 0x100cf4e0
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x128], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x124], 1
jmp 0x100cf4e0
test ebx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
jne 0x100cf55b
cmp byte [ebp - 0x3c], 0
jne 0x100cf4f0
cmp dword [ebp - 0x1c], eax
ja 0x100cf55b
cmp dword [ebp - 0x18], eax
jb 0x100cf55b
test edx, edx
je 0x100cf4fd
mov eax, dword [ebp - 0x14]
not eax
test edx, eax
jne 0x100cf55b
inc esi
cmp esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x34]
jne 0x100cf31e
jmp 0x100cf524
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov dword [ebp - 0x44], eax
jmp 0x100cf451
test al, 1
je 0x100cf5ed
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
cmp dword [eax + 0x24], 0
je 0x100cf5ed
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 0x100cf5ed
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 0x100cf2fc
jmp 0x100cf58c
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
cmp byte [ebp - 0x40], 0
jne 0x100cf5a2
mov ecx, ebx
call fcn.100cace0
mov dword [esp], ebx
call dword [sym.imp.mozglue.dll_free]
cmp dword [0x101f4f80], 0
je 0x100cf6d5
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100cf6a8
xor ebx, ebx
cmp dword [eax + 0x28], 0
jne 0x100cf67d
mov dword [esp + 4], 0
mov dword [esp], 0xffffe041
call sym.nss3.dll_PR_SetError
jmp 0x100cf67d
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 [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100cf6bd
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 0x100cf664
mov eax, dword [edi + 8]
lock dec dword [eax + 0x48]
jne 0x100cf65b
mov dword [esp], eax
call fcn.100cb320
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
cmp byte [ebp - 0x40], 0
jne 0x100cf67d
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.100cace0
mov dword [esp], esi
call dword [sym.imp.mozglue.dll_free]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov edi, eax
jmp 0x100cf2cf
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
jmp 0x100cf5c8
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov dword [ebp - 0x24], eax
jmp 0x100cf619
call fcn.1001b2e0
jmp 0x100cf5af