Function at 0x10086ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0
test edx, edx
je 0x10086f3d
xor ebx, ebx
mov eax, ecx
or eax, dword [ebp + 0x18]
sete bl
mov dword [ebp - 0x40], ebx
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx], eax
mov ebx, dword [ebp + 0x28]
mov eax, ecx
shr eax, 0xc
and eax, 1
xor edx, edx
inc edx
test cl, 6
cmovne eax, edx
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
call sym.nss3.dll_CERT_CheckCertValidTimes
add esp, 0x10
test eax, eax
je 0x10086fa8
test ebx, ebx
je 0x10087377
mov esi, eax
cmp dword [0x101f2f50], 0
je 0x100873ad
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10087392
mov ecx, ebx
mov edx, edi
push esi
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x13c]
mov dword [ebp - 0x3c], eax
test eax, eax
mov ecx, dword [ebp + 0x2c]
jne 0x10086fd3
push edi
call fcn.1007a040
mov ecx, dword [ebp + 0x2c]
add esp, 4
xchg dword [edi + 0x13c], eax
mov eax, dword [edi + 0x13c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0
xor esi, esi
inc esi
xor edi, edi
test ebx, ebx
jne 0x10086ff1
test ecx, ecx
jne 0x10086ff1
cmp dword [ebp - 0x2c], 0
jne 0x10087377
mov edx, edi
mov edi, esi
sar edi, 0x1f
mov ebx, esi
and ebx, dword [ebp + 0x14]
mov eax, edi
and eax, dword [ebp + 0x18]
cmp dword [ebp - 0x40], 0
jne 0x10087018
mov ecx, ebx
or ecx, eax
mov ecx, dword [ebp + 0x2c]
jne 0x10087018
mov edi, edx
jmp 0x1008711c
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x10087024
or dword [ecx], esi
or dword [ecx + 4], edi
mov edi, edx
cmp edx, 0xc
ja 0x10087160
mov eax, 0x147f
bt eax, edi
jae 0x1008711c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call fcn.1007b0f0
add esp, 0x10
test eax, eax
je 0x10087082
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1008706f
mov eax, esi
not eax
and dword [ecx], eax
sar eax, 0x1f
and dword [ecx + 4], eax
or ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ebx, 0xffffffff
cmovne eax, ebx
jmp 0x10087119
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.1007b160
add esp, 8
test eax, eax
je 0x10087130
mov eax, ebx
mov edx, dword [ebp - 0x30]
or eax, edx
je 0x100870b3
push 0
push 0xffffe05a
call sym.nss3.dll_PR_SetError
mov edx, dword [ebp - 0x30]
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x100870f9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
cmp dword [0x101f2f50], 0
je 0x10087359
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10087308
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push dword [ebp - 0x38]
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1008710c
mov eax, esi
not eax
and dword [ecx], eax
sar eax, 0x1f
and dword [ecx + 4], eax
or ebx, edx
mov eax, dword [ebp - 0x2c]
mov edx, 0xffffffff
cmovne eax, edx
mov dword [ebp - 0x2c], eax
add esi, esi
inc edi
cmp edi, 0xd
mov ebx, dword [ebp + 0x28]
jne 0x10086fdf
jmp 0x1008737d
mov eax, dword [ebp - 0x3c]
test dword [ebp - 0x18], eax
je 0x1008716d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0xc]
call fcn.10086e10
add esp, 0x10
cmp eax, 0xffffffff
je 0x10087192
cmp dword [ebp - 0x28], 0
je 0x100871f4
mov ecx, dword [ebp + 0x2c]
jmp 0x1008711c
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jmp 0x1008705f
mov eax, ebx
or eax, dword [ebp - 0x30]
je 0x10087183
push 0
push 0xffffe05b
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x1008705c
mov eax, dword [ebp - 0x18]
jmp 0x100871b5
mov eax, ebx
or eax, dword [ebp - 0x30]
je 0x100871a8
push 0
push 0xffffe015
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x1008705c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
cmp dword [0x101f2f50], 0
je 0x10087363
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10087323
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push dword [ebp - 0x38]
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
jmp 0x1008705c
cmp dword [ebp - 0x20], 1
je 0x1008705c
cmp dword [ebp - 0x24], 1
je 0x1008705c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.10085d00
add esp, 0x1c
test eax, eax
jne 0x1008705c
cmp dword [ebp - 0x34], 0
mov ecx, dword [ebp + 0x2c]
je 0x10087247
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x1008711c
mov eax, dword [ebp + 0x14]
xor eax, 0x400
or eax, dword [ebp + 0x18]
je 0x1008723c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1008723c
mov ecx, dword [eax]
test ecx, ecx
je 0x100872fd
call dword [section..00cfg]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
add esp, 0x14
test eax, eax
je 0x100872fd
cmp dword [ebp + 0x28], 0
mov ecx, dword [ebp + 0x2c]
je 0x100872d0
cmp dword [0x101f2f50], 0
je 0x1008736d
mov dword [ebp - 0x38], ebx
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008733e
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor ebx, ebx
push ebx
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 1
test ecx, ecx
je 0x100872e7
mov eax, esi
not eax
and dword [ecx], eax
sar eax, 0x1f
and dword [ecx + 4], eax
or ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ebx, 0xffffffff
cmovne eax, ebx
mov dword [ebp - 0x2c], eax
jmp 0x1008723c
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x1008715b
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100870e0
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100871d9
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100872b3
call fcn.100029d0
jmp 0x100870cc
call fcn.100029d0
jmp 0x100871c5
call fcn.100029d0
jmp 0x1008729c
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, dword [ebp - 0x2c]
add esp, 0x34
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
jmp 0x10086f90
call fcn.100029d0
jmp 0x10086f7c