Function at 0x1014c390
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1014c6f1
mov ebx, dword [ebp + 8]
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x1014c708
lea eax, [ebx + 0x20]
mov dword [ebp - 0x68], 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
je 0x1014c75e
cmp dword [ebx + 0x88], esi
jne 0x1014c75e
dec eax
mov dword [ebx + 0x194], eax
jne 0x1014c478
mov dword [ebx + 0x88], 0
mov esi, dword [ebx + 0x198]
test esi, esi
jne 0x1014c55b
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1014c734
mov edi, dword [ebx + 0x8c]
cmp dword [edi + 8], eax
jne 0x1014c478
lea edx, [ebx + 0x100]
mov ecx, dword [edi + 0x34]
add edi, 0x34
xor esi, esi
test ecx, ecx
jg 0x1014c5ac
lea eax, [esi + esi*2]
mov dword [edi + eax*4 + 8], 1
mov dword [edi + eax*4 + 4], edx
inc ecx
mov dword [edi], ecx
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1014c71f
xor esi, esi
cmp dword [ebx + 0xc], eax
jne 0x1014c4b4
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x38], 0
jne 0x1014c4c8
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x78
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 0x1014c508
xor ecx, ecx
lea esi, [ecx + ecx*2]
mov edx, dword [eax + esi*4 + 4]
mov ebx, dword [edx + 4]
test ebx, ebx
jne 0x1014c63e
mov dword [eax + esi*4 + 0xc], 0
inc ecx
cmp ecx, dword [eax]
jl 0x1014c4e9
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x1014c4e2
lea esi, [ebp - 0x60]
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov edx, esi
mov ebx, esi
mov edi, esi
mov eax, dword [edi]
test eax, eax
jle 0x1014c543
xor esi, esi
lea ecx, [esi + esi*2]
mov ecx, dword [ebx + ecx*4 + 0xc]
test ecx, ecx
jne 0x1014c5f6
inc esi
cmp esi, eax
jl 0x1014c52f
mov edi, dword [ebx + 0x4c]
cmp edx, ebx
jne 0x1014c786
mov ebx, edi
test edi, edi
jne 0x1014c527
xor esi, esi
jmp 0x1014c4b4
cmp esi, 0xffffffff
jne 0x1014c798
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1014c749
mov ecx, dword [ebx + 0x110]
cmp dword [ecx + 8], eax
jne 0x1014c59d
add ecx, 0x1c
lea eax, [ebx + 0x184]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.nss3.dll__PR_MD_NOTIFYALL_CV
mov dword [ebx + 0x198], 0
jmp 0x1014c42c
mov dword [ebp - 0x6c], edx
xor edx, edx
inc edx
mov eax, edi
mov edi, eax
test ecx, ecx
mov eax, edx
cmovg eax, ecx
lea edx, [edi + 8]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x64]
cmp dword [eax - 4], edx
je 0x1014c7d1
add dword [ebp - 0x64], 0xc
mov eax, dword [ebp - 0x74]
dec eax
jne 0x1014c5c6
cmp ecx, 6
jge 0x1014c7ea
mov esi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
jmp 0x1014c466
mov eax, dword [ecx + 0x100]
mov edx, dword [ecx + 0x13c]
mov dword [ebp - 0x68], 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 - 0x68]
mov ecx, eax
test eax, eax
jne 0x1014c5f6
mov eax, dword [edi]
lea edx, [ebp - 0x60]
jmp 0x1014c53e
mov edi, dword [eax + esi*4 + 8]
cmp edi, 0xffffffff
je 0x1014c6c1
test edi, edi
jle 0x1014c699
mov dword [ebp - 0x64], edi
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
mov edi, dword [ebp - 0x64]
dec edi
cmp dword [ebp - 0x64], 2
jl 0x1014c66c
test ebx, ebx
jne 0x1014c64b
mov dword [ebp - 0x64], edi
mov edi, dword [edx + 4]
mov dword [eax + esi*4 + 0xc], edi
mov dword [edx + 4], ebx
test ebx, ebx
jne 0x1014c6a3
lea ebx, [edx + 8]
mov edi, dword [ebp - 0x64]
mov dword [ebx], 0
lea esi, [eax + esi*4]
add esi, 8
sub edi, dword [esi]
add dword [edx + 0xc], edi
jmp 0x1014c503
mov dword [ebp - 0x64], edi
mov dword [eax + esi*4 + 0xc], ebx
mov dword [edx + 4], ebx
mov ebx, dword [ebx + 0x138]
test ebx, ebx
je 0x1014c6ec
mov dword [ebx + 0x13c], 0
mov ebx, 0x138
add ebx, dword [edx + 4]
jmp 0x1014c680
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jne 0x1014c6c1
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 0x1014c503
mov edi, dword [ebp - 0x64]
jmp 0x1014c689
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x1014c3be
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x1014c3dc
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1014c491
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1014c445
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1014c57d
call fcn.1014c8b0
xor esi, esi
dec esi
cmp dword [ebx + 0xc], eax
jne 0x1014c4b4
mov dword [ebx + 0xc], 0
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sym.nss3.dll__PR_MD_UNLOCK
jmp 0x1014c4b4
mov dword [esp], ebx
mov esi, edx
call dword [sym.imp.mozglue.dll_free]
mov edx, esi
jmp 0x1014c54e
test esi, esi
jle 0x1014c59d
lea edi, [ebx + 0x184]
inc esi
call fcn.1014c8b0
mov ecx, dword [ebx + 0x110]
cmp dword [ecx + 8], eax
jne 0x1014c7c6
add ecx, 0x1c
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym.nss3.dll__PR_MD_NOTIFY_CV
dec esi
cmp esi, 1
jg 0x1014c7a7
jmp 0x1014c59d
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1014c478
inc eax
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
jmp 0x1014c478
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x1014c809
mov dword [esp + 4], 0x50
mov dword [esp], 1
call dword [sym.imp.mozglue.dll_calloc]
mov dword [edi + 0x4c], eax
mov ecx, dword [eax]
test ecx, ecx
mov edx, 1
jg 0x1014c5b4
mov edi, eax
jmp 0x1014c5ee