Function at 0x100e2540
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
mov ebx, 0
test eax, eax
cmovns ebx, eax
push 0x144
push 1
call dword [sym.imp.mozglue.dll_calloc]
add esp, 8
test eax, eax
je 0x100e26d6
mov ecx, dword [0x101d4d2c]
mov esi, eax
cmp ebx, 4
mov eax, 3
cmovl eax, ebx
mov ebx, esi
mov dword [esi + 4], eax
add ebx, 0x40
lea eax, [esi + 0xc8]
mov dword [esi], 2
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
test ecx, ecx
je 0x100e2720
call dword [section..00cfg]
push 0x1000000
push 0x5dc
push ebx
call ecx
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x100e2731
mov ebx, dword [0x101d5718]
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [esi + 0xa4], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100e26f6
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x24]
mov dword [ebx + 8], edi
mov eax, ecx
or eax, 0x80
mov dword [esi + 0xe0], eax
mov eax, dword [0x101d4dc8]
inc eax
cmp dword [ebp + 8], 1
mov dword [0x101d4dc8], eax
mov dword [esi + 0xdc], eax
mov eax, 0x101d4d78
je 0x100e26e0
mov edi, dword [0x101d5718]
inc dword [eax]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e270c
cmp dword [edi + 8], eax
jne 0x100e265f
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
test eax, eax
mov dword [esi + 0x10], eax
je 0x100e274c
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test ebx, ebx
mov dword [eax + 0x1c], edi
mov dword [esi + 0xc], edx
mov dword [eax + 0x24], esi
mov dword [esi + 8], ecx
jne 0x100e26af
push dword [0x101d4dcc]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
test eax, eax
mov dword [esi + 0xe8], eax
je 0x100e278c
mov eax, dword [ebp + 0x18]
mov dword [esi], 2
push edi
push ebx
push eax
push dword [ebp + 0x14]
push 0x100e1ee0
push esi
call fcn.100d6650
add esp, 0x18
test eax, eax
mov edi, esi
jne 0x100e275d
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
or ecx, 0x81
mov eax, 0x101d4d7c
mov dword [esi + 0xe0], ecx
jmp 0x100e262b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x100e25ee
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100e2647
push 0x5dc
push ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x100e25bc
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
jmp 0x100e26d6
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100e279f
mov edi, dword [esi + 0xe8]
test edi, edi
je 0x100e278c
lea eax, [edi + 0xc]
mov dword [edi + 0x74], 0xffffffff
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.100e23c0
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 0x100e26d6