Function at 0x100826c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, dword [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
mov dword [eax], 1
xor ebx, ebx
push ebx
push eax
push ebx
push edi
push dword [0x101f3074]
call fcn.10099350
add esp, 0x14
mov esi, eax
push ebx
push edi
call sym.nss3.dll_PK11_FindCertFromNickname
add esp, 8
test eax, eax
je 0x10082876
mov edi, eax
push eax
call fcn.1009a930
add esp, 4
test esi, esi
mov dword [ebp - 0x3c], esi
je 0x10082746
mov ecx, esi
test eax, eax
je 0x10082753
lea esi, [ebp - 0x1c]
mov dword [esi], ecx
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.1009bcc0
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x10082763
test eax, eax
je 0x1008275c
mov dword [ebp - 0x38], eax
lock inc dword [eax + 4]
jmp 0x10082763
lock inc dword [ecx + 4]
mov dword [ebp - 0x38], ecx
jmp 0x10082763
mov dword [ebp - 0x38], 0
mov esi, dword [0x101f2ff0]
test esi, esi
je 0x100827ac
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100828a8
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov eax, dword [0x101f2ff0]
mov esi, dword [edi + 0x15c]
test eax, eax
je 0x100827a8
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
xor ebx, ebx
jmp 0x100827b2
mov esi, dword [edi + 0x15c]
test esi, esi
je 0x100827c4
push esi
call fcn.100986e0
add esp, 4
mov esi, dword [ebp - 0x38]
jmp 0x100827d8
mov eax, dword [edi]
test eax, eax
mov esi, dword [ebp - 0x38]
je 0x100827d8
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x10082876
mov ecx, edi
xor edx, edx
call fcn.1009a0e0
test eax, eax
je 0x1008283c
mov esi, dword [0x101f2ff0]
test esi, esi
je 0x10082847
mov edi, eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100828c5
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ecx, dword [0x101f2ff0]
mov esi, dword [edi + 0x15c]
test ecx, ecx
je 0x1008284f
push ecx
call sym.nss3.dll_PR_Unlock
mov eax, edi
add esp, 4
jmp 0x10082851
push edi
call fcn.100986e0
add esp, 4
jmp 0x10082876
mov esi, dword [eax + 0x15c]
jmp 0x10082853
mov eax, edi
xor ebx, ebx
test esi, esi
je 0x10082862
push esi
call fcn.100986e0
add esp, 4
jmp 0x10082873
mov eax, dword [eax]
test eax, eax
je 0x10082873
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x10082894
mov ecx, esi
xor edx, edx
call fcn.1009a0e0
mov ebx, eax
test eax, eax
jne 0x10082894
push esi
call fcn.100986e0
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x10082783
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x10082812