Function at 0x100c4310
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [edi + 8]
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov edx, dword [edi + 4]
lea ecx, [edx - 1]
cmp ecx, 5
ja 0x100c4348
mov ecx, dword [edx*4 + 0x101a9e40]
jmp 0x100c434b
xor ecx, ecx
dec ecx
mov dword [ebp - 0x28], ecx
test esi, esi
je 0x100c4358
lock inc dword [esi + 0x48]
jmp 0x100c4396
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x14]
mov dword [edx], 0
lea esi, [ebp - 0x18]
mov dword [esi], 0x4000
lea ebx, [ebp - 0x1c]
mov dword [ebx], ecx
push eax
push 1
push edx
push esi
push ebx
call fcn.100d5860
add esp, 0x14
test eax, eax
je 0x100c44ee
mov esi, eax
push 0
push edi
push eax
call sym.nss3.dll_PK11_ImportPublicKey
add esp, 0xc
test eax, eax
je 0x100c4442
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x30], 0
jne 0x100c43cd
mov edi, dword [esi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c4638
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [esi]
mov edi, dword [esi + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push esi
push 4
push edi
call ecx
add esp, 0x14
mov edi, eax
test eax, eax
je 0x100c43f9
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x30], 0
jne 0x100c440a
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edi
test edi, edi
mov dword [ebp - 0x34], ebx
je 0x100c445d
mov ebx, dword [esi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c461b
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp - 0x34]
jmp 0x100c4463
lock dec dword [esi + 0x48]
jne 0x100c4451
push esi
call fcn.100d1c70
add esp, 4
push 0
push 0xffffe00e
jmp 0x100c44f5
cmp dword [esi + 0x30], 0
je 0x100c4417
mov eax, dword [esi]
mov ecx, dword [eax + 0xd2]
call dword [section..00cfg]
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
je 0x100c449a
mov edi, eax
cmp dword [ebp - 0x30], 0
je 0x100c4505
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c45dd
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xd6]
mov edi, dword [edx + 4]
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov ebx, dword [eax + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
mov ebx, dword [ebp - 0x34]
push dword [ebp - 0x2c]
push ebx
call ecx
add esp, 0x14
mov edi, eax
cmp dword [ebp - 0x30], 0
je 0x100c456b
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c45d0
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x100c4603
cmp dword [esi + 0x30], 0
jne 0x100c454f
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x100c454f
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100c4655
mov ebx, dword [ebp - 0x30]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x100c45dd
jmp 0x100c448a
cmp dword [esi + 0x30], 0
jne 0x100c45b5
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x100c45b5
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100c4673
mov ebx, dword [ebp - 0x30]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
cmp dword [esi + 0x30], 0
je 0x100c44de
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
test edi, edi
je 0x100c4617
push edi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
lock dec dword [esi + 0x48]
jne 0x100c4603
push esi
call fcn.100d1c70
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x100c45f4
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100c4430
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x100c43c0
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x100c4539
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x100c459f