Function at 0x100c4b90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x101ef014]
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 0x100c4bf8
mov esi, eax
call sym.nss3.dll_PK11_GetInternalKeySlot
xor ebx, ebx
dec ebx
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x100c4e37
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 0x100c4c0e
mov dword [ebp - 0x54], 0
mov ebx, eax
mov esi, dword [ebp - 0x50]
jmp 0x100c4e3e
lea eax, [ebp - 0x4c]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100c4e8e
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x100c4c31
push esi
mov dword [ebp - 0x58], eax
push eax
push 0x133
push dword [ebp - 0x5c]
call fcn.100c5b60
add esp, 0x10
jmp 0x100c4cdb
mov eax, dword [0x101f3234]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x100c4c6a
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x100c4ea9
mov eax, dword [ebp - 0x54]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
push esi
push 0x101f1b00
push 0x133
push dword [ebp - 0x5c]
call fcn.100c5b60
add esp, 0x10
test eax, eax
jne 0x100c4cbd
sub esp, 0x24
mov dword [esp + 0x20], esi
movaps xmm0, xmmword [0x101bdec0]
movups xmmword [esp + 4], xmm0
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov dword [esp + 0x1c], 5
mov dword [esp + 0x18], 0x900
mov dword [esp + 0x14], 0x101f1b00
call fcn.100c6430
add esp, 0x24
mov ecx, dword [0x101f3234]
mov dword [ebp - 0x58], 0x101f1b00
test ecx, ecx
je 0x100c4cdb
push ecx
mov esi, eax
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 4
mov esi, dword [ebp - 0x50]
test eax, eax
je 0x100c4e37
push eax
mov dword [ebp - 0x54], eax
call fcn.100c5e30
add esp, 4
push eax
push 0x133
call fcn.100b8860
add esp, 8
test eax, eax
je 0x100c4bf0
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 0x100c4ea2
mov dword [ebp - 0x68], 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 - 0x64], ecx
add ebx, ecx
mov dword [ebp - 0x44], ebx
push ebx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x48], eax
push dword [edi + 8]
push dword [edi + 4]
mov dword [ebp - 0x60], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 8]
cmp eax, ebx
jae 0x100c4d8e
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x48]
mov byte [ecx + eax], dl
inc eax
mov ebx, dword [ebp - 0x44]
cmp eax, ebx
jb 0x100c4d7a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
lea edi, [ebp - 0x14]
mov dword [edi], ebx
push ebx
push dword [ebp - 0x50]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov dword [edi - 4], eax
push ebx
push dword [ebp - 0x60]
push ebx
push edi
push eax
mov edi, dword [ebp - 0x68]
push edi
call sym.nss3.dll_PK11_CipherOp
add esp, 0x18
mov ebx, eax
test eax, eax
jne 0x100c4e0b
push edi
call fcn.100a9750
add esp, 4
mov ecx, dword [ebp - 0x58]
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.100b8c10
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100c4e0b
lea eax, [ebp - 0x40]
push 0x101f1b0c
push eax
push dword [ebp + 0x10]
push 0
call sym.nss3.dll_SEC_ASN1EncodeItem_Util
add esp, 0x10
xor ebx, ebx
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 0x100c4e59
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 0x100c4e68
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100c4e78
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x100c4e8e
lock dec dword [eax + 0x48]
jne 0x100c4e8e
push eax
call fcn.100c9d60
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, esi
jmp 0x100c4bf0
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x58], eax
jmp 0x100c4c54