Function at 0x1012a860
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [edi + 8]
mov eax, dword [ecx + 8]
test esi, esi
mov dword [ebp - 0x14], eax
je 0x1012a899
push ebx
push esi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
xor ecx, ecx
test eax, eax
jne 0x1012a8ce
call sym.nss3.dll_PK11_GetInternalSlot
mov esi, eax
mov ecx, eax
mov edx, edi
push 0x8a
push 0
call fcn.1010df00
add esp, 8
lock dec dword [esi + 0x48]
mov edi, eax
jne 0x1012a8c4
push esi
call fcn.10135de0
add esp, 4
test edi, edi
mov ecx, edi
je 0x1012aa09
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp esi, dword [ecx + 8]
je 0x1012a913
xor eax, eax
push ecx
push eax
push eax
push 0x106
push ebx
push esi
call fcn.10132150
xor edx, edx
add esp, 0x18
test eax, eax
mov ecx, eax
jne 0x1012a915
mov eax, dword [ebp - 0x2c]
xor esi, esi
dec esi
test eax, eax
je 0x1012aa19
push eax
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
jmp 0x1012aa19
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edi
test eax, eax
jne 0x1012a93f
xor eax, eax
push eax
push eax
push ebx
call fcn.10123c10
add esp, 0xc
test eax, eax
mov edx, eax
je 0x1012aa2d
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1012aa42
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ecx, dword [esi + 0x38]
mov eax, dword [esi]
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 0x1012a9cf
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
test eax, eax
je 0x1012a9e2
push eax
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
test esi, esi
je 0x1012a9f1
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test edi, edi
je 0x1012aa0e
push edi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x1012aa19
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
xor esi, esi
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
jmp 0x1012a94b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x1012a967