Function at 0x101150d0
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 [0x101db014]
xor ecx, ebp
mov dword [esp + 0x70], ecx
push eax
call fcn.10118270
add esp, 4
test eax, eax
je 0x10115394
mov esi, eax
xor edi, edi
test byte [eax + 0x1c], 1
je 0x10115397
mov ebx, dword [esi + 0x15c]
test ebx, ebx
je 0x10115137
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101153ac
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 0x10115164
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x101153c9
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov edi, dword [ebp + 0xc]
test byte [esi + 0x1d], 4
jne 0x1011517b
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
xor eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor eax, eax
test edi, edi
sete al
mov ecx, 0x10110d00
mov edx, 0x10110ea0
cmove edx, ecx
mov ecx, 2
sub ecx, eax
mov dword [esi + 0xcc], edx
mov dword [esi + 0x184], ecx
test byte [esi + 0x1d], 4
jne 0x101151be
push dword [esi + 0x164]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x188]
push eax
call fcn.1010ec80
add esp, 4
mov edi, eax
test byte [esi + 0x1d], 4
jne 0x101151e3
push dword [esi + 0x164]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
jne 0x1011536c
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x10115205
push dword [esi + 0x170]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [esi + 0x53c], ecx
mov dword [esi + 0x538], ecx
bt eax, 0xa
jb 0x10115227
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x60]
push 1
push eax
call fcn.101153f0
add esp, 8
test byte [esi + 0x1d], 4
jne 0x10115249
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
lea eax, [esi + 0x64]
push 0x1000
push eax
call fcn.10111390
add esp, 8
mov edi, eax
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x10115276
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1011528d
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x101152a4
push dword [esi + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x101152b8
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
lea eax, [esi + 0x544]
push eax
call fcn.1010bc40
add esp, 4
lea eax, [esi + 0x54c]
push eax
call fcn.1010bc40
add esp, 4
lea eax, [esi + 0x6fc]
push esi
push eax
call fcn.1010c940
add esp, 8
lea eax, [esi + 0x650]
push eax
push esi
call fcn.1012ca50
add esp, 8
mov eax, dword [esi + 0x674]
test eax, eax
je 0x10115343
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 0x10115329
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x678], 0
mov eax, esi
add eax, 0x67c
push eax
call fcn.10111940
add esp, 4
cmp dword [esi + 0x4c], 0
jne 0x1011536c
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 0x1011537f
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [esi + 0x15c]
test eax, eax
je 0x10115397
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10115397
xor edi, edi
dec edi
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x1011512a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x10115157