Function at 0x1014bfd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
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 0x1014c2e1
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 0x1014c2f8
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
jne 0x1014c12c
mov dword [ebx + 0x88], esi
xor eax, eax
inc eax
mov dword [ebx + 0x194], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1014c30f
cmp dword [ebx + 0xc], eax
jne 0x1014c088
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x38], 0
jne 0x1014c09a
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
add esp, 0x74
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 0x1014c0da
xor ecx, ecx
lea esi, [ecx + ecx*2]
mov edx, dword [eax + esi*4 + 4]
mov ebx, dword [edx + 4]
test ebx, ebx
jne 0x1014c22e
mov dword [eax + esi*4 + 0xc], 0
inc ecx
cmp ecx, dword [eax]
jl 0x1014c0bb
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x1014c0b4
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 0x1014c115
xor esi, esi
lea ecx, [esi + esi*2]
mov ecx, dword [ebx + ecx*4 + 0xc]
test ecx, ecx
jne 0x1014c1e6
inc esi
cmp esi, eax
jl 0x1014c101
mov edi, dword [ebx + 0x4c]
cmp edx, ebx
jne 0x1014c33b
mov ebx, edi
test edi, edi
je 0x1014c088
jmp 0x1014c0f9
cmp dword [ebx + 0x88], esi
je 0x1014c047
lea eax, [ebx + 0x8c]
mov dword [ebp - 0x64], eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edx, eax
test eax, eax
je 0x1014c324
mov eax, dword [ebp - 0x64]
mov edi, dword [eax]
cmp dword [edi + 8], edx
mov ecx, 0x1002
jne 0x1014c1d4
mov eax, dword [edx + 0xe0]
and eax, ecx
cmp eax, 2
je 0x1014c34d
mov eax, dword [ebp - 0x64]
mov dword [edx + 0xd8], eax
xor eax, eax
mov dword [edi + 8], eax
lea eax, [edi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
mov dword [esp + 8], 0xffffffff
mov dword [ebp - 0x70], edx
call sym.nss3.dll__PR_MD_WAIT_CV
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov dword [ecx + 0xd8], eax
mov dword [edi + 8], ecx
mov eax, dword [ecx + 0xe0]
mov edx, 0x1002
and eax, edx
cmp eax, 2
je 0x1014c360
cmp dword [ebx + 0x194], 0
je 0x1014c03f
jmp 0x1014c14a
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 0x1014c1e6
mov eax, dword [edi]
lea edx, [ebp - 0x60]
jmp 0x1014c110
mov edi, dword [eax + esi*4 + 8]
cmp edi, 0xffffffff
je 0x1014c2b1
test edi, edi
jle 0x1014c289
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 0x1014c25c
test ebx, ebx
jne 0x1014c23b
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 0x1014c293
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 0x1014c0d5
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 0x1014c2dc
mov dword [ebx + 0x13c], 0
mov ebx, 0x138
add ebx, dword [edx + 4]
jmp 0x1014c270
mov dword [ebx + 0x104], 0
mov ebx, dword [ebx + 0x13c]
test ebx, ebx
jne 0x1014c2b1
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 0x1014c0d5
mov edi, dword [ebp - 0x64]
jmp 0x1014c279
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov esi, eax
jmp 0x1014bffe
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edi, eax
jmp 0x1014c01c
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1014c067
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
mov edx, eax
jmp 0x1014c165
mov dword [esp], ebx
mov esi, edx
call dword [sym.imp.mozglue.dll_free]
mov edx, esi
jmp 0x1014c120
mov dword [esp + 4], 0
mov dword [esp], 0xffffe897
mov edi, edx
jmp 0x1014c371
mov dword [esp + 4], 0
mov dword [esp], 0xffffe897
mov edi, ecx
call sym.nss3.dll_PR_SetError
and byte [edi + 0xe0], 0xfd
jmp 0x1014c1d4