Function at 0x1008ec70
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 [0x101db014]
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 0x1008ecbd
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 0x1008ed28
test ebx, ebx
je 0x1008f0f7
mov esi, eax
cmp dword [0x101de200], 0
je 0x1008f12d
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f112
mov ecx, ebx
mov edx, edi
push esi
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
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 0x1008ed53
push edi
call fcn.10081fb0
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 0x1008ed71
test ecx, ecx
jne 0x1008ed71
cmp dword [ebp - 0x2c], 0
jne 0x1008f0f7
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 0x1008ed98
mov ecx, ebx
or ecx, eax
mov ecx, dword [ebp + 0x2c]
jne 0x1008ed98
mov edi, edx
jmp 0x1008ee9c
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x1008eda4
or dword [ecx], esi
or dword [ecx + 4], edi
mov edi, edx
cmp edx, 0xc
ja 0x1008eee0
mov eax, 0x147f
bt eax, edi
jae 0x1008ee9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call fcn.10082e50
add esp, 0x10
test eax, eax
je 0x1008ee02
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1008edef
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 0x1008ee99
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10082ec0
add esp, 8
test eax, eax
je 0x1008eeb0
mov eax, ebx
mov edx, dword [ebp - 0x30]
or eax, edx
je 0x1008ee33
push 0
push 0xffffe05a
call sym.nss3.dll_PR_SetError
mov edx, dword [ebp - 0x30]
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x1008ee79
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
cmp dword [0x101de200], 0
je 0x1008f0d9
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f088
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push dword [ebp - 0x38]
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1008ee8c
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 0x1008ed5f
jmp 0x1008f0fd
mov eax, dword [ebp - 0x3c]
test dword [ebp - 0x18], eax
je 0x1008eeed
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0xc]
call fcn.1008eb80
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008ef12
cmp dword [ebp - 0x28], 0
je 0x1008ef74
mov ecx, dword [ebp + 0x2c]
jmp 0x1008ee9c
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jmp 0x1008eddf
mov eax, ebx
or eax, dword [ebp - 0x30]
je 0x1008ef03
push 0
push 0xffffe05b
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x1008eddc
mov eax, dword [ebp - 0x18]
jmp 0x1008ef35
mov eax, ebx
or eax, dword [ebp - 0x30]
je 0x1008ef28
push 0
push 0xffffe015
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x1008eddc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
cmp dword [0x101de200], 0
je 0x1008f0e3
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f0a3
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0xc]
push dword [ebp - 0x38]
push 0
push dword [eax + 0x28]
call fcn.1008d9a0
add esp, 0xc
jmp 0x1008eddc
cmp dword [ebp - 0x20], 1
je 0x1008eddc
cmp dword [ebp - 0x24], 1
je 0x1008eddc
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.1008da70
add esp, 0x1c
test eax, eax
jne 0x1008eddc
cmp dword [ebp - 0x34], 0
mov ecx, dword [ebp + 0x2c]
je 0x1008efc7
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x1008ee9c
mov eax, dword [ebp + 0x14]
xor eax, 0x400
or eax, dword [ebp + 0x18]
je 0x1008efbc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1008efbc
mov ecx, dword [eax]
test ecx, ecx
je 0x1008f07d
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 0x1008f07d
cmp dword [ebp + 0x28], 0
mov ecx, dword [ebp + 0x2c]
je 0x1008f050
cmp dword [0x101de200], 0
je 0x1008f0ed
mov dword [ebp - 0x38], ebx
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008f0be
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.1008d9a0
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 1
test ecx, ecx
je 0x1008f067
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 0x1008efbc
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x1008eedb
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008ee60
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008ef59
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1008f033
call fcn.100745e0
jmp 0x1008ee4c
call fcn.100745e0
jmp 0x1008ef45
call fcn.100745e0
jmp 0x1008f01c
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, dword [ebp - 0x2c]
add esp, 0x34
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 0x1008ed10
call fcn.100745e0
jmp 0x1008ecfc