Function at 0x100a79e0
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 [0x101db014]
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 0x100a7a32
cmp edi, dword [ebp + 8]
jne 0x100a7a32
mov edi, dword [edx + 0xc]
jmp 0x100a7dc5
test edi, edi
je 0x100a7aae
push dword [edx + 0xc]
push edi
call fcn.100c3860
add esp, 8
test eax, eax
jne 0x100a7a95
mov ebx, dword [edi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a7eab
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 0x100a7aa4
push edi
call fcn.100d1c70
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 0x100a7b20
mov eax, dword [edx + 4]
dec eax
cmp eax, 5
ja case.0x100a7b14.3
jmp dword [eax*4 + 0x101a7b14]
lea eax, [edx + 0x14]
jmp 0x100a7b34
xor eax, eax
lea ebx, [ebp - 0x70]
jmp 0x100a7b5e
lea eax, [edx + 0x38]
jmp 0x100a7b34
lea eax, [edx + 0x2c]
jmp 0x100a7b34
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.0x100a7b14.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.0x100a7b71.5
mov dword [ebp - 0xac], eax
jmp dword [ecx*4 + 0x101a7b2c]
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 0x100a7c94
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 0x100a7c94
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]
lea ecx, [ebx + 0x38]
add ebx, 0x3c
jmp 0x100a7cf5
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]
lea ecx, [ebx + 0x2c]
add ebx, 0x30
mov dword [ebp - 0xa8], 0
mov eax, dword [eax]
mov dword [ecx], eax
lea ecx, [ebp - 0x94]
mov eax, ebx
sub eax, ecx
sar eax, 2
imul edi, eax, 0xaaaaaaab
cmp dword [edx + 4], 6
je 0x100a7d38
sub ebx, esi
je 0x100a7d38
sar ebx, 2
imul ebx, ebx, 0xaaaaaaab
push esi
call fcn.100c3a70
add esp, 4
add esi, 0xc
dec ebx
jne 0x100a7d29
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.100c3c00
add esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x100a7d6f
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x100a7d84
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor edi, edi
test ebx, ebx
jne 0x100a7dc5
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
lock inc dword [esi + 0x48]
mov dword [ecx + 8], esi
mov edi, dword [ebp - 0xa4]
jmp 0x100a7dc5
test eax, eax
je case.0x100a7b14.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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
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 edi, edx
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
je 0x100a7e4e
mov dword [ebx + 0x24], 0x181
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [edi + 0x28]
lea ecx, [ebx + 0x2c]
add ebx, 0x30
mov dword [ebp - 0xa8], 0
xor esi, esi
mov edx, edi
jmp 0x100a7cff
lea eax, [edi + 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 0x100a7e8b
mov dword [ebx + 0x24], 0x181
mov ecx, dword [eax + 4]
mov dword [ebx + 0x28], ecx
mov dword [ebp - 0xa8], eax
add eax, 8
lea ecx, [ebx + 0x2c]
add ebx, 0x30
mov edx, dword [ebp + 0xc]
jmp 0x100a7cff
xor edi, edi
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x100a7dc5
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x100a7dc5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a7a5f