Function at 0x10121360
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ecx + 0x3dc]
xor edi, edi
mov ebx, 0
test eax, eax
jne 0x10121391
cmp dword [esi + 0x3d8], 0
je 0x1012138f
cmp dword [esi + 0x3d4], 0
setne bl
jmp 0x10121391
xor ebx, ebx
cmp dword [esi + 0x38], 0
je 0x1012139d
mov edi, dword [esi + 0xa4]
test eax, eax
je 0x101213b6
mov dword [esi + 0x3dc], 0
push esi
call fcn.100fbf80
add esp, 4
jmp 0x101213c1
test bl, bl
je 0x101213c9
mov ecx, esi
call fcn.101215f0
test eax, eax
jne 0x101214d4
cmp dword [esi + 0x38], 0
je 0x10121407
mov eax, dword [esi + 0xa4]
sub eax, edi
mov ecx, dword [esi + 0xa0]
add ecx, edi
push eax
push ecx
push dword [esi + 0x484]
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
test eax, eax
je 0x10121407
push 0
push 0xffffd07f
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101214d4
cmp dword [esi + 0x62c], 0
je 0x10121452
lea eax, [esi + 0x99c]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
lea ecx, [esi + 0x9a8]
mov eax, dword [esi + 0x9a8]
test eax, eax
je 0x10121442
push 0
push eax
mov dword [ebp - 0x10], ecx
call sym.nss3.dll_PORT_FreeArena_Util
mov ecx, dword [ebp - 0x10]
add esp, 8
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [esi + 0x62c], 0
test bl, bl
je 0x101214b9
cmp dword [esi + 0x38], 0
je 0x10121462
mov edi, dword [esi + 0xa4]
mov edx, dword [esi + 0x3d4]
mov ecx, esi
call fcn.101217d0
mov ebx, eax
push dword [esi + 0x3d4]
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
mov dword [esi + 0x3d4], 0
test ebx, ebx
jne 0x101214d4
cmp dword [esi + 0x38], 0
je 0x101214b9
mov eax, dword [esi + 0xa4]
sub eax, edi
add edi, dword [esi + 0xa0]
push eax
push edi
push dword [esi + 0x484]
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
test eax, eax
jne 0x101213f3
xor eax, eax
cmp dword [esi + 0x38], 0
setne al
mov edx, dword [esi + eax*8 + 0x5ec]
mov ecx, esi
call fcn.10121960
test eax, eax
je 0x10121545
cmp dword [0x101f4f80], 0
je 0x101215c4
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10121576
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101f4f80], 0
je 0x101215ce
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10121591
mov edi, dword [eax + 0x28]
push 0x50
push 2
push esi
call fcn.100f4470
add esp, 0xc
push 0
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.100f6500
add esp, 8
test eax, eax
je 0x10121572
cmp dword [0x101f4f80], 0
je 0x101215d8
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101215ac
mov edi, dword [eax + 0x28]
jmp 0x1012152f
xor eax, eax
jmp 0x1012153d
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x101214f5
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1012151f
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1012156d
call fcn.1001b2e0
jmp 0x101214e1
call fcn.1001b2e0
jmp 0x1012150f
call fcn.1001b2e0
jmp 0x1012155d