Function at 0x1010ea80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
test byte [esi + 0x180], 1
jne 0x1010eaa9
mov ebx, dword [ebp + 0x14]
test ebx, 0xfffffffd
je 0x1010eac5
push 0
push 0xffffe89d
jmp 0x1010eab0
push 0
push 0xffffe8d7
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push esi
call fcn.10115340
add esp, 4
test eax, eax
jne 0x1010eb8f
mov eax, dword [esi + 0x1c]
bt eax, 8
jb 0x1010eb8f
bt eax, 0xa
jb 0x1010eb00
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x1010eb7b
push 0
push eax
push dword [esi + 0x1f8]
push esi
call fcn.10109fd0
add esp, 0x10
test eax, eax
js 0x1010eb4d
mov edx, dword [esi + 0x1fc]
mov ecx, edx
sub ecx, eax
mov dword [esi + 0x1fc], ecx
test eax, eax
je 0x1010eb7b
cmp edx, eax
je 0x1010eb7b
mov edx, dword [esi + 0x1f8]
add eax, edx
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x1010eb7b
cmp dword [0x101f2f50], 0
je 0x1010ee32
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010edf2
cmp dword [eax + 0x28], 0xffffe892
jne 0x1010ed89
test byte [esi + 0x1d], 4
jne 0x1010eb8f
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
lea eax, [esi + 0x618]
cmp dword [esi + 0x618], eax
je 0x1010eba9
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1011f610
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x38], 0
mov dword [ebp - 0x18], eax
je 0x1010ebcb
xor edx, edx
inc edx
mov ecx, esi
call fcn.1010ee50
test eax, eax
je 0x1010ec25
xor edi, edi
dec edi
jmp 0x1010ed10
test byte [esi + 0x1d], 4
jne 0x1010ebdf
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x1010ec07
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov edi, eax
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x1010ec09
test edi, edi
je 0x1010ebe9
jmp 0x1010ec09
xor edi, edi
test byte [esi + 0x1d], 4
jne 0x1010ec1d
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
js 0x1010ed10
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x1010ed5d
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010ec4a
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010ec5e
push dword [esi + 0x164]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a8]
sub ecx, eax
je 0x1010ecab
cmp dword [esi + 0xa24], 1
jne 0x1010ed64
cmp ecx, edi
jle 0x1010ed64
add ecx, eax
mov dword [esi + 0x1a4], ecx
push 0
push 0xffffd085
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x1010eda0
cmp dword [esi + 0x190], 0
jne 0x1010ecf0
push 0
push esi
call fcn.10107cc0
add esp, 8
test eax, eax
jg 0x1010eca2
je 0x1010ed9e
mov edi, eax
cmp dword [0x101f2f50], 0
je 0x1010ee3c
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010ee0d
cmp dword [eax + 0x28], 0xffffe892
jne 0x1010eda0
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a8]
sub ecx, eax
mov edi, dword [ebp - 0x10]
jne 0x1010ec6e
push 0
push 0xffffe892
jmp 0x1010ec92
cmp dword [0x101f2f50], 0
je 0x1010ee28
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010edd7
cmp dword [eax + 0x28], 0xffffe892
jne 0x1010eabb
mov eax, dword [ebp - 0x18]
cmp dword [eax], eax
je 0x1010eabb
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call fcn.1011f610
add esp, 0x18
jmp 0x1010eac0
xor edi, edi
jmp 0x1010eabb
cmp ecx, edi
cmovl edi, ecx
add eax, dword [esi + 0x18c]
push edi
push eax
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test bl, 2
jne 0x1010eda0
add dword [esi + 0x1a4], edi
jmp 0x1010eda0
xor edi, edi
dec edi
test byte [esi + 0x1d], 4
jne 0x1010eabb
push dword [esi + 0x168]
jmp 0x1010edca
xor edi, edi
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010edba
push dword [esi + 0x164]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1010eabb
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x1010eabb
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1010ed31
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1010eb6e
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1010ece3
call fcn.100029d0
jmp 0x1010ed1d
call fcn.100029d0
jmp 0x1010eb5a
call fcn.100029d0
jmp 0x1010eccf