Function at 0x100a1630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa0
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x95], 1
mov byte [ebp - 0x96], 0
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0xa0], 0x10
mov edi, dword [edx + 8]
test ebx, ebx
jne 0x100a1682
cmp edi, dword [ebp + 8]
jne 0x100a1682
mov edi, dword [edx + 0xc]
jmp 0x100a1aad
test edi, edi
je 0x100a16fe
push dword [edx + 0xc]
push edi
call fcn.100bd600
add esp, 8
test eax, eax
jne 0x100a16e5
mov ebx, dword [edi + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a1b11
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [edi]
mov esi, dword [edi + 0x38]
mov ecx, dword [eax + 0x5a]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
call dword [section..00cfg]
push ebx
push esi
call ecx
add esp, 8
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp + 0x10]
lock dec dword [edi + 0x48]
jne 0x100a16f4
push edi
call fcn.100cb320
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], 0
xor esi, esi
inc esi
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x90], eax
mov eax, 4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x100
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x96]
lea edi, [ebp - 0x95]
test ebx, ebx
cmovne eax, edi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
je 0x100a1770
mov eax, dword [edx + 4]
dec eax
cmp eax, 5
ja case.0x100a1764.3
jmp dword [eax*4 + 0x101bd0a4]
lea eax, [edx + 0x14]
jmp 0x100a1784
xor eax, eax
lea ebx, [ebp - 0x70]
jmp 0x100a17ae
lea eax, [edx + 0x38]
jmp 0x100a1784
lea eax, [edx + 0x2c]
jmp 0x100a1784
lea eax, [edx + 0x20]
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
test eax, eax
mov edx, dword [ebp + 0xc]
je case.0x100a1764.3
lea ebx, [ebp - 0x64]
mov dword [ebx - 0xc], 0x102
mov ecx, dword [eax + 4]
mov dword [ebx - 8], ecx
mov ecx, dword [eax + 8]
mov dword [ebx - 4], ecx
mov ecx, dword [edx + 4]
dec ecx
cmp ecx, 5
ja case.0x100a17c1.5
mov dword [ebp - 0xac], eax
jmp dword [ecx*4 + 0x101bd0bc]
mov dword [ebp - 0xa0], 0
mov dword [ebx], 0x106
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0x104
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], 0x10a
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
lea esi, [ebx + 0x24]
mov dword [ebx + 0x24], 0x120
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x122
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x34], eax
lea eax, [edx + 0x28]
jmp 0x100a18e4
mov dword [ebp - 0xa0], esi
mov dword [ebx], 0x10a
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
lea esi, [ebx + 0xc]
mov dword [ebx + 0xc], 0x130
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x131
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x132
mov eax, dword [edx + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x34]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x11
mov eax, dword [edx + 0x3c]
mov dword [ebx + 0x34], eax
lea eax, [edx + 0x40]
jmp 0x100a18e4
mov dword [ebp - 0xa0], esi
mov dword [ebx], 0x10a
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
lea esi, [ebx + 0xc]
mov dword [ebx + 0xc], 0x130
mov eax, dword [edx + 0x64]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x68]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x131
mov eax, dword [edx + 0x70]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x74]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x132
mov eax, dword [edx + 0x7c]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x80]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0x11
mov eax, dword [edx + 0x54]
mov dword [ebx + 0x34], eax
lea eax, [edx + 0x58]
mov dword [ebp - 0xa8], 0
mov ecx, 5
mov edx, 4
jmp 0x100a1a01
mov dword [ebp - 0xa0], 2
mov dword [ebx], 0x10c
mov dword [ebx + 4], edi
mov dword [ebx + 8], 1
lea esi, [ebx + 0xc]
mov dword [ebx + 0xc], 0x130
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x132
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x11
mov eax, dword [edx + 0x30]
mov dword [ebx + 0x28], eax
lea eax, [edx + 0x34]
mov dword [ebp - 0xa8], 0
mov ecx, 4
mov edx, 3
jmp 0x100a1a01
test eax, eax
je case.0x100a1764.3
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push 0
push 0xffffe00e
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x100a1aad
mov dword [ebp - 0xa0], 3
mov dword [ebx], 0x10a
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0x10c
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], 0x180
mov eax, dword [edx + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x20], eax
push str.NSS_USE_DECODED_CKA_EC_POINT
mov esi, edx
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
je 0x100a1ac4
mov dword [ebx + 0x24], 0x181
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 0x28]
mov dword [ebp - 0xa8], 0
mov ecx, 4
mov edx, 3
xor esi, esi
mov eax, dword [eax]
lea edx, [edx + edx*2]
mov dword [ebx + edx*4 + 8], eax
lea eax, [ecx + ecx*2]
lea eax, [ebx + eax*4]
lea edx, [ebp - 0x94]
mov ecx, eax
sub ecx, edx
sar ecx, 2
imul edi, ecx, 0xaaaaaaab
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 6
je 0x100a1a48
sub eax, esi
je 0x100a1a48
sar eax, 2
imul ebx, eax, 0xaaaaaaab
push esi
call fcn.100bd800
add esp, 4
add esi, 0xc
dec ebx
jne 0x100a1a39
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x94]
push eax
push 0
mov esi, dword [ebp + 8]
push esi
call fcn.100bd990
add esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x100a1a7f
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x100a1a94
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor edi, edi
test ebx, ebx
jne 0x100a1aad
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], edi
lock inc dword [esi + 0x48]
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x20]
xor esi, esi
push sym.nss3.dll_SEC_OctetStringTemplate_Util
push eax
push esi
push esi
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
test eax, eax
je 0x100a1af8
mov dword [ebx + 0x24], 0x181
mov ecx, dword [eax + 4]
mov dword [ebx + 0x28], ecx
mov dword [ebp - 0xa8], eax
add eax, 8
jmp 0x100a195a
xor edi, edi
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x100a1aad
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100a1aad
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100a16af