Function at 0x101326e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x101d2014]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
xor eax, ebp
test edx, edx
mov dword [ebp - 0x10], eax
je 0x1013274e
lea eax, [ecx + 8]
mov ecx, edx
xor edi, edi
xor edx, edx
mov ebx, dword [eax - 8]
cmp ebx, 1
je 0x10132729
cmp ebx, 0x161
jne 0x1013273d
mov edi, dword [eax - 4]
test edi, edi
je 0x10132781
cmp dword [eax], 4
jne 0x10132781
mov edi, dword [edi]
jmp 0x1013273d
mov ebx, dword [eax - 4]
test ebx, ebx
je 0x10132781
cmp dword [eax], 1
jne 0x10132781
xor edx, edx
cmp byte [ebx], 0
setne dl
add eax, 0xc
dec ecx
jne 0x10132709
test edx, edx
je 0x10132750
mov edx, dword [ebp + 0xc]
xor ebx, ebx
jmp 0x1013276a
xor edi, edi
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x1013278b
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 0x1013278b
movzx eax, bl
mov ecx, esi
push dword [ebp + 0x20]
push 1
push eax
call fcn.101317e0
add esp, 0xc
mov esi, eax
jmp 0x101327d5
push 0xd1
jmp 0x10132910
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x1c]
xor esi, esi
mov dword [eax], edx
push ecx
push 1
push esi
push esi
push eax
call fcn.101396c0
add esp, 0x14
test eax, eax
je 0x101328e5
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
inc eax
mov ecx, ebx
push dword [ebp + 0x20]
push eax
push eax
call fcn.101317e0
add esp, 0xc
lock dec dword [ebx + 0x48]
mov esi, eax
jne 0x101327d3
push ebx
call fcn.10135de0
add esp, 4
mov bl, 1
test esi, esi
je 0x10132923
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
test eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
je 0x10132808
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
test bl, bl
je 0x10132861
mov edi, dword [esi + 0x24]
test edi, edi
je 0x101328d3
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x10132829
cmp dword [eax + 0x30], 0
jne 0x10132887
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x10132939
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 0x10132887
push eax
push 1
push dword [esi + 8]
call sym.nss3.dll_PK11_Authenticate
add esp, 0xc
push dword [esi + 8]
call fcn.101363c0
add esp, 4
mov edi, eax
test eax, eax
mov dword [esi + 0x14], 0
je 0x101328d3
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], ebx
lea ebx, [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xea]
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
cmp byte [ebp - 0x20], 0
mov ebx, eax
je 0x101328f6
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x101328c6
cmp dword [eax + 0x30], 0
jne 0x10132902
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10132902
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push 0
push 0xffffe002
jmp 0x1013291b
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10132925
push edi
push dword [esi + 8]
call fcn.101364f0
add esp, 8
test ebx, ebx
je 0x10132925
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push ebx
call fcn.10115520
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.10192ef0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x10132849