Function at 0x100e3970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100e3c44
mov ebx, dword [ebp + 8]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100e3c5a
lea eax, [ebx + 0x20]
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 0xc], edi
mov eax, dword [ebx + 0x194]
test eax, eax
jne 0x100e3aaa
xor eax, eax
mov dword [ebx + 0x88], esi
inc eax
mov dword [ebx + 0x194], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100e3c70
cmp dword [ebx + 0xc], eax
jne 0x100e3a0e
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x38], 0
jne 0x100e3a20
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x60]
lea esi, [ebx + 0x38]
mov ecx, 0x14
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x84], ecx
cmp dword [eax], 0
jle 0x100e3a60
xor esi, esi
lea edx, [esi + esi*2]
mov edi, dword [eax + edx*4 + 4]
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x100e3b56
mov dword [eax + edx*4 + 0xc], 0
inc esi
cmp esi, dword [eax]
jl 0x100e3a41
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x100e3a3a
lea esi, [ebp - 0x60]
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, esi
mov ebx, esi
mov eax, dword [ebx]
test eax, eax
jle 0x100e3a93
xor edi, edi
lea ecx, [edi + edi*2]
mov ecx, dword [esi + ecx*4 + 0xc]
test ecx, ecx
jne 0x100e3bba
inc edi
cmp edi, eax
jl 0x100e3a7f
mov ebx, dword [esi + 0x4c]
cmp edx, esi
jne 0x100e3c9a
test ebx, ebx
mov esi, ebx
je 0x100e3a0e
jmp 0x100e3a77
cmp dword [ebx + 0x88], esi
je 0x100e39d8
lea eax, [ebx + 0x8c]
lea ecx, [ebx + 0x100]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x70], ecx
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edx, eax
test eax, eax
je 0x100e3c84
mov eax, dword [ebp - 0x64]
mov ecx, 0x1002
mov edi, dword [eax]
cmp dword [edi + 8], edx
jne 0x100e3b44
mov eax, dword [edx + 0xe0]
and eax, ecx
cmp eax, 2
je 0x100e3cad
mov eax, dword [ebp - 0x64]
mov dword [edx + 0xd8], eax
xor eax, eax
mov dword [edi + 8], eax
lea eax, [edi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], edx
call sym.nss3.dll__PR_MD_WAIT_CV
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
xor eax, eax
mov edx, 0x1002
mov dword [ecx + 0xd8], eax
mov dword [edi + 8], ecx
mov eax, dword [ecx + 0xe0]
and eax, edx
cmp eax, 2
je 0x100e3cb8
cmp dword [ebx + 0x194], 0
je 0x100e39d0
jmp 0x100e3ac8
mov ecx, dword [eax + edx*4 + 8]
cmp ecx, 0xffffffff
mov dword [ebp - 0x64], ecx
je 0x100e3c19
lea ecx, [eax + edx*4 + 8]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jle 0x100e3bf2
mov dword [ebx + 0x104], 0
cmp ecx, 2
lea ecx, [ecx - 1]
mov ebx, dword [ebx + 0x13c]
jl 0x100e3b90
test ebx, ebx
jne 0x100e3b74
mov dword [ebp - 0x64], ecx
mov ecx, dword [edi + 4]
test ebx, ebx
mov dword [eax + edx*4 + 0xc], ecx
mov dword [edi + 4], ebx
jne 0x100e3bf9
lea edx, [edi + 8]
mov dword [edx], 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x6c]
sub ecx, dword [edx]
add dword [edi + 0xc], ecx
jmp 0x100e3a5b
mov edx, dword [ecx + 0x13c]
mov eax, dword [ecx + 0x100]
mov dword [ebp - 0x68], edx
xor edx, edx
mov dword [ecx + 0x13c], edx
mov dword [ecx + 0x138], edx
push edx
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x100e3bba
mov eax, dword [ebx]
lea edx, [ebp - 0x60]
jmp 0x100e3a8e
mov dword [eax + edx*4 + 0xc], ebx
mov dword [edi + 4], ebx
mov edx, dword [ebx + 0x138]
test edx, edx
je 0x100e3baa
mov dword [edx + 0x13c], 0
mov ecx, 0x138
mov edx, dword [edi + 4]
add edx, ecx
jmp 0x100e3ba4
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jne 0x100e3c19
mov ebx, dword [edi + 4]
xor ecx, ecx
mov dword [eax + edx*4 + 0xc], ebx
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], ecx
jmp 0x100e3a5b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100e3999
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x100e39b2
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100e39f3
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edx, eax
jmp 0x100e3ade
push esi
mov esi, edx
call dword [sym.imp.mozglue.dll_free]
mov edx, esi
add esp, 4
jmp 0x100e3a9e
push 0
push 0xffffe897
mov edi, edx
jmp 0x100e3cc1
push 0
push 0xffffe897
mov edi, ecx
call sym.nss3.dll_PR_SetError
add esp, 8
and byte [edi + 0xe0], 0xfd
jmp 0x100e3b44