Function at 0x1006a9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push 0x144
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1006ac1c
mov edi, eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov eax, 0
cmovg eax, ecx
cmp eax, 3
mov ecx, 3
cmovl ecx, eax
mov dword [edi + 4], ecx
mov dword [edi], 2
lea eax, [edi + 0xc8]
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov eax, edi
add eax, 0x40
mov dword [ebp - 0x10], eax
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
cmp eax, 0xffffffff
je 0x1006ac12
mov esi, dword [0x101f5008]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1006ab78
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ecx, dword [ebp + 0x24]
mov eax, ecx
or eax, 0x80
mov dword [edi + 0xe0], eax
mov eax, dword [0x101f4f94]
inc eax
mov dword [0x101f4f94], eax
mov dword [edi + 0xdc], eax
mov eax, 0x101f4f90
cmp dword [ebp + 8], 1
je 0x1006ab62
inc dword [eax]
mov esi, dword [0x101f5008]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1006ab95
cmp dword [esi + 8], eax
jne 0x1006aaab
mov dword [esi + 8], 0
add esi, 0x1c
push esi
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
push 0x2c
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
je 0x1006abb0
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov edx, dword [ebp + 0x1c]
test edx, edx
jne 0x1006ab33
mov esi, dword [0x101f4f88]
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1006abc1
mov ebx, eax
mov dword [eax + 0x74], 0x66666666
add eax, 0xc
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x1006abd2
mov dword [ebx], esi
mov eax, ebx
add eax, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [edi + 0xe8], ebx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [edi], 2
push ecx
push edx
push eax
push dword [ebp + 0x14]
push 0x1001df70
push edi
call fcn.1006ac70
add esp, 0x18
test eax, eax
jne 0x1006ac23
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
or ecx, 0x81
mov dword [edi + 0xe0], ecx
mov eax, 0x101f4f8c
jmp 0x1006aa77
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x1006aa3a
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1006aa93
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1006ac02
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1006abeb
push 0
push 0xffffe8aa
call sym.nss3.dll_PR_SetError
add esp, 8
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
mov dword [edi + 0xe8], esi
push dword [edi + 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [edi + 0x10], esi
mov ecx, edi
call fcn.1001e580
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor eax, eax
jmp 0x1006ab5a
mov esi, dword [edi + 0xe8]
test esi, esi
je 0x1006ac52
mov dword [esi + 0x74], 0xffffffff
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [edi + 0xe8], 0
push dword [edi + 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [edi + 0x10], 0
jmp 0x1006ac02