Function at 0x10003a60
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f2f50], 0
je 0x10003ce5
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x10003cf9
mov esi, eax
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x10003cef
mov dword [esi], esi
mov dword [esi + 4], esi
mov eax, esi
add eax, 0xc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [0x101f2f58], esi
cmp dword [0x101f2f50], 0
je 0x10003d00
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x10003d14
mov esi, eax
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x10003d0a
mov dword [esi], esi
mov dword [esi + 4], esi
mov eax, esi
add eax, 0xc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [0x101f2fd8], esi
xor ebx, ebx
inc ebx
mov esi, dword [sym.imp.mozglue.dll_calloc]
push 0x2c
push ebx
call esi
add esp, 8
mov edi, eax
mov eax, dword [0x101f25a0]
add eax, ebp
add eax, 7
mov cl, byte [0x101f259c]
shr eax, cl
shl eax, cl
mov dword [edi + 0x18], eax
push 0x144
push ebx
call esi
add esp, 8
test eax, eax
je 0x10003d25
mov esi, eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
cmp ecx, 3
mov eax, 3
cmovl eax, ecx
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
mov dword [esi], 2
lea eax, [esi + 0xc8]
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov eax, esi
add eax, 0x40
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
cmp eax, 0xffffffff
je 0x10003d1b
push esi
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, 0x101f2f60
cmp dword [ebp + 8], 1
mov ecx, ebx
je 0x10003d31
inc dword [eax]
mov dword [0x101f2fdc], ecx
mov dword [esi + 0xe4], ebx
mov eax, ebx
mov ebx, dword [0x101f2fd8]
push 0x84
push eax
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x10003d47
mov edi, 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 0x10003d58
mov dword [edi], ebx
mov eax, edi
add eax, 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [0x101f2fe0], edi
or byte [esi + 0xe0], 0x88
push esi
call fcn.10063e00
add esp, 4
lea eax, [esi + 0xb0]
mov dword [esi + 0xb0], 0x101f1528
mov ecx, dword [0x101f152c]
mov dword [esi + 0xb4], ecx
mov dword [ecx], eax
inc dword [0x101f2f80]
mov dword [0x101f152c], eax
mov dword [0x101f2fd4], 0
cmp dword [0x101f2f50], 0
je 0x10003d78
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x10003d8c
mov esi, eax
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x10003d82
mov dword [esi], esi
mov dword [esi + 4], esi
mov eax, esi
add eax, 0xc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [0x101f2f84], esi
mov dword [0x101f2f88], 0
mov eax, 0x101f2f8c
mov dword [0x101f2f8c], eax
mov dword [0x101f2f90], eax
mov eax, 0x101f2f94
mov dword [0x101f2f94], eax
mov dword [0x101f2f98], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100029e0
jmp 0x10003a7e
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x10003abc
call fcn.100029e0
jmp 0x10003acf
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x10003b0d
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
call sym.nss3.dll_PR_Abort
xor esi, esi
jmp 0x10003c17
mov dword [esi + 0xe0], 1
xor ecx, ecx
mov eax, 0x101f2f5c
jmp 0x10003bba
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10003d71
push 0
push 0xffffe8aa
call sym.nss3.dll_PR_SetError
add esp, 8
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
jmp 0x10003c11
call fcn.100029e0
jmp 0x10003c67
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x10003ca5