Function at 0x1013ae60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
xor esi, esi
push esi
push esi
call sym.nss3.dll_PR_SetErrorText
add esp, 8
cmp dword [0x101d5b48], esi
je 0x1013aed2
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.1012b6b0
add esp, 0x14
test eax, eax
je 0x1013aee1
mov ebx, eax
mov eax, dword [eax + 0x10]
xor edi, edi
dec edi
test eax, eax
je 0x1013afb8
cmp byte [eax], 0
je 0x1013afb8
push dword [ebx + 0x14]
call sym.nss3.dll_SECMOD_FindModule
add esp, 4
test eax, eax
je 0x1013aee9
push eax
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov edi, 0xfffffffe
jmp 0x1013afb8
push 0
push 0xffffe09a
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x1013afc1
push 0
push ebx
call fcn.10122030
add esp, 8
mov edi, eax
test eax, eax
jne 0x1013afb8
cmp dword [ebx + 0x50], 0
jne 0x1013af49
mov dword [ebp - 0x10], ebx
mov ebx, dword [0x101d5b50]
mov esi, dword [ebx + 0x20]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1013b09f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
inc dword [ebx + 0x24]
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], ebx
mov ebx, eax
push ebx
call fcn.1012d390
add esp, 4
cmp dword [ebx + 4], 0
je 0x1013af9b
cmp dword [0x101d5b4c], 0
jne 0x1013af9b
mov esi, dword [ebx + 0x20]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1013b089
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
inc dword [ebx + 0x24]
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [0x101d5b4c], ebx
push ebx
push 0x101d5b54
call fcn.1013a5c0
add esp, 8
push ebx
call fcn.10105a30
add esp, 4
mov edi, eax
test eax, eax
je 0x1013afcb
push ebx
call sym.nss3.dll_SECMOD_DestroyModule
add esp, 4
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x40], eax
push dword [0x101d5b48]
call fcn.1013e010
add esp, 4
cmp dword [ebx + 0x2c], 0
jle 0x1013b040
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], ecx
mov ebx, 0x15
mov esi, 0x101a2360
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 4]
xor eax, eax
and ecx, dword [ebp + 0x10]
setne al
push eax
push esi
push dword [ebp - 0x14]
call sym.nss3.dll_PK11_UpdateSlotAttribute
add esp, 0xc
test eax, eax
jne 0x1013b071
add esi, 0xc
dec ebx
jne 0x1013b000
bt dword [ebp + 0x10], 0x1e
jae 0x1013b034
push dword [ebp - 0x14]
call sym.nss3.dll_PK11_UserDisableSlot
add esp, 4
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
inc ecx
cmp ecx, dword [ebx + 0x2c]
jl 0x1013afea
push dword [0x101d5b48]
call fcn.1013e0d0
add esp, 4
push ebx
call fcn.1012d580
add esp, 4
mov edi, eax
test eax, eax
jne 0x1013afb8
push ebx
call fcn.1012d390
add esp, 4
mov edi, eax
jmp 0x1013afb8
mov edi, eax
push dword [0x101d5b48]
call fcn.1013e0d0
add esp, 4
push dword [ebp - 0x10]
jmp 0x1013afb9
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1013af7a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1013af26