Function at 0x100e27c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov ebx, dword [ebp + 0x24]
test eax, eax
cmovns ecx, eax
mov eax, 3
cmp ecx, 4
cmovl eax, ecx
cmp dword [0x101d4d40], 0
mov dword [ebp - 0x10], eax
je 0x100e2878
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
bt ebx, 9
jb 0x100e280d
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e2867
mov cl, byte [0x101d4d1c]
xor eax, eax
mov edx, dword [ebp + 0x1c]
inc eax
test edi, edi
cmove edi, eax
shl eax, cl
lea esi, [esi + eax - 1]
lea eax, [edi - 1]
shr esi, cl
shl esi, cl
cmp eax, 1
mov eax, dword [ebp + 8]
ja 0x100e2882
and ebx, 0xfffffd7f
cmp dword [0x101d5730], 0
lea ecx, [ebx + 0x80]
jne 0x100e29ce
push ecx
push esi
push edx
push edi
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call sym.nss3.dll__PR_NativeCreateThread
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100e280d
call fcn.100da0a0
jmp 0x100e27f1
mov ecx, esi
call fcn.100e16f0
test eax, eax
je 0x100e2b0e
mov edi, dword [eax + 0x18]
mov esi, eax
xor ecx, ecx
lea eax, [edi - 0x144]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x24], eax
push 0x144
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [edi - 0x54], 1
mov dword [edi - 0x124], eax
mov dword [edi - 0x120], eax
mov eax, dword [ebp - 0x10]
mov dword [edi - 0x134], esi
mov dword [ebp - 0x10], edi
mov dword [edi - 0x140], eax
mov eax, dword [ebp + 0xc]
mov dword [edi - 0x138], eax
mov eax, dword [ebp + 0x10]
mov dword [edi - 0x13c], eax
lea eax, [edi - 0x7c]
mov dword [edi - 0x7c], eax
mov dword [edi - 0x78], eax
push dword [ebp - 0x14]
call fcn.100d65c0
add esp, 4
cmp eax, 0xffffffff
je 0x100e2b55
mov eax, dword [ebp - 0x10]
lea esi, [eax - 0x104]
push esi
call sym.nss3.dll__PR_MD_NEW_LOCK
add esp, 4
cmp eax, 0xffffffff
je 0x100e2ba7
cmp dword [ebp + 0x1c], 0
je 0x100e2be8
mov esi, dword [0x101d5718]
call fcn.100d5280
mov edi, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], edi
mov dword [ecx - 0x64], ebx
mov eax, dword [0x101d4dc8]
inc eax
cmp dword [ebp + 8], 1
mov dword [0x101d4dc8], eax
mov dword [ecx - 0x68], eax
mov eax, 0x101d4d78
jne 0x100e2975
mov eax, dword [ebp - 0x10]
or ebx, 1
mov dword [eax - 0x64], ebx
mov eax, 0x101d4d7c
inc dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [eax], 1
mov esi, dword [0x101d5718]
call fcn.100d5280
cmp dword [esi + 8], eax
jne 0x100e29a3
mov dword [esi + 8], 0
add esi, 0x1c
push esi
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
push dword [0x101d4d38]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, dword [ebp - 0x10]
mov dword [ecx - 0x58], eax
test byte [ecx - 0x63], 2
jne 0x100e2bd9
push 0
push 1
mov eax, dword [ebp - 0x10]
push dword [eax - 0x44]
jmp 0x100e2afd
mov eax, dword [0x101d572c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call fcn.100d5280
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov eax, dword [0x101d5730]
test eax, eax
je 0x100e2b17
mov esi, dword [0x101d5734]
dec eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [edx], ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov dword [0x101d5730], eax
mov edi, dword [0x101d572c]
call fcn.100d5280
cmp dword [edi + 8], eax
jne 0x100e2a42
mov dword [edi + 8], 0
add edi, 0x1c
push edi
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
xor eax, eax
or ebx, 0x81
cmp dword [ebp + 8], 1
mov edx, dword [ebp - 0x18]
mov ecx, 0x101d4d78
mov dword [esi - 0x8c], eax
mov dword [esi - 0x90], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], eax
mov dword [esi - 0xa4], eax
lea eax, [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
cmove edx, ebx
mov dword [esi - 0xac], eax
mov eax, dword [ebp + 0x10]
mov dword [esi - 0xb0], eax
mov eax, 0x101d4d7c
mov dword [esi + 0x28], edx
cmove ecx, eax
lea eax, [esi - 0xb8]
lock inc dword [ecx]
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 0x14], eax
mov edi, dword [esi + 0x30]
je 0x100e2b89
test edi, edi
je 0x100e2ad6
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 + 0x30], 0
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x48]
mov dword [esi - 0xb4], ecx
push ecx
push eax
call fcn.100d6730
add esp, 8
mov dword [esi - 0xb8], 2
push 0
push 1
push dword [esi + 0x48]
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
mov eax, dword [ebp - 0x14]
add esp, 0x10
jmp 0x100e2862
push 0
push 0xffffe890
jmp 0x100e2b75
mov ebx, dword [0x101d572c]
call fcn.100d5280
cmp dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x18]
jne 0x100e284c
mov dword [ebx + 8], 0
add ebx, 0x1c
push ebx
call sym.nss3.dll__PR_MD_UNLOCK
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x100e284c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0x54], 1
je 0x100e2c3f
push dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push 0
push 0xffffe8aa
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebp - 0x14], 0
jmp 0x100e2b03
test edi, edi
jne 0x100e2ad6
push dword [0x101d4dcc]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov dword [esi + 0x30], eax
jmp 0x100e2ad6
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0x54], 1
je 0x100e2c3f
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.mozglue.dll_free]
push dword [edi - 0x120]
call esi
add esp, 4
mov dword [edi - 0x120], 0
push dword [ebp - 0x14]
call esi
jmp 0x100e2b6b
push 0
push 1
push dword [0x100]
jmp 0x100e2afd
push dword [0x101d4dcc]
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov ecx, dword [ebp - 0x10]
test eax, eax
mov dword [ecx - 0x5c], eax
jne 0x100e292e
push esi
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0x54], 1
je 0x100e2c52
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.mozglue.dll_free]
push dword [edi - 0x120]
call esi
add esp, 4
mov dword [edi - 0x120], 0
push dword [ebp - 0x14]
call esi
add esp, 4
jmp 0x100e2b7d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0x134]
call fcn.100e18c0
jmp 0x100e2b6e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0x134]
call fcn.100e18c0
jmp 0x100e2b7d