Function at 0x1008f140
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 [0x101db014]
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 0x1008f1c4
test edi, edi
je 0x1008f45d
mov ebx, eax
cmp dword [0x101de200], 0
je 0x1008f4fb
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f474
mov ecx, edi
mov esi, dword [ebp + 0xc]
mov edx, esi
push ebx
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
add esp, 0xc
mov ebx, dword [esi + 0x13c]
test ebx, ebx
jne 0x1008f1e6
push esi
call fcn.10081fb0
mov esi, dword [ebp + 0xc]
add esp, 4
xchg dword [esi + 0x13c], eax
mov ebx, dword [esi + 0x13c]
mov edx, dword [ebp + 0x14]
cmp edx, 0xc
ja 0x1008f455
mov eax, 0x147f
bt eax, edx
jae 0x1008f230
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push edx
call fcn.10082e50
add esp, 0x10
test eax, eax
je 0x1008f228
test edi, edi
mov esi, dword [ebp + 0xc]
je 0x1008f45d
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jmp 0x1008f25d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x1008f25d
mov eax, 0x900
bt eax, edx
jae 0x1008f455
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.10082ec0
add esp, 8
test eax, eax
je 0x1008f2bc
push 0
push 0xffffe05a
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x1008f45d
mov edi, dword [ebp - 0x14]
cmp dword [0x101de200], 0
je 0x1008f505
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f48f
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push edi
mov edi, ecx
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
add esp, 0xc
test dword [ebp - 0x18], ebx
jne 0x1008f313
push 0
push 0xffffe05b
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x1008f45d
mov ebx, edi
mov edi, dword [ebp - 0x18]
cmp dword [0x101de200], 0
je 0x1008f50f
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f4aa
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push edi
mov edi, ebx
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
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.1008eb80
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008f349
cmp dword [ebp - 0x20], 0
je 0x1008f39b
test edi, edi
je 0x1008f342
cmp dword [edi + 8], 0
jne 0x1008f45d
xor ebx, ebx
jmp 0x1008f460
push 0
push 0xffffe015
call sym.nss3.dll_PR_SetError
add esp, 8
test edi, edi
je 0x1008f45d
mov ebx, edi
mov edi, dword [ebp - 0x1c]
cmp dword [0x101de200], 0
je 0x1008f519
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f4c5
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push edi
mov edi, ebx
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
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.1008da70
add esp, 0x1c
xor ebx, ebx
dec ebx
test edi, edi
jne 0x1008f3c9
test eax, eax
jne 0x1008f460
cmp dword [ebp + 0x14], 0xa
je 0x1008f334
mov eax, dword [ebp + 0x20]
and eax, 1
jne 0x1008f334
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1008f334
mov ecx, dword [eax]
test ecx, ecx
je 0x1008f334
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 0x1008f334
test edi, edi
je 0x1008f460
cmp dword [0x101de200], 0
je 0x1008f523
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f4e0
xor esi, esi
mov ecx, edi
mov edx, dword [ebp + 0xc]
push esi
push esi
push dword [eax + 0x28]
call fcn.1008d9a0
add esp, 0xc
jmp 0x1008f338
test edi, edi
jne 0x1008f21e
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008f1af
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008f2a6
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008f2fe
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008f386
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008f43c
call fcn.100745e0
jmp 0x1008f19b
call fcn.100745e0
jmp 0x1008f292
call fcn.100745e0
jmp 0x1008f2ea
call fcn.100745e0
jmp 0x1008f372
call fcn.100745e0
jmp 0x1008f428