Function at 0x100aaae0
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 0x100aab1f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100aab1f
mov eax, dword [edi + 0xc]
cmp eax, dword [ecx + 8]
je 0x100aab33
sub esp, 0x18
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x101bd2e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call fcn.100c75b0
add esp, 0x18
jmp 0x100aab39
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100aac60
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 0x100aab57
cmp dword [eax + 0x30], 0
je 0x100aab57
mov esi, dword [edi + 0x14]
jmp 0x100aab5a
mov esi, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100aaced
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
cmp dword [edi + 0x18], 0
je 0x100aabaa
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x100aabec
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 0x100aac1a
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100aac22
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 0x100aab83
push eax
call fcn.100aaef0
add esp, 4
jmp 0x100aac27
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x1c]
test esi, esi
je 0x100aac65
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 0x100aac6a
xor ebx, ebx
jmp 0x100aac81
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 0x100aac48
cmp dword [eax + 0x30], 0
je 0x100aac48
add edi, 0x14
mov eax, edi
jmp 0x100aac4b
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 0x100aace3
mov eax, 0x63
push eax
call fcn.100aaef0
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 0x100aac8c
mov eax, dword [edi + 0xc]
jmp 0x100aacb9
lea eax, [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, edi
push eax
call fcn.100a8780
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.100a8f70
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100aacc6
cmp dword [eax + 0x30], 0
je 0x100aacc6
add edi, 0x14
mov eax, edi
jmp 0x100aacc9
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100aace3
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 [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100aab70