Function at 0x100ce570
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 [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
test edx, edx
je 0x100ce5de
lea eax, [ecx + 8]
xor edi, edi
mov ecx, edx
xor edx, edx
mov ebx, dword [eax - 8]
cmp ebx, 1
je 0x100ce5b9
cmp ebx, 0x161
jne 0x100ce5cd
mov edi, dword [eax - 4]
test edi, edi
je 0x100ce611
cmp dword [eax], 4
jne 0x100ce611
mov edi, dword [edi]
jmp 0x100ce5cd
mov ebx, dword [eax - 4]
test ebx, ebx
je 0x100ce611
cmp dword [eax], 1
jne 0x100ce611
xor edx, edx
cmp byte [ebx], 0
setne dl
add eax, 0xc
dec ecx
jne 0x100ce599
test edx, edx
je 0x100ce5e0
xor ebx, ebx
mov edx, dword [ebp + 0xc]
jmp 0x100ce5fa
xor edi, edi
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x100ce61b
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 0x100ce61b
movzx eax, bl
mov ecx, esi
push dword [ebp + 0x20]
push 1
push eax
call fcn.100cd640
add esp, 0xc
mov esi, eax
jmp 0x100ce665
push 0xd1
jmp 0x100ce7a0
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.100d5860
add esp, 0x14
test eax, eax
je 0x100ce775
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.100cd640
add esp, 0xc
mov esi, eax
lock dec dword [ebx + 0x48]
jne 0x100ce663
push ebx
call fcn.100d1c70
add esp, 4
mov bl, 1
test esi, esi
je 0x100ce7b3
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 0x100ce698
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 0x100ce6f1
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100ce763
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x100ce6b9
cmp dword [eax + 0x30], 0
jne 0x100ce717
mov dword [ebp - 0x20], ebx
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x28], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100ce7c9
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 0x100ce717
push eax
push 1
push dword [esi + 8]
call sym.nss3.dll_PK11_Authenticate
add esp, 0xc
push dword [esi + 8]
call fcn.100d2250
add esp, 4
mov edi, eax
mov dword [esi + 0x14], 0
test eax, eax
je 0x100ce763
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 0x100ce786
cmp dword [esi + 0x28], 0
mov eax, dword [esi + 8]
je 0x100ce756
cmp dword [eax + 0x30], 0
jne 0x100ce792
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100ce792
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push 0
push 0xffffe002
jmp 0x100ce7ab
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100ce7b5
push edi
push dword [esi + 8]
call fcn.100d2380
add esp, 8
test ebx, ebx
je 0x100ce7b5
push esi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push ebx
call fcn.100b1140
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.1014dc80
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100ce6d9