Function at 0x100c7b50
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
test edx, edx
je 0x100c7bbe
lea eax, [ecx + 8]
xor edi, edi
mov ecx, edx
xor edx, edx
mov ebx, dword [eax - 8]
cmp ebx, 1
je 0x100c7b99
cmp ebx, 0x161
jne 0x100c7bad
mov edi, dword [eax - 4]
test edi, edi
je 0x100c7bf1
cmp dword [eax], 4
jne 0x100c7bf1
mov edi, dword [edi]
jmp 0x100c7bad
mov ebx, dword [eax - 4]
test ebx, ebx
je 0x100c7bf1
cmp dword [eax], 1
jne 0x100c7bf1
xor edx, edx
cmp byte [ebx], 0
setne dl
add eax, 0xc
dec ecx
jne 0x100c7b79
test edx, edx
je 0x100c7bc0
xor ebx, ebx
mov edx, dword [ebp + 0xc]
jmp 0x100c7bda
xor edi, edi
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x100c7bfb
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 0x100c7bfb
movzx eax, bl
mov ecx, esi
push dword [ebp + 0x20]
push 1
push eax
call fcn.100c6b90
add esp, 0xc
mov esi, eax
jmp 0x100c7c45
push 0xd1
jmp 0x100c7d80
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.100cf1d0
add esp, 0x14
test eax, eax
je 0x100c7d55
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.100c6b90
add esp, 0xc
mov esi, eax
lock dec dword [ebx + 0x48]
jne 0x100c7c43
push ebx
call fcn.100cb320
add esp, 4
mov bl, 1
test esi, esi
je 0x100c7d93
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 0x100c7c78
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 0x100c7cd1
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100c7d43
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x100c7c99
cmp dword [eax + 0x30], 0
jne 0x100c7cf7
mov dword [ebp - 0x20], ebx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x28], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100c7da9
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 0x100c7cf7
push eax
push 1
push dword [esi + 8]
call sym.nss3.dll_PK11_Authenticate
add esp, 0xc
push dword [esi + 8]
call fcn.100cb930
add esp, 4
mov edi, eax
mov dword [esi + 0x14], 0
test eax, eax
je 0x100c7d43
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 0x100c7d66
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x100c7d36
cmp dword [eax + 0x30], 0
jne 0x100c7d72
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c7d72
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push 0
push 0xffffe002
jmp 0x100c7d8b
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100c7d95
push edi
push dword [esi + 8]
call fcn.100cba60
add esp, 8
test ebx, ebx
je 0x100c7d95
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push ebx
call fcn.100aaef0
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.10157a00
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100c7cb9