Function at 0x100c04a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [edi + 8]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x100c04d9
push ebx
push esi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
xor ecx, ecx
test eax, eax
jne 0x100c050e
call sym.nss3.dll_PK11_GetInternalSlot
mov esi, eax
mov ecx, eax
mov edx, edi
push 0x8a
push 0
call fcn.100a31d0
add esp, 8
mov edi, eax
lock dec dword [esi + 0x48]
jne 0x100c0504
push esi
call fcn.100cb320
add esp, 4
mov ecx, edi
test edi, edi
je 0x100c0649
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp esi, dword [ecx + 8]
je 0x100c0553
xor eax, eax
push ecx
push eax
push eax
push 0x106
push ebx
push esi
call fcn.100c75b0
xor edx, edx
add esp, 0x18
mov ecx, eax
test eax, eax
jne 0x100c0555
xor esi, esi
dec esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100c0659
push eax
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
jmp 0x100c0659
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], ebx
test eax, eax
mov dword [ebp - 0x24], edi
jne 0x100c057f
xor eax, eax
push eax
push eax
push ebx
call fcn.100b9480
add esp, 0xc
mov edx, eax
test eax, eax
je 0x100c066d
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100c0682
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [esi]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0xf2]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax + 0xc]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x20]
push eax
push ebx
push edi
push dword [ebp - 0x24]
push edx
push dword [ebp - 0x30]
call ecx
add esp, 0x18
mov edi, eax
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100c060f
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
mov esi, dword [ebp - 0x28]
je 0x100c0622
push eax
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
test esi, esi
je 0x100c0631
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test edi, edi
je 0x100c064e
push edi
call fcn.100aaef0
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100c0659
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
jmp 0x100c058b
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x100c05a7