Function at 0x100c65a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
test edx, edx
je 0x100c660e
lea eax, [ecx + 8]
xor edi, edi
mov ecx, edx
xor edx, edx
mov ebx, dword [eax - 8]
cmp ebx, 1
je 0x100c65e9
cmp ebx, 0x161
jne 0x100c65fd
mov edi, dword [eax - 4]
test edi, edi
je 0x100c6641
cmp dword [eax], 4
jne 0x100c6641
mov edi, dword [edi]
jmp 0x100c65fd
mov ebx, dword [eax - 4]
test ebx, ebx
je 0x100c6641
cmp dword [eax], 1
jne 0x100c6641
xor edx, edx
cmp byte [ebx], 0
setne dl
add eax, 0xc
dec ecx
jne 0x100c65c9
test edx, edx
je 0x100c6610
xor ebx, ebx
mov edx, dword [ebp + 0xc]
jmp 0x100c662a
xor edi, edi
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x100c664b
push edx
push esi
call sym.nss3.dll_PK11_DoesMechanism
mov edx, dword [ebp + 0xc]
add esp, 8
mov bl, 1
test eax, eax
je 0x100c664b
movzx eax, bl
mov ecx, esi
push dword [ebp + 0x20]
push 1
push eax
call fcn.100c55e0
add esp, 0xc
mov esi, eax
jmp 0x100c6695
push 0xd1
jmp 0x100c67d0
lea eax, [ebp - 0x1c]
mov dword [eax], edx
xor esi, esi
mov ecx, dword [ebp + 0x20]
push ecx
push 1
push esi
push esi
push eax
call fcn.100cdc10
add esp, 0x14
test eax, eax
je 0x100c67a5
mov ebx, eax
xor eax, eax
inc eax
mov ecx, ebx
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x20]
push eax
push eax
call fcn.100c55e0
add esp, 0xc
mov esi, eax
lock dec dword [ebx + 0x48]
jne 0x100c6693
push ebx
call fcn.100c9d60
add esp, 4
mov bl, 1
test esi, esi
je 0x100c67e3
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 2
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x100c66c8
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
test bl, bl
mov eax, dword [ebp + 0x20]
je 0x100c6721
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100c6793
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x100c66e9
cmp dword [eax + 0x30], 0
jne 0x100c6747
mov dword [ebp - 0x20], ebx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x28], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100c67f9
mov ebx, dword [ebp - 0x28]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x20]
jmp 0x100c6747
push eax
push 1
push dword [esi + 8]
call sym.nss3.dll_PK11_Authenticate
add esp, 0xc
push dword [esi + 8]
call fcn.100ca370
add esp, 4
mov edi, eax
mov dword [esi + 0x14], 0
test eax, eax
je 0x100c6793
mov dword [ebp - 0x20], ebx
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xea]
lea ebx, [esi + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push edi
call ecx
add esp, 0x14
mov ebx, eax
cmp byte [ebp - 0x20], 0
je 0x100c67b6
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x100c6786
cmp dword [eax + 0x30], 0
jne 0x100c67c2
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c67c2
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push 0
push 0xffffe002
jmp 0x100c67db
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100c67e5
push edi
push dword [esi + 8]
call fcn.100ca4a0
add esp, 8
test ebx, ebx
je 0x100c67e5
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push ebx
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100c6709