Function at 0x1006e2a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0x14]
xor edi, edi
test eax, eax
mov ebx, 0
cmovns ebx, eax
push 0x144
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x1006e43d
mov esi, eax
cmp ebx, 3
mov eax, 3
cmovl eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x10], 0
mov dword [esi], 2
lea eax, [esi + 0xc8]
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov ebx, esi
add ebx, 0x40
mov ecx, dword [0x101de1ec]
test ecx, ecx
je 0x1006e495
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push ebx
call ecx
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x1006e4a6
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0xa4], eax
mov ebx, dword [0x101debd8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1006e45d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ecx, dword [ebp + 0x24]
mov eax, ecx
or eax, 0x80
mov dword [esi + 0xe0], eax
mov eax, dword [0x101de288]
inc eax
mov dword [0x101de288], eax
mov dword [esi + 0xdc], eax
mov eax, 0x101de238
cmp dword [ebp + 8], 1
je 0x1006e447
inc dword [eax]
mov edi, dword [0x101debd8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1006e47a
cmp dword [edi + 8], eax
jne 0x1006e3c6
mov dword [edi + 8], 0
add edi, 0x1c
push edi
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 [esi + 0x10], eax
test eax, eax
je 0x1006e4c4
mov edi, dword [ebp + 0x20]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x24], esi
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
jne 0x1006e416
push dword [0x101de28c]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov dword [esi + 0xe8], eax
test eax, eax
je 0x1006e504
mov eax, dword [ebp + 0x18]
mov dword [esi], 2
push edi
push ebx
push eax
push dword [ebp + 0x14]
push 0x10069150
push esi
call fcn.1006e540
add esp, 0x18
mov edi, esi
test eax, eax
jne 0x1006e4d5
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
or ecx, 0x81
mov dword [esi + 0xe0], ecx
mov eax, 0x101de23c
jmp 0x1006e392
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x1006e355
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1006e3ae
push 0x5dc
push ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x1006e323
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10001070
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1006e43d
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1006e517
mov edi, dword [esi + 0xe8]
test edi, edi
je 0x1006e504
mov dword [edi + 0x74], 0xffffffff
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0xe8], 0
push dword [esi + 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x10], 0
mov ecx, esi
call fcn.10069770
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
jmp 0x1006e43d