Function at 0x100cf640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
xor esi, esi
push esi
push esi
call sym.nss3.dll_PR_SetErrorText
add esp, 8
cmp dword [0x101f33ac], esi
je 0x100cf6b2
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.100bfde0
add esp, 0x14
test eax, eax
je 0x100cf6c1
mov esi, eax
mov eax, dword [eax + 0x10]
xor edi, edi
dec edi
test eax, eax
je 0x100cf84a
cmp byte [eax], 0
je 0x100cf84a
push dword [esi + 0x14]
call sym.nss3.dll_SECMOD_FindModule
add esp, 4
test eax, eax
je 0x100cf6c9
push eax
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov edi, 0xfffffffe
jmp 0x100cf84a
push 0
push 0xffffe09a
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x100cf853
push 0
push esi
call fcn.100b6260
add esp, 8
mov edi, eax
test eax, eax
jne 0x100cf84a
cmp dword [esi + 0x50], 0
jne 0x100cf72b
mov ebx, dword [0x101f33b4]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x14], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100cf87a
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
inc dword [ebx + 0x24]
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [esi + 0x50], ebx
push esi
call fcn.100c18b0
add esp, 4
cmp dword [esi + 4], 0
je 0x100cf77d
cmp dword [0x101f33b0], 0
jne 0x100cf77d
mov ebx, dword [esi + 0x20]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100cf85d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
inc dword [esi + 0x24]
push dword [esi + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [0x101f33b0], esi
push esi
push 0x101f33b8
call fcn.100cedb0
add esp, 8
push esi
call fcn.10099690
add esp, 4
mov edi, eax
test eax, eax
jne 0x100cf84a
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x40], eax
push dword [0x101f33ac]
call fcn.100d3060
add esp, 4
cmp dword [esi + 0x2c], 0
jle 0x100cf810
xor ecx, ecx
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebx + 0x101bdf90]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
test dword [eax + 4], edx
setne cl
push ecx
push eax
push dword [ebp - 0x10]
call sym.nss3.dll_PK11_UpdateSlotAttribute
add esp, 0xc
test eax, eax
jne 0x100cf83a
add ebx, 0xc
cmp ebx, 0xfc
jne 0x100cf7c8
bt dword [ebp + 0x10], 0x1e
jae 0x100cf807
push dword [ebp - 0x10]
call sym.nss3.dll_PK11_UserDisableSlot
add esp, 4
mov ecx, dword [ebp - 0x14]
inc ecx
cmp ecx, dword [esi + 0x2c]
jl 0x100cf7ba
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
push esi
call fcn.100c1aa0
add esp, 4
mov edi, eax
test eax, eax
jne 0x100cf84a
push esi
call fcn.100c18b0
add esp, 4
mov edi, eax
jmp 0x100cf84a
mov edi, eax
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
push esi
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100cf75c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x10], eax
jmp 0x100cf707