Function at 0x100ccbd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
test eax, eax
je 0x100ccc3a
mov esi, eax
call sym.nss3.dll_PK11_GetInternalKeySlot
xor ebx, ebx
dec ebx
test eax, eax
mov dword [ebp - 0x58], eax
je 0x100ccddb
mov dword [ebp - 0x50], esi
mov esi, dword [ebp + 0x14]
push esi
push 1
push eax
call sym.nss3.dll_PK11_Authenticate
add esp, 0xc
test eax, eax
je 0x100ccc50
mov dword [ebp - 0x54], 0
xor edi, edi
mov ebx, eax
mov esi, dword [ebp - 0x50]
jmp 0x100ccde2
lea eax, [ebp - 0x4c]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100cce32
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x100ccc73
push esi
mov dword [ebp - 0x5c], eax
push eax
push 0x133
push dword [ebp - 0x58]
call fcn.100cdb40
add esp, 0x10
jmp 0x100ccd1e
mov edi, dword [0x101dee8c]
test edi, edi
je 0x100ccca4
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x100ccefb
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x54]
mov dword [edi + 8], eax
push esi
push 0x101dd688
push 0x133
push dword [ebp - 0x58]
call fcn.100cdb40
add esp, 0x10
test eax, eax
jne 0x100cccf7
sub esp, 0x24
mov dword [esp + 0x20], esi
movaps xmm0, xmmword [0x101aab70]
movups xmmword [esp + 4], xmm0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov dword [esp + 0x1c], 5
mov dword [esp + 0x18], 0x900
mov dword [esp + 0x14], 0x101dd688
call fcn.100ce400
add esp, 0x24
mov ecx, dword [0x101dee8c]
test ecx, ecx
je 0x100ccd17
mov dword [ebp - 0x5c], 0x101dd688
push ecx
mov esi, eax
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 4
jmp 0x100ccd1e
mov dword [ebp - 0x5c], 0x101dd688
mov esi, dword [ebp - 0x50]
xor edi, edi
test eax, eax
je 0x100ccddb
push eax
mov dword [ebp - 0x54], eax
call fcn.100cde20
add esp, 4
push eax
push 0x133
call fcn.100c0200
add esp, 8
test eax, eax
je 0x100ccc32
mov esi, eax
push eax
push dword [ebp - 0x54]
push 0x104
push 0x133
call sym.nss3.dll_PK11_CreateContextBySymKey
add esp, 0x10
test eax, eax
je 0x100cce46
mov dword [ebp - 0x64], eax
mov edi, dword [ebp + 0xc]
push 0
push 0x133
call sym.nss3.dll_PK11_GetBlockSize
add esp, 8
mov ecx, eax
mov ebx, dword [edi + 8]
mov eax, ebx
xor edx, edx
div ecx
sub ecx, edx
mov dword [ebp - 0x60], ecx
add ebx, ecx
mov dword [ebp - 0x44], ebx
push ebx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov edi, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp eax, ebx
jae 0x100cce50
mov edx, dword [ebp - 0x60]
mov byte [edi + eax], dl
inc eax
mov ebx, dword [ebp - 0x44]
cmp eax, ebx
jae 0x100cce4d
mov ecx, dword [ebp - 0x48]
mov byte [ecx + eax], dl
jmp 0x100ccdcb
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x4c]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push 1
push esi
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov esi, edi
test esi, esi
je 0x100cce0c
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100cce1c
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x100cce32
lock dec dword [eax + 0x48]
jne 0x100cce32
push eax
call fcn.100d1c70
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, esi
jmp 0x100ccc32
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
mov dword [eax], ebx
push ebx
push dword [ebp - 0x50]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
lea ecx, [ebp - 0x14]
mov dword [ecx - 4], eax
push ebx
push edi
push ebx
push ecx
push eax
mov edi, dword [ebp - 0x64]
push edi
call sym.nss3.dll_PK11_CipherOp
add esp, 0x18
mov ebx, eax
test eax, eax
jne 0x100ccecc
push edi
call fcn.100b1070
add esp, 4
mov ecx, dword [ebp - 0x5c]
movsd xmm0, qword [ecx]
lea eax, [ebp - 0x34]
movsd qword [eax - 0xc], xmm0
mov ecx, dword [ecx + 8]
mov dword [eax - 4], ecx
push eax
push dword [ebp - 0x50]
push esi
push 7
call fcn.100c05c0
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100ccecc
lea eax, [ebp - 0x40]
push 0x101dd694
push eax
push dword [ebp + 0x10]
push 0
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
cmp eax, 1
sbb ebx, ebx
lea eax, [ebp - 0x4c]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor eax, eax
inc eax
push eax
push dword [ebp - 0x50]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
xor eax, eax
inc eax
push eax
push edi
call sym.nss3.dll_PK11_DestroyContext
add esp, 8
jmp 0x100ccdfd
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x54], eax
jmp 0x100ccc94