Function at 0x10088960
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 [0x101f1014]
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 0x100889e1
test edi, edi
je 0x10088c61
mov ebx, eax
cmp dword [0x101f4f80], 0
je 0x10088cff
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10088c78
mov ecx, edi
mov edx, esi
push ebx
push 0
push dword [eax + 0x28]
call fcn.100871d0
add esp, 0xc
mov ebx, dword [esi + 0x13c]
test ebx, ebx
jne 0x10088a00
push esi
call fcn.1007b5e0
add esp, 4
xchg dword [esi + 0x13c], eax
mov ebx, dword [esi + 0x13c]
mov edx, dword [ebp + 0x14]
cmp edx, 0xc
ja 0x10088a29
mov eax, 0x147f
bt eax, edx
jae 0x10088a40
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push edx
call fcn.1007c690
add esp, 0x10
test eax, eax
je 0x10088a3b
test edi, edi
je 0x10088c61
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jmp 0x10088a69
mov eax, dword [ebp - 0x14]
jmp 0x10088a69
mov eax, 0x900
bt eax, edx
jae 0x10088a29
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.1007c700
add esp, 8
test eax, eax
je 0x10088ac8
push 0
push 0xffffe05a
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x10088c61
mov edi, dword [ebp - 0x14]
cmp dword [0x101f4f80], 0
je 0x10088d09
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10088c93
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push edi
mov edi, ecx
push 0
push dword [eax + 0x28]
call fcn.100871d0
add esp, 0xc
test dword [ebp - 0x18], ebx
jne 0x10088b1f
push 0
push 0xffffe05b
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x10088c61
mov ebx, edi
mov edi, dword [ebp - 0x18]
cmp dword [0x101f4f80], 0
je 0x10088d13
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10088cae
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push edi
mov edi, ebx
push 0
push dword [eax + 0x28]
call fcn.100871d0
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.100883b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10088b55
cmp dword [ebp - 0x20], 0
je 0x10088ba7
test edi, edi
je 0x10088b4e
cmp dword [edi + 8], 0
jne 0x10088c61
xor ebx, ebx
jmp 0x10088c64
push 0
push 0xffffe015
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x10088c61
mov ebx, edi
mov edi, dword [ebp - 0x1c]
cmp dword [0x101f4f80], 0
je 0x10088d1d
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10088cc9
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push edi
mov edi, ebx
push 0
push dword [eax + 0x28]
call fcn.100871d0
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.100872a0
add esp, 0x1c
xor ebx, ebx
dec ebx
test edi, edi
jne 0x10088bd5
test eax, eax
jne 0x10088c64
cmp dword [ebp + 0x14], 0xa
je 0x10088b40
mov eax, dword [ebp + 0x20]
and eax, 1
jne 0x10088b40
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10088b40
mov ecx, dword [eax]
test ecx, ecx
je 0x10088b40
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 0x10088b40
test edi, edi
je 0x10088c64
cmp dword [0x101f4f80], 0
je 0x10088d27
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10088ce4
xor esi, esi
mov ecx, edi
mov edx, dword [ebp + 0xc]
push esi
push esi
push dword [eax + 0x28]
call fcn.100871d0
add esp, 0xc
jmp 0x10088b44
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100889cf
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10088ab2
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10088b0a
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10088b92
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x10088c48
call fcn.1001b2e0
jmp 0x100889bb
call fcn.1001b2e0
jmp 0x10088a9e
call fcn.1001b2e0
jmp 0x10088af6
call fcn.1001b2e0
jmp 0x10088b7e
call fcn.1001b2e0
jmp 0x10088c34