Function at 0x101795e0
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 ecx, dword [0x101d2014]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [esp + 0x70], ecx
push eax
call fcn.1017c820
add esp, 4
test eax, eax
je 0x101798aa
xor edi, edi
test byte [eax + 0x1c], 1
mov esi, eax
je 0x101798ad
mov ebx, dword [esi + 0x15c]
test ebx, ebx
je 0x10179647
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101798c2
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 0x10179674
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101798d8
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 0xc]
bt eax, 0xa
jb 0x10179691
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 0x101753c0
mov ebx, 2
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
xor ecx, ecx
test edi, edi
mov edi, 0x10175560
sete cl
cmove edi, edx
sub ebx, ecx
bt eax, 0xa
mov dword [esi + 0xcc], edi
mov dword [esi + 0x184], ebx
jb 0x101796d4
push dword [esi + 0x164]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x188]
push eax
call fcn.101734e0
add esp, 4
test byte [esi + 0x1d], 4
mov edi, eax
jne 0x101796f9
push dword [esi + 0x164]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
jne 0x10179882
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1017971b
push dword [esi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
xor ecx, ecx
bt eax, 0xa
mov dword [esi + 0x53c], ecx
mov dword [esi + 0x538], ecx
jb 0x1017973d
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x60]
push 1
push eax
call fcn.101798f0
add esp, 8
test byte [esi + 0x1d], 4
jne 0x1017975f
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x64]
push 0x1000
push eax
call fcn.10175a30
add esp, 8
mov edi, eax
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1017978c
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x101797a3
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x101797ba
push dword [esi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x101797ce
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
lea eax, [esi + 0x544]
push eax
call fcn.10170510
add esp, 4
lea eax, [esi + 0x54c]
push eax
call fcn.10170510
add esp, 4
lea eax, [esi + 0x6fc]
push esi
push eax
call fcn.10171220
add esp, 8
lea eax, [esi + 0x650]
push eax
push esi
call fcn.101909a0
add esp, 8
mov eax, dword [esi + 0x674]
test eax, eax
je 0x10179859
push 1
push eax
call sym.nss3.dll_PK11_HPKE_DestroyContext
add esp, 8
mov dword [esi + 0x674], 0
mov eax, dword [esi + 0x678]
test eax, eax
je 0x1017983f
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, esi
mov dword [esi + 0x678], 0
add eax, 0x67c
push eax
call fcn.10175fe0
add esp, 4
cmp dword [esi + 0x4c], 0
jne 0x10179882
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 0x10179895
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x101798ad
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x101798ad
xor edi, edi
dec edi
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1017963a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x10179667