Function at 0x100873c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 1]
cmp eax, 2
setb al
cmp ecx, 0xc
sete cl
or cl, al
movzx eax, cl
mov esi, dword [ebp + 0xc]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call sym.nss3.dll_CERT_CheckCertValidTimes
add esp, 0x10
test eax, eax
je 0x10087441
test edi, edi
je 0x100876c1
mov ebx, eax
cmp dword [0x101f2f50], 0
je 0x1008775f
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100876d8
mov ecx, edi
mov edx, esi
push ebx
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
mov ebx, dword [esi + 0x13c]
test ebx, ebx
jne 0x10087460
push esi
call fcn.1007a040
add esp, 4
xchg dword [esi + 0x13c], eax
mov ebx, dword [esi + 0x13c]
mov edx, dword [ebp + 0x14]
cmp edx, 0xc
ja 0x10087489
mov eax, 0x147f
bt eax, edx
jae 0x100874a0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push edx
call fcn.1007b0f0
add esp, 0x10
test eax, eax
je 0x1008749b
test edi, edi
je 0x100876c1
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jmp 0x100874c9
mov eax, dword [ebp - 0x14]
jmp 0x100874c9
mov eax, 0x900
bt eax, edx
jae 0x10087489
mov dword [ebp - 0x14], 4
mov eax, 0x4207
mov dword [ebp - 0x18], eax
or eax, ebx
test ebx, 0x4207
cmove ebx, eax
mov eax, 4
push eax
push esi
call fcn.1007b160
add esp, 8
test eax, eax
je 0x10087528
push 0
push 0xffffe05a
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x100876c1
mov edi, dword [ebp - 0x14]
cmp dword [0x101f2f50], 0
je 0x10087769
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100876f3
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push edi
mov edi, ecx
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
test dword [ebp - 0x18], ebx
jne 0x1008757f
push 0
push 0xffffe05b
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x100876c1
mov ebx, edi
mov edi, dword [ebp - 0x18]
cmp dword [0x101f2f50], 0
je 0x10087773
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008770e
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push edi
mov edi, ebx
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.10086e10
add esp, 0x10
cmp eax, 0xffffffff
je 0x100875b5
cmp dword [ebp - 0x20], 0
je 0x10087607
test edi, edi
je 0x100875ae
cmp dword [edi + 8], 0
jne 0x100876c1
xor ebx, ebx
jmp 0x100876c4
push 0
push 0xffffe015
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x100876c1
mov ebx, edi
mov edi, dword [ebp - 0x1c]
cmp dword [0x101f2f50], 0
je 0x1008777d
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10087729
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push edi
mov edi, ebx
push 0
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
call fcn.10085d00
add esp, 0x1c
xor ebx, ebx
dec ebx
test edi, edi
jne 0x10087635
test eax, eax
jne 0x100876c4
cmp dword [ebp + 0x14], 0xa
je 0x100875a0
mov eax, dword [ebp + 0x20]
and eax, 1
jne 0x100875a0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100875a0
mov ecx, dword [eax]
test ecx, ecx
je 0x100875a0
call dword [section..00cfg]
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push esi
call ecx
add esp, 0x14
test eax, eax
je 0x100875a0
test edi, edi
je 0x100876c4
cmp dword [0x101f2f50], 0
je 0x10087787
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10087744
xor esi, esi
mov ecx, edi
mov edx, dword [ebp + 0xc]
push esi
push esi
push dword [eax + 0x28]
call fcn.10085c30
add esp, 0xc
jmp 0x100875a4
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x14
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 0x1008742f
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x10087512
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1008756a
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100875f2
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100876a8
call fcn.100029d0
jmp 0x1008741b
call fcn.100029d0
jmp 0x100874fe
call fcn.100029d0
jmp 0x10087556
call fcn.100029d0
jmp 0x100875de
call fcn.100029d0
jmp 0x10087694