Function at 0x100cffe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x101f3218], 0
je 0x100d0022
mov ecx, esi
push dword [ebp + 0x10]
call fcn.100cfd10
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
jmp 0x100d012a
cmp byte [esi + 0x6c], 2
jne 0x100d002e
cmp byte [esi + 0x6d], 0
je 0x100d0002
mov edi, dword [esi + 0x20]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100d0270
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x68]
test al, 1
jne 0x100d00fc
or eax, 4
mov dword [esi + 0x68], eax
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x10e]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 0xc]
call ecx
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x20]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100d028d
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ecx, dword [esi + 0x68]
mov eax, ecx
and eax, 0xfffffffb
mov dword [esi + 0x68], eax
test cl, 1
jne 0x100d00fc
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d0132
cmp eax, 0x190
je 0x100d010d
cmp eax, 0x54
jne 0x100d01e4
mov ecx, esi
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.100cfd10
add esp, 4
mov edi, eax
jmp 0x100d011e
and eax, 0xfffffffe
mov dword [esi + 0x68], eax
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0
push 0xffffe098
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x101f33ac]
mov edi, 0xffffe09a
mov eax, 0xffffe09a
test ecx, ecx
je 0x100d0187
mov ebx, dword [ebp - 0x14]
push ecx
call fcn.100d3060
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100d016f
mov ecx, dword [esi + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], ebx
je 0x100d01f5
inc edx
cmp eax, edx
jne 0x100d015e
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
mov eax, 0xffffe043
mov edi, 0xffffe09a
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push esi
call sym.nss3.dll_SECMOD_UpdateSlotList
add esp, 4
mov eax, dword [0x101f33ac]
test eax, eax
je 0x100d01dc
mov ebx, dword [ebp - 0x14]
push eax
call fcn.100d3060
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x100d01c9
mov ecx, dword [esi + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], ebx
je 0x100d01f5
inc edx
cmp eax, edx
jne 0x100d01bc
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
mov edi, 0xffffe043
push 0
push edi
jmp 0x100d0114
push eax
call fcn.100a9930
add esp, 4
push 0
push eax
jmp 0x100d0114
lock inc dword [edi + 0x48]
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
push edi
call fcn.100cbb00
add esp, 4
test eax, eax
je 0x100d011e
mov esi, eax
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x100d0262
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x18], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100d02aa
mov eax, dword [ebp - 0x18]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], eax
mov dword [ebx + 0x34], 0
push dword [ebx + 0x44]
call sym.nss3.dll_PR_Unlock
add esp, 4
push esi
call fcn.10095540
add esp, 4
jmp 0x100d011e
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100d0047
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100d00a9
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x100d023a