Function at 0x100698a0
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 0x10069b0c
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 0x10069b02
mov esi, dword [0x101f2fd8]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10069a68
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 [0x101f2f64]
inc eax
mov dword [0x101f2f64], eax
mov dword [edi + 0xdc], eax
mov eax, 0x101f2f60
cmp dword [ebp + 8], 1
je 0x10069a52
inc dword [eax]
mov esi, dword [0x101f2fd8]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10069a85
cmp dword [esi + 8], eax
jne 0x1006999b
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 0x10069aa0
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 0x10069a23
mov esi, dword [0x101f2f58]
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x10069ab1
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 0x10069ac2
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 0x10063970
push edi
call fcn.10069b60
add esp, 0x18
test eax, eax
jne 0x10069b13
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, 0x101f2f5c
jmp 0x10069967
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x1006992a
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x10069983
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10069af2
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10069adb
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.10063f80
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 0x10069a4a
mov esi, dword [edi + 0xe8]
test esi, esi
je 0x10069b42
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 0x10069af2