Function at 0x1010f670
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [0x101f1014]
xor ecx, ebp
mov dword [esp + 0x70], ecx
push eax
call fcn.10112950
add esp, 4
test eax, eax
je 0x1010f8e4
mov esi, eax
xor edi, edi
test byte [eax + 0x1c], 1
je 0x1010f997
mov ebx, dword [esi + 0x15c]
test ebx, ebx
je 0x1010f6d7
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1010f9ac
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [esi + 0x160]
test ebx, ebx
je 0x1010f704
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1010f9c9
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010f721
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
xor ecx, ecx
test edi, edi
sete cl
mov edx, 0x1010b250
mov edi, 0x1010b3f0
cmove edi, edx
mov edx, 2
sub edx, ecx
mov dword [esi + 0xcc], edi
mov dword [esi + 0x184], edx
bt eax, 0xa
jb 0x1010f764
push dword [esi + 0x164]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x188]
push eax
call fcn.10109200
add esp, 4
mov edi, eax
test byte [esi + 0x1d], 4
jne 0x1010f789
push dword [esi + 0x164]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
jne 0x1010f971
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010f7ab
push dword [esi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [esi + 0x548], ecx
mov dword [esi + 0x544], ecx
bt eax, 0xa
jb 0x1010f7cd
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x60]
push 1
push eax
call fcn.1010f9f0
add esp, 8
test byte [esi + 0x1d], 4
jne 0x1010f7ef
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x64]
push 0x1000
push eax
call fcn.1010b8c0
add esp, 8
mov edi, eax
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010f81c
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010f833
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010f84a
push dword [esi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010f85e
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
lea eax, [esi + 0x550]
push eax
call fcn.10106100
add esp, 4
lea eax, [esi + 0x558]
push eax
call fcn.10106100
add esp, 4
lea eax, [esi + 0x71c]
push esi
push eax
call fcn.10106d70
add esp, 8
lea eax, [esi + 0x65c]
push eax
push esi
call fcn.10128090
add esp, 8
mov eax, dword [esi + 0x68c]
test eax, eax
je 0x1010f8f6
push 1
push eax
call sym.nss3.dll_PK11_HPKE_DestroyContext
add esp, 8
mov dword [esi + 0x68c], 0
mov eax, dword [esi + 0x690]
test eax, eax
je 0x1010f8ec
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x690], 0
cmp dword [esi + 0x68c], 0
jne 0x1010f8fc
jmp 0x1010f8f6
xor edi, edi
dec edi
jmp 0x1010f997
mov dword [esi + 0x690], 0
test byte [esi + 0x20], 0x18
je 0x1010f90c
mov eax, esi
add eax, 0x694
push eax
call fcn.1010bf00
add esp, 4
mov eax, dword [esi + 0x6a8]
test eax, eax
je 0x1010f92a
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x6a8], 0
mov eax, dword [esi + 0x6ac]
test eax, eax
je 0x1010f948
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x6ac], 0
cmp dword [esi + 0x4c], 0
jne 0x1010f971
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x64]
call dword [section..00cfg]
mov eax, esp
push eax
push ebx
call ecx
add esp, 8
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x1010f984
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x1010f997
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x1010f6ca
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x1010f6f7