Function at 0x1008b510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x1008b5ad
mov esi, ecx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x34]
mov dword [ecx], 1
mov ebx, dword [0x101deccc]
xor eax, eax
push eax
push ecx
push eax
push esi
push ebx
call fcn.100a0b40
add esp, 0x14
mov edi, eax
test eax, eax
je 0x1008b5c1
push dword [ebp - 0x38]
push esi
call sym.nss3.dll_PK11_FindCertFromNickname
add esp, 8
test eax, eax
je 0x1008b60b
mov esi, eax
push eax
call fcn.100a2170
add esp, 4
test edi, edi
mov dword [ebp - 0x3c], esi
je 0x1008b612
test eax, eax
je 0x1008b61c
lea esi, [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
xor ecx, ecx
mov dword [esi + 8], ecx
lea edx, [ebp - 0x28]
mov dword [edx], 1
push ecx
push edx
push ecx
push esi
call fcn.100a34e0
add esp, 0x10
jmp 0x1008b62d
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1008b757
push 0x40
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x1008b624
push esi
call fcn.10083a50
add esp, 4
mov edi, 0
test eax, eax
je 0x1008b554
xor edx, edx
push edx
lea ecx, [ebp - 0x34]
push ecx
push edx
push eax
push ebx
mov ebx, eax
call fcn.100a0c00
add esp, 0x14
mov edi, eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1008b554
mov esi, edi
jmp 0x1008b73b
test eax, eax
je 0x1008b62b
lock inc dword [eax + 4]
jmp 0x1008b62d
lock inc dword [edi + 4]
mov eax, edi
jmp 0x1008b62d
xor edi, edi
jmp 0x1008b554
xor eax, eax
mov dword [ebp - 0x38], eax
mov ebx, dword [0x101dec48]
test ebx, ebx
je 0x1008b67a
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1008b76d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [0x101dec48]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebx + 0x15c]
test eax, eax
je 0x1008b683
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1008b683
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebx + 0x15c]
test esi, esi
je 0x1008b695
push esi
call fcn.1009fed0
add esp, 4
mov esi, dword [ebp - 0x38]
jmp 0x1008b6a9
mov eax, dword [ebx]
test eax, eax
mov esi, dword [ebp - 0x38]
je 0x1008b6a9
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
test edi, edi
je 0x1008b73b
mov ecx, edi
xor edx, edx
call fcn.100a1930
test eax, eax
je 0x1008b707
mov ebx, eax
mov edi, dword [0x101dec48]
test edi, edi
je 0x1008b712
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1008b78a
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [0x101dec48]
mov esi, dword [ebx + 0x15c]
test eax, eax
je 0x1008b718
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1008b718
push edi
call fcn.1009fed0
add esp, 4
jmp 0x1008b73b
mov esi, dword [ebx + 0x15c]
test esi, esi
je 0x1008b727
push esi
call fcn.1009fed0
add esp, 4
jmp 0x1008b738
mov eax, dword [ebx]
test eax, eax
je 0x1008b738
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x1008b757
mov ecx, esi
xor edx, edx
call fcn.100a1930
mov edi, eax
test eax, eax
jne 0x1008b759
push esi
call fcn.1009fed0
add esp, 4
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0x30
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 esi, eax
jmp 0x1008b650
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x1008b6e0