Function at 0x100e1950
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101d4d40], 0
je 0x100e1c23
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov esi, eax
test eax, eax
je 0x100e19cd
mov ecx, dword [0x101d4d2c]
lea edi, [esi + 0x1c]
test ecx, ecx
je 0x100e1c2d
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push edi
call ecx
test eax, eax
je 0x100e1c3e
mov ecx, esi
xor eax, eax
add ecx, 0xc
mov dword [esi + 0x34], eax
mov dword [esi + 0x80], eax
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
cmp dword [0x101d4d40], 0
mov dword [0x101d4dcc], esi
je 0x100e1c5e
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov esi, eax
test eax, eax
je 0x100e1a3d
mov ecx, dword [0x101d4d2c]
lea edi, [esi + 0x1c]
test ecx, ecx
je 0x100e1c68
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push edi
call ecx
test eax, eax
je 0x100e1c79
mov ecx, esi
xor eax, eax
add ecx, 0xc
mov dword [esi + 0x34], eax
mov dword [esi + 0x80], eax
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov edi, dword [sym.imp.mozglue.dll_calloc]
mov dword [0x101d5718], esi
xor esi, esi
inc esi
push 0x2c
push esi
call edi
mov edx, edi
add esp, 8
mov edi, eax
mov eax, dword [0x101d4d18]
mov cl, byte [0x101d4d1c]
xor ebx, ebx
lea eax, [ebp + eax + 7]
shr eax, cl
shl eax, cl
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovns ebx, eax
push 0x144
mov dword [ebp - 0x14], esi
push esi
call edx
add esp, 8
test eax, eax
je 0x100e1cc3
mov ecx, dword [0x101d4d2c]
mov esi, eax
cmp ebx, 4
mov eax, 3
cmovl eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x10], edi
lea eax, [esi + 0xc8]
lea edi, [esi + 0x40]
mov dword [esi], 2
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
test ecx, ecx
je 0x100e1c99
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push edi
call ecx
test eax, eax
je 0x100e1caa
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0xa4], eax
push esi
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsSetValue]
cmp dword [ebp + 8], 1
mov eax, 0x101d4d78
je 0x100e1cc8
inc dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xe4], 1
mov dword [0x101d571c], eax
push dword [0x101d5718]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
or byte [esi + 0xe0], 0x88
mov dword [0x101d5720], eax
push esi
call fcn.100d65c0
add esp, 4
mov ecx, dword [0x101d3b24]
mov eax, esi
mov dword [esi + 0xb0], 0x101d3b20
add eax, 0xb0
mov dword [esi + 0xb4], ecx
mov dword [ecx], eax
inc dword [0x101d5724]
mov dword [0x101d3b24], eax
mov dword [0x101d5728], 0
cmp dword [0x101d4d40], 0
je 0x100e1ce3
push 0x84
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
mov esi, eax
test eax, eax
je 0x100e1be1
mov ecx, dword [0x101d4d2c]
lea edi, [esi + 0x1c]
test ecx, ecx
je 0x100e1ced
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push edi
call ecx
test eax, eax
je 0x100e1cfe
mov ecx, esi
xor eax, eax
add ecx, 0xc
mov dword [esi + 0x34], eax
mov dword [esi + 0x80], eax
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov eax, 0x101d5734
mov ecx, 0x101d573c
mov dword [0x101d572c], esi
mov dword [0x101d5730], 0
mov dword [0x101d5734], eax
mov dword [0x101d573c], ecx
mov dword [0x101d5738], eax
mov dword [0x101d5740], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100da0a0
jmp 0x100e1970
push 0x5dc
push edi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x100e19aa
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x100e19cd
call fcn.100da0a0
jmp 0x100e19e0
push 0x5dc
push edi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x100e1a1a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x100e1a3d
push 0x5dc
push edi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x100e1add
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
call sym.nss3.dll_PR_Abort
mov eax, 0x101d4d7c
mov dword [esi + 0xe0], 1
mov dword [ebp - 0x14], 0
jmp 0x100e1b0c
call fcn.100da0a0
jmp 0x100e1b84
push 0x5dc
push edi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x100e1bbe
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
jmp 0x100e1be1