Function at 0x100cfd10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], edx
cmp dword [0x101f33ac], 0
je 0x100cfe78
mov esi, ecx
mov ebx, dword [ecx + 0x20]
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 0x100cff95
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 8], edi
mov eax, dword [esi + 0x68]
test al, 1
jne 0x100cfe89
or eax, 2
mov dword [esi + 0x68], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [esp], esi
call sym.nss3.dll_SECMOD_UpdateSlotList
mov eax, dword [0x101f33ac]
mov dword [esp], eax
call fcn.100d3060
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100cfde8
xor edi, edi
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0x28]
mov ebx, dword [ecx + edi*4]
cmp dword [ebx + 0xc], 0
jne 0x100cfde1
movzx esi, word [ebx + 0x80]
mov ecx, ebx
xor edx, edx
inc edx
call fcn.100cbe80
cmp word [ebx + 0x82], si
jne 0x100cfeb2
cmp dword [ebx + 0x84], eax
jne 0x100cfeb2
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x2c]
xor edx, edx
inc edx
inc edi
cmp edi, eax
jl 0x100cfda2
jmp 0x100cfdeb
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [0x101f33ac]
mov dword [esp], eax
call fcn.100d3140
cmp dword [esi + 0x2c], 0
setne cl
cmp dword [ebp - 0x10], 0
sete al
and al, cl
test byte [ebp - 0x14], 1
jne 0x100cff25
test al, al
jne 0x100cff25
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.nss3.dll_PR_Sleep
mov edi, dword [esi + 0x20]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100cfe64
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x68]
test al, 2
jne 0x100cfd76
jmp 0x100cff6f
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov ebx, eax
jmp 0x100cfe42
mov dword [esp + 4], 0
mov dword [esp], 0xffffe09a
jmp 0x100cfea9
and eax, 0xfffffffe
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [esp + 4], 0
mov dword [esp], 0xffffe098
call sym.nss3.dll_PR_SetError
xor ebx, ebx
jmp 0x100cff1b
mov dword [ebx + 0x84], eax
mov word [ebx + 0x82], si
mov eax, dword [0x101f33ac]
mov dword [esp], eax
call fcn.100d3140
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x10], eax
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 0x100cffac
mov esi, dword [ebp - 0x10]
lea eax, [esi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esi + 8], edi
mov eax, dword [ebp - 0x18]
and byte [eax + 0x68], 0xfe
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
lock inc dword [ebx + 0x48]
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
test al, al
mov eax, 0xffffe043
mov ebx, 0xffffe098
cmovne ebx, eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100cffc3
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x68]
jmp 0x100cff74
mov ebx, 0xffffe098
and eax, 0xfffffffe
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym.nss3.dll_PR_Unlock
mov dword [esp], ebx
mov dword [esp + 4], 0
jmp 0x100cfea9
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100cfd49
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x100cfef0
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov dword [ebp - 0x10], eax
jmp 0x100cff52