Function at 0x100c6140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x101f1014]
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 0x100c61a8
mov esi, eax
call sym.nss3.dll_PK11_GetInternalKeySlot
xor ebx, ebx
dec ebx
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x100c63e7
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 0x100c61be
mov dword [ebp - 0x54], 0
mov ebx, eax
mov esi, dword [ebp - 0x50]
jmp 0x100c63ee
lea eax, [ebp - 0x4c]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100c643e
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x100c61e1
push esi
mov dword [ebp - 0x58], eax
push eax
push 0x133
push dword [ebp - 0x5c]
call fcn.100c7110
add esp, 0x10
jmp 0x100c628b
mov eax, dword [0x101f5264]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x100c621a
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x100c6459
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 0x101f3b28
push 0x133
push dword [ebp - 0x5c]
call fcn.100c7110
add esp, 0x10
test eax, eax
jne 0x100c626d
sub esp, 0x24
mov dword [esp + 0x20], esi
movaps xmm0, xmmword [0x101c00a0]
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], 0x101f3b28
call fcn.100c79e0
add esp, 0x24
mov ecx, dword [0x101f5264]
mov dword [ebp - 0x58], 0x101f3b28
test ecx, ecx
je 0x100c628b
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 0x100c63e7
push eax
mov dword [ebp - 0x54], eax
call fcn.100c73e0
add esp, 4
push eax
push 0x133
call fcn.100b9e20
add esp, 8
test eax, eax
je 0x100c61a0
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 0x100c6452
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 0x100c633e
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 0x100c632a
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 0x100c63bb
push edi
call fcn.100aad10
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.100ba1d0
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100c63bb
lea eax, [ebp - 0x40]
push 0x101f3b34
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 0x100c6409
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 0x100c6418
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100c6428
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x100c643e
lock dec dword [eax + 0x48]
jne 0x100c643e
push eax
call fcn.100cb320
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, esi
jmp 0x100c61a0
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x58], eax
jmp 0x100c6204