Function at 0x10154d90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x101550a4
mov ebx, dword [ebp + 8]
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x101550bb
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 0x10154ee8
mov dword [ebx + 0x88], esi
xor eax, eax
inc eax
mov dword [ebx + 0x194], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x101550d2
cmp dword [ebx + 0xc], eax
jne 0x10154e48
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x38], 0
jne 0x10154e5a
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.10157a00
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 0x10154e9a
xor ecx, ecx
lea esi, [ecx + ecx*2]
mov edx, dword [eax + esi*4 + 4]
mov ebx, dword [edx + 4]
test ebx, ebx
jne 0x10154fa2
mov dword [eax + esi*4 + 0xc], 0
inc ecx
cmp ecx, dword [eax]
jl 0x10154e7b
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x10154e74
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 0x10154ed1
xor ebx, ebx
lea ecx, [ebx + ebx*2]
mov ecx, dword [edi + ecx*4 + 0xc]
test ecx, ecx
jne 0x1015500f
inc ebx
cmp ebx, eax
jl 0x10154ebd
mov ebx, dword [edi + 0x4c]
cmp esi, edi
jne 0x101550fe
mov edi, ebx
test ebx, ebx
je 0x10154e48
jmp 0x10154eb5
cmp dword [ebx + 0x88], esi
je 0x10154e07
lea eax, [ebx + 0x8c]
mov dword [ebp - 0x64], eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x70], eax
mov eax, dword [0x101f45d4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x101550e7
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
cmp dword [edx + 8], edi
jne 0x10154f90
mov eax, dword [edi + 0xe0]
mov ecx, 0x1002
and eax, ecx
cmp eax, 2
je 0x1015510c
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 0x1015510c
cmp dword [ebx + 0x194], 0
jne 0x10154f06
jmp 0x10154dff
mov edi, dword [eax + esi*4 + 8]
cmp edi, 0xffffffff
je 0x10155079
test edi, edi
jle 0x10155054
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 0x10154fe1
cmp dword [ebp - 0x64], 1
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x64], edi
ja 0x10154fba
mov edi, dword [edx + 4]
mov dword [eax + esi*4 + 0xc], edi
mov dword [edx + 4], ebx
test ebx, ebx
jne 0x1015512c
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 0x10154e95
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 0x1015500f
mov eax, dword [edi]
jmp 0x10154ecc
mov dword [eax + esi*4 + 0xc], ebx
mov dword [edx + 4], ebx
mov ebx, dword [ebx + 0x138]
test ebx, ebx
je 0x10154fff
mov dword [ebx + 0x13c], 0
mov ebx, 0x138
add ebx, dword [edx + 4]
jmp 0x10154ff9
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jne 0x10155079
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 0x10154e95
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov esi, eax
jmp 0x10154dbe
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov edi, eax
jmp 0x10154ddc
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
jmp 0x10154e27
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
mov edi, eax
jmp 0x10154f21
mov dword [esp], edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x10154edc
mov dword [esp + 4], 0
mov dword [esp], 0xffffe897
call sym.nss3.dll_PR_SetError
and byte [edi + 0xe0], 0xfd
jmp 0x10154f90
mov edi, dword [ebp - 0x68]
jmp 0x1015505b