Function at 0x1008ca30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [esp + 0x18], eax
test esi, esi
je 0x1008ca58
mov dword [esi], 0
push dword [0x101f3598]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov ecx, ebx
call fcn.1008a860
test edi, edi
jne 0x1008ca91
test eax, eax
je 0x1008ca91
cmp dword [eax + 0x18], 0
je 0x1008cbb9
mov ecx, dword [eax + 0x1c]
dec ecx
cmp ecx, 1
ja 0x1008cbb9
jmp 0x1008d036
test eax, eax
je 0x1008cc03
test edi, edi
je 0x1008cbb9
lea esi, [edi + 0x18]
lea ecx, [esp + 0x10]
push esi
push ecx
mov dword [esp + 8], eax
call sym.nss3.dll_DER_GeneralizedTimeToTime_Util
mov ecx, dword [esp + 8]
add esp, 8
cmp byte [ecx + 0x28], 0
je 0x1008cadc
test eax, eax
jne 0x1008cf47
mov eax, dword [ecx + 0x30]
cmp eax, dword [esp + 0x10]
mov eax, dword [ecx + 0x34]
sbb eax, dword [esp + 0x14]
jge 0x1008cf47
mov dword [esp + 8], esi
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1008cafa
xor esi, esi
push esi
push eax
call sym.nss3.dll_PORT_FreeArena_Util
mov ecx, dword [esp + 8]
add esp, 8
mov dword [ecx + 0x18], esi
mov word [ecx + 0x28], 0
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
mov ecx, dword [esp + 4]
add esp, 4
mov dword [ecx + 0x18], eax
test eax, eax
je 0x1008cf38
mov ebx, eax
mov eax, dword [edi + 0x14]
mov esi, ecx
mov ecx, dword [eax]
mov dword [esi + 0x1c], ecx
mov ecx, dword [eax + 4]
cmp dword [eax], 1
jne 0x1008ceb1
mov dword [esp + 4], ecx
push ebx
call sym.nss3.dll_PORT_ArenaMark_Util
add esp, 4
mov esi, eax
push 0x10
push ebx
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1008cf07
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [esp + 0xc], esi
mov esi, dword [esp]
mov dword [esi + 0x20], eax
push dword [esp + 4]
push eax
push ebx
call sym.nss3.dll_SECITEM_CopyItem_Util
mov ecx, esi
mov esi, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x1008cf11
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008d057
push eax
push ebx
call sym.nss3.dll_SECITEM_ArenaDupItem_Util
add esp, 8
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x20]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp]
mov eax, dword [ecx + 0x20]
cmp dword [eax + 0xc], 0
jne 0x1008cec4
jmp 0x1008cf11
mov esi, eax
cmp dword [0x101f4f80], 0
je 0x1008d08f
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1008d074
mov eax, dword [eax + 0x28]
mov edi, esi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1008cf49
xor esi, esi
push esi
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov dword [edi + 0x18], esi
jmp 0x1008cf49
test esi, esi
je 0x1008ccf1
mov dword [esi], 1
mov esi, ebx
push dword [0x101f3598]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov ebx, dword [esi + 0x84]
push ebx
call sym.nss3.dll_PORT_ArenaMark_Util
add esp, 4
mov dword [esp], eax
push 0x40
push dword [esi + 0x84]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1008ccdd
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 8], esi
push eax
push esi
push dword [0x101f35b0]
mov esi, eax
call sym.nss3.dll_PL_HashTableAdd
add esp, 0xc
test eax, eax
je 0x1008ccdd
inc dword [0x101f35b4]
push dword [0x101f3598]
call sym.nss3.dll_PR_EnterMonitor
mov ecx, esi
add esp, 4
cmp dword [0x101f35bc], 0
jne 0x1008cc9b
mov dword [0x101f35bc], ecx
mov eax, dword [0x101f35b8]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov eax, dword [0x101f35b8]
test eax, eax
je 0x1008ccb4
mov dword [eax], ecx
mov dword [0x101f35b8], ecx
push dword [0x101f3598]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push dword [0x101f3598]
call sym.nss3.dll_PR_ExitMonitor
mov eax, esi
add esp, 4
jmp 0x1008ca99
mov ecx, ebx
mov edx, dword [esp]
push 0
call fcn.100dd3f0
add esp, 4
jmp 0x1008d028
mov dword [esp], edi
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
test eax, eax
je 0x1008ce83
mov edi, eax
push 0x88
push eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1008ce78
mov esi, eax
push 0x88
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebx + 4], 0
je 0x1008cd4c
push ebx
push esi
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x10], 0
je 0x1008cd6b
lea eax, [ebx + 0xc]
lea ecx, [esi + 0xc]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x1c], 0
je 0x1008cd8a
lea eax, [ebx + 0x18]
lea ecx, [esi + 0x18]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x28], 0
je 0x1008cda9
lea eax, [ebx + 0x24]
lea ecx, [esi + 0x24]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x34], 0
je 0x1008cdc8
lea eax, [ebx + 0x30]
lea ecx, [esi + 0x30]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x40], 0
je 0x1008cde7
lea eax, [ebx + 0x3c]
lea ecx, [esi + 0x3c]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x4c], 0
je 0x1008ce02
lea eax, [ebx + 0x48]
lea ecx, [esi + 0x48]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x58], 0
je 0x1008ce1d
lea eax, [ebx + 0x54]
lea ecx, [esi + 0x54]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x64], 0
je 0x1008ce38
lea eax, [ebx + 0x60]
lea ecx, [esi + 0x60]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x70], 0
je 0x1008ce53
lea eax, [ebx + 0x6c]
lea ecx, [esi + 0x6c]
push eax
push ecx
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1008ce78
cmp dword [ebx + 0x7c], 0
je 0x1008d066
add ebx, 0x78
mov eax, esi
add eax, 0x78
push ebx
push eax
push edi
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
je 0x1008d066
push 0
push edi
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
xor esi, esi
mov edi, 0xffffe890
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [0x101f3598]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1008d044
push ecx
push ebx
call sym.nss3.dll_SECITEM_ArenaDupItem_Util
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
mov ecx, esi
je 0x1008cf23
mov dword [ecx + 0x24], 0
lea eax, [ecx + 0x30]
push dword [esp + 8]
push eax
call sym.nss3.dll_DER_GeneralizedTimeToTime_Util
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
sete byte [ecx + 0x28]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1008cf42
mov ecx, dword [esp]
add ecx, 0x38
push eax
push ecx
call sym.nss3.dll_DER_GeneralizedTimeToTime_Util
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
sete al
jmp 0x1008cf44
mov eax, dword [esp]
mov dword [eax + 0x20], 0
mov ecx, ebx
mov edx, esi
push 0
call fcn.100dd3f0
mov ecx, dword [esp + 4]
add esp, 4
xor esi, esi
push esi
push dword [ecx + 0x18]
call sym.nss3.dll_PORT_FreeArena_Util
mov ecx, dword [esp + 8]
add esp, 8
mov dword [ecx + 0x18], esi
call fcn.100891f0
jmp 0x1008d036
xor eax, eax
mov byte [ecx + 0x29], al
mov edi, ecx
push dword [0x101f3598]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
call sym.nss3.dll_PR_Now
cmp byte [edi + 0x28], 0
je 0x1008cf6f
mov ebx, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov esi, 0x101f35a8
jmp 0x1008cf78
mov esi, 0x101f35a4
mov ebx, eax
mov ecx, edx
imul esi, dword [esi], 0xf4240
add esi, ebx
adc ecx, 0
cmp byte [edi + 0x29], 0
je 0x1008cfba
mov ebx, dword [edi + 0x38]
mov dword [esp + 4], ebx
cmp ebx, esi
mov dword [esp], edi
mov edi, esi
cmovb edi, ebx
mov ebx, dword [esp]
mov ebx, dword [ebx + 0x3c]
mov dword [esp + 8], ebx
cmp dword [esp + 8], ecx
cmovl esi, dword [esp + 4]
mov ebx, dword [esp]
cmove esi, edi
cmovl ecx, dword [esp + 8]
jmp 0x1008cfbc
mov ebx, edi
imul edi, dword [0x101f35a4], 0xf4240
add eax, edi
adc edx, 0
cmp esi, eax
mov edi, eax
cmova edi, esi
cmp ecx, edx
cmovg eax, esi
cmove eax, edi
cmovg edx, ecx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], eax
push dword [0x101f3598]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push dword [0x101f3598]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [0x101f35a0]
test eax, eax
jle 0x1008d028
cmp dword [0x101f35b4], eax
jbe 0x1008d028
mov ecx, dword [0x101f35bc]
call fcn.100891f0
mov eax, dword [0x101f35b4]
cmp eax, dword [0x101f35a0]
ja 0x1008d010
push dword [0x101f3598]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push dword [0x101f3598]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.10157a00
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 0x20]
mov dword [eax + 0xc], 0
jmp 0x1008cec4
mov dword [esi + 0x84], edi
mov edi, dword [esp]
jmp 0x1008cc13
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1008cbdc
call fcn.1001b2e0
jmp 0x1008cbc8