Function at 0x100aeb90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x30]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.100ae980
add esp, 0x14
xor ebx, ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100aedb4
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100aebe7
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], 0
je 0x100aebf5
mov esi, dword [edi + 0x14]
jmp 0x100aebf8
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x14], eax
jmp 0x100aecb4
mov esi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100aeddd
mov ebx, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x42]
call dword [section..00cfg]
lea esi, [ebp - 0x14]
push esi
push 0
push ebx
call ecx
add esp, 0xc
push dword [esi]
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100aec8a
mov ebx, eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x42]
call dword [section..00cfg]
push esi
push ebx
push dword [ebp - 0x18]
call ecx
add esp, 0xc
test eax, eax
je 0x100aec8e
mov esi, eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x100aec90
mov esi, ebx
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
mov ebx, 0
je 0x100aeca9
cmp dword [eax + 0x30], 0
je 0x100aeca9
push dword [edi + 0x14]
jmp 0x100aecac
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x100aeda5
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x18], esi
je 0x100aecd6
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], 0
je 0x100aed00
mov esi, dword [edi + 0x14]
jmp 0x100aed03
mov eax, dword [edi + 0x20]
test eax, eax
je 0x100aece9
mov ecx, dword [ebp - 0x14]
cmp dword [edi + 0x24], ecx
jae 0x100aedc8
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100aed8f
mov esi, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100aedf8
mov ebx, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov esi, dword [ebp - 0x14]
mov edx, edi
mov edi, dword [edi + 8]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x46]
mov ebx, dword [edx + 0x10]
call dword [section..00cfg]
push 0
push edi
push esi
push dword [ebp - 0x18]
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x100aed69
push eax
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100aed6b
xor esi, esi
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc]
je 0x100aed84
cmp dword [eax + 0x30], 0
je 0x100aed84
push dword [edi + 0x14]
jmp 0x100aed87
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x100aeda1
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100aedb2
push 1
push edi
call sym.nss3.dll_PK11_DestroyContext
add esp, 8
jmp 0x100aedb4
mov ebx, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], eax
xor esi, esi
jmp 0x100aed8f
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100aec0c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100aed17