Function at 0x10154380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x10154690
mov ebx, dword [ebp + 8]
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x101546a7
lea eax, [ebx + 0x20]
mov dword [ebp - 0x6c], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebx + 0xc], edi
mov eax, dword [ebx + 0x194]
test eax, eax
jne 0x101544d8
mov dword [ebx + 0x88], esi
xor eax, eax
inc eax
mov dword [ebx + 0x194], eax
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x101546be
cmp dword [ebx + 0xc], eax
jne 0x10154438
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x38], 0
jne 0x1015444a
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebx + 0x38]
lea eax, [ebp - 0x60]
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 0x1015448a
xor ecx, ecx
lea esi, [ecx + ecx*2]
mov edx, dword [eax + esi*4 + 4]
mov ebx, dword [edx + 4]
test ebx, ebx
jne 0x101545d7
mov dword [eax + esi*4 + 0xc], 0
inc ecx
cmp ecx, dword [eax]
jl 0x1015446b
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x10154464
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esi, [ebp - 0x60]
mov edi, esi
mov eax, dword [edi]
test eax, eax
jle 0x101544c1
xor ebx, ebx
lea ecx, [ebx + ebx*2]
mov ecx, dword [edi + ecx*4 + 0xc]
test ecx, ecx
jne 0x10154592
inc ebx
cmp ebx, eax
jl 0x101544ad
mov ebx, dword [edi + 0x4c]
cmp esi, edi
jne 0x101546ea
mov edi, ebx
test ebx, ebx
je 0x10154438
jmp 0x101544a5
cmp dword [ebx + 0x88], esi
je 0x101543f7
lea eax, [ebx + 0x8c]
mov dword [ebp - 0x64], eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x70], eax
mov eax, dword [0x101f25a4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x101546d3
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
cmp dword [edx + 8], edi
jne 0x10154580
mov eax, dword [edi + 0xe0]
mov ecx, 0x1002
and eax, ecx
cmp eax, 2
je 0x101546f8
mov eax, dword [ebp - 0x64]
mov dword [edi + 0xd8], eax
xor eax, eax
mov dword [edx + 8], eax
lea eax, [edx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov dword [esp + 8], 0xffffffff
mov dword [ebp - 0x68], edx
call sym.nss3.dll__PR_MD_WAIT_CV
xor eax, eax
mov dword [edi + 0xd8], eax
mov eax, dword [ebp - 0x68]
mov dword [eax + 8], edi
mov eax, dword [edi + 0xe0]
mov ecx, 0x1002
and eax, ecx
cmp eax, 2
je 0x101546f8
cmp dword [ebx + 0x194], 0
jne 0x101544f6
jmp 0x101543ef
mov eax, dword [ecx + 0x100]
mov edx, dword [ecx + 0x13c]
mov dword [ebp - 0x6c], edx
xor edx, edx
mov dword [ecx + 0x13c], edx
mov dword [ecx + 0x138], edx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
sub esp, 0xc
mov eax, dword [ebp - 0x6c]
mov ecx, eax
test eax, eax
jne 0x10154592
mov eax, dword [edi]
jmp 0x101544bc
mov edi, dword [eax + esi*4 + 8]
cmp edi, 0xffffffff
je 0x10154665
test edi, edi
jle 0x10154640
mov dword [ebp - 0x64], edi
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
mov edi, dword [ebp - 0x64]
dec edi
test ebx, ebx
mov dword [ebp - 0x68], edi
je 0x10154612
cmp dword [ebp - 0x64], 1
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x64], edi
ja 0x101545eb
mov edi, dword [edx + 4]
mov dword [eax + esi*4 + 0xc], edi
mov dword [edx + 4], ebx
test ebx, ebx
jne 0x10154718
lea ebx, [edx + 8]
mov edi, dword [ebp - 0x68]
mov dword [ebx], 0
lea esi, [eax + esi*4]
add esi, 8
sub edi, dword [esi]
add dword [edx + 0xc], edi
jmp 0x10154485
mov dword [eax + esi*4 + 0xc], ebx
mov dword [edx + 4], ebx
mov ebx, dword [ebx + 0x138]
test ebx, ebx
je 0x10154630
mov dword [ebx + 0x13c], 0
mov ebx, 0x138
add ebx, dword [edx + 4]
jmp 0x1015462a
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jne 0x10154665
mov edi, dword [edx + 4]
mov dword [eax + esi*4 + 0xc], edi
xor esi, esi
mov dword [edx + 8], esi
mov dword [edx + 4], esi
mov dword [edx + 0xc], esi
jmp 0x10154485
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov esi, eax
jmp 0x101543ae
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x101543cc
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
jmp 0x10154417
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
mov edi, eax
jmp 0x10154511
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x101544cc
mov dword [esp + 4], 0
mov dword [esp], 0xffffe897
call sym.nss3.dll_PR_SetError
and byte [edi + 0xe0], 0xfd
jmp 0x10154580
mov edi, dword [ebp - 0x68]
jmp 0x10154647