Function at 0x100a9520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x100a955f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100a955f
mov eax, dword [edi + 0xc]
cmp eax, dword [ecx + 8]
je 0x100a9573
sub esp, 0x18
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x101bb100]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call fcn.100c6000
add esp, 0x18
jmp 0x100a9579
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100a96a0
lock inc dword [ecx + 0x2c]
mov eax, ecx
mov dword [ebp - 0x14], eax
mov dword [edi + 0x2c], 0
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a9597
cmp dword [eax + 0x30], 0
je 0x100a9597
mov esi, dword [edi + 0x14]
jmp 0x100a959a
mov esi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100a972d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
cmp dword [edi + 0x18], 0
je 0x100a95ea
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x100a962c
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0xa2]
mov ebx, dword [edx + 4]
call dword [section..00cfg]
push ebx
push esi
call ecx
add esp, 8
jmp 0x100a965a
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100a9662
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [edi + 0x10]
call dword [section..00cfg]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100a95c3
push eax
call fcn.100a9930
add esp, 4
jmp 0x100a9667
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x1c]
test esi, esi
je 0x100a96a5
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x9e]
mov ebx, dword [edx + 0x20]
call dword [section..00cfg]
push ebx
push esi
push dword [ebp - 0x10]
call ecx
add esp, 0xc
test eax, eax
jne 0x100a96aa
xor ebx, ebx
jmp 0x100a96c1
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a9688
cmp dword [eax + 0x30], 0
je 0x100a9688
add edi, 0x14
mov eax, edi
jmp 0x100a968b
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebp - 0x14]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
dec ebx
jmp 0x100a9723
mov eax, 0x63
push eax
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
cmp dword [edi + 0x18], 0
je 0x100a96cc
mov eax, dword [edi + 0xc]
jmp 0x100a96f9
lea eax, [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, edi
push eax
call fcn.100a71c0
add esp, 4
mov dword [edi + 0x20], eax
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or ebx, ecx
mov ecx, edi
call fcn.100a79b0
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100a9706
cmp dword [eax + 0x30], 0
je 0x100a9706
add edi, 0x14
mov eax, edi
jmp 0x100a9709
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100a9723
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100a95b0