Function at 0x1001c370
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f4f80], 0
je 0x1001c5f5
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1001c609
mov esi, eax
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x1001c5ff
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 [0x101f4f88], esi
cmp dword [0x101f4f80], 0
je 0x1001c610
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1001c624
mov esi, eax
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x1001c61a
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 [0x101f5008], 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 [0x101f45d0]
add eax, ebp
add eax, 7
mov cl, byte [0x101f45cc]
shr eax, cl
shl eax, cl
mov dword [edi + 0x18], eax
push 0x144
push ebx
call esi
add esp, 8
test eax, eax
je 0x1001c635
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 0x1001c62b
push esi
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, 0x101f4f90
cmp dword [ebp + 8], 1
mov ecx, ebx
je 0x1001c641
inc dword [eax]
mov dword [0x101f500c], ecx
mov dword [esi + 0xe4], ebx
mov eax, ebx
mov ebx, dword [0x101f5008]
push 0x84
push eax
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1001c657
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 0x1001c668
mov dword [edi], ebx
mov eax, edi
add eax, 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [0x101f5010], edi
or byte [esi + 0xe0], 0x88
push esi
call fcn.1001e400
add esp, 4
lea eax, [esi + 0xb0]
mov dword [esi + 0xb0], 0x101f3550
mov ecx, dword [0x101f3554]
mov dword [esi + 0xb4], ecx
mov dword [ecx], eax
inc dword [0x101f4fb0]
mov dword [0x101f3554], eax
mov dword [0x101f5004], 0
cmp dword [0x101f4f80], 0
je 0x1001c688
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1001c69c
mov esi, eax
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
test eax, eax
jne 0x1001c692
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 [0x101f4fb4], esi
mov dword [0x101f4fb8], 0
mov eax, 0x101f4fbc
mov dword [0x101f4fbc], eax
mov dword [0x101f4fc0], eax
mov eax, 0x101f4fc4
mov dword [0x101f4fc4], eax
mov dword [0x101f4fc8], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1001b2f0
jmp 0x1001c38e
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x1001c3cc
call fcn.1001b2f0
jmp 0x1001c3df
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x1001c41d
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
call sym.nss3.dll_PR_Abort
xor esi, esi
jmp 0x1001c527
mov dword [esi + 0xe0], 1
xor ecx, ecx
mov eax, 0x101f4f8c
jmp 0x1001c4ca
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1001c681
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 0x1001c521
call fcn.1001b2f0
jmp 0x1001c577
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x1001c5b5