Function at 0x1008b160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [0x101deccc]
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], ecx
mov edi, 0
test eax, eax
je 0x1008b1ba
mov eax, dword [eax + 0x14]
mov edi, 0
test eax, eax
je 0x1008b1ba
xor ecx, ecx
lea edx, [esp + 0x10]
push ecx
push ecx
push ecx
push edx
push eax
call fcn.100a4910
add esp, 0x14
mov edi, eax
lea eax, [esp + 0x10]
xor ecx, ecx
push ecx
push ecx
mov dword [esp + 0xc], 0
push ecx
push eax
push esi
call fcn.100a6e90
add esp, 0x14
mov ecx, edi
mov dword [esp + 8], eax
or ecx, eax
je 0x1008b42c
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
test eax, eax
jne 0x1008b1ff
call sym.nss3.dll_CERT_NewCertList
mov dword [esp + 4], eax
test eax, eax
je 0x1008b443
mov dword [esp + 0xc], edi
test edi, edi
je 0x1008b30a
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
test edi, edi
je 0x1008b30a
mov eax, dword [esp + 0xc]
lea esi, [eax + 4]
mov ecx, edi
xor edx, edx
call fcn.100a1930
test eax, eax
je 0x1008b2c4
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
je 0x1008b258
push 0
push eax
push ecx
push ebx
call sym.nss3.dll_CERT_CheckCertValidTimes
add esp, 0x10
test eax, eax
jne 0x1008b273
lea eax, [esp + 0x18]
push eax
push 0x10084070
push ebx
push dword [esp + 0x10]
call fcn.100842b0
add esp, 0x10
test eax, eax
je 0x1008b2cd
mov edi, dword [0x101dec48]
test edi, edi
je 0x1008b2ba
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [esp], eax
test eax, eax
je 0x1008b2ef
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp]
mov dword [edi + 8], eax
mov eax, dword [0x101dec48]
mov edi, dword [ebx + 0x15c]
test eax, eax
je 0x1008b2c0
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1008b2c0
mov edi, dword [ebx + 0x15c]
test edi, edi
je 0x1008b2dc
push edi
call fcn.1009fed0
add esp, 4
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x1008b220
jmp 0x1008b30a
mov eax, dword [ebx]
test eax, eax
je 0x1008b2cd
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x1008b2cd
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [esp], eax
jmp 0x1008b290
cmp dword [esp + 8], 0
je 0x1008b414
mov eax, dword [esp + 8]
mov edi, dword [eax]
test edi, edi
je 0x1008b414
mov esi, dword [esp + 8]
add esi, 4
mov ecx, edi
xor edx, edx
call fcn.100a1930
test eax, eax
je 0x1008b3ce
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
je 0x1008b362
push 0
push eax
push ecx
push ebx
call sym.nss3.dll_CERT_CheckCertValidTimes
add esp, 0x10
test eax, eax
jne 0x1008b37d
lea eax, [esp + 0x18]
push eax
push 0x10084070
push ebx
push dword [esp + 0x10]
call fcn.100842b0
add esp, 0x10
test eax, eax
je 0x1008b3d7
mov edi, dword [0x101dec48]
test edi, edi
je 0x1008b3c4
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [esp], eax
test eax, eax
je 0x1008b3f9
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp]
mov dword [edi + 8], eax
mov eax, dword [0x101dec48]
mov edi, dword [ebx + 0x15c]
test eax, eax
je 0x1008b3ca
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1008b3ca
mov edi, dword [ebx + 0x15c]
test edi, edi
je 0x1008b3e6
push edi
call fcn.1009fed0
add esp, 4
mov edi, dword [esi]
add esi, 4
test edi, edi
jne 0x1008b32a
jmp 0x1008b414
mov eax, dword [ebx]
test eax, eax
je 0x1008b3d7
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
jmp 0x1008b3d7
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [esp], eax
jmp 0x1008b39a
push dword [esp + 0xc]
call fcn.1009a580
add esp, 4
push dword [esp + 8]
call fcn.1009a580
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.1014dc80
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.100a33f0
add esp, 4
push dword [esp + 8]
call fcn.100a33f0
add esp, 4
mov dword [esp + 4], 0
jmp 0x1008b42c