Function at 0x100c46e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ecx, dword [ebp + 0x10]
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 edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
test ecx, ecx
je 0x100c471d
mov edx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x20], ecx
test esi, esi
je 0x100c4727
lock inc dword [esi + 0x48]
jmp 0x100c4781
mov ecx, dword [ebp + 0x1c]
xor edx, edx
cmp ebx, 0x11
jne 0x100c474a
mov esi, dword [edi + 0x1c]
cmp esi, 0x82
jb 0x100c474a
mov edx, dword [edi + 0x18]
cmp byte [edx], 1
sbb esi, 0
shl esi, 3
mov edx, esi
lea esi, [ebp - 0x14]
mov dword [esi], edx
lea edx, [ebp - 0x18]
mov dword [edx], 0x2000
lea eax, [ebp - 0x1c]
mov dword [eax], ebx
push ecx
push 1
push esi
push edx
push eax
call fcn.100d5860
add esp, 0x14
test eax, eax
je 0x100c48d8
mov esi, eax
push 0
push edi
push eax
call sym.nss3.dll_PK11_ImportPublicKey
add esp, 0xc
test eax, eax
je 0x100c482d
cmp dword [esi + 0x30], 0
mov dword [ebp - 0x2c], eax
jne 0x100c47b8
mov edi, dword [esi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c4a22
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 0x100c47e4
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x30], 0
jne 0x100c47f5
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 0x100c4848
mov ebx, dword [esi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c4a05
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp - 0x34]
jmp 0x100c484e
lock dec dword [esi + 0x48]
jne 0x100c483c
push esi
call fcn.100d1c70
add esp, 4
push 0
push 0xffffe00e
jmp 0x100c49e2
cmp dword [esi + 0x30], 0
je 0x100c4802
mov eax, dword [esi]
mov ecx, dword [eax + 0xc2]
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 0x100c4885
mov edi, eax
cmp dword [ebp - 0x30], 0
je 0x100c48e4
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c4949
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xc6]
mov edi, dword [edx + 4]
mov dword [ebp - 0x2c], edi
mov ebx, dword [edx + 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov edi, dword [eax + 8]
call dword [section..00cfg]
push ebx
mov ebx, dword [ebp - 0x34]
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x38]
push ebx
call ecx
add esp, 0x14
mov edi, eax
cmp dword [ebp - 0x30], 0
je 0x100c495e
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c49c3
push 0
push 0xffffe040
jmp 0x100c49e2
cmp dword [esi + 0x30], 0
jne 0x100c492e
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x100c492e
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 0x100c4a3f
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 0x100c4875
lock dec dword [esi + 0x48]
jne 0x100c49d6
push esi
call fcn.100d1c70
add esp, 4
jmp 0x100c49d6
cmp dword [esi + 0x30], 0
jne 0x100c49a8
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x100c49a8
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 0x100c4a5d
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 0x100c48c8
lock dec dword [esi + 0x48]
jne 0x100c49d2
push esi
call fcn.100d1c70
add esp, 4
test edi, edi
je 0x100c4a01
push edi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x100c49ed
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100c481b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x100c47ab
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x100c4918
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x100c4992