Function at 0x100aad20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 8]
push ebx
call sym.nss3.dll_PK11_NeedUserInit
add esp, 4
test eax, eax
je 0x100aad50
push 0
push 0xffffe000
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100aaf76
push 0
push ebx
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
mov ecx, dword [0x101decd4]
xor esi, esi
dec esi
test ecx, ecx
je 0x100aaf67
mov edi, dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 1
mov eax, 2
sbb eax, 0
mov dword [ebp - 0x28], eax
call dword [section..00cfg]
push edi
push 0
push ebx
call ecx
add esp, 0xc
test eax, eax
je 0x100aaf67
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [ebx + 0x12c], 0
je 0x100aadcf
push str.RETRY
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100aaf13
push 0x101c049c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100aafc8
call sym.nss3.dll_PR_Now
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x12c], 0
mov dword [ebp - 0x14], 0
jne 0x100aae00
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x100aae3e
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100aaecb
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x4a]
call dword [section..00cfg]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push esi
call ecx
add esp, 0x10
mov dword [ebx + 0x134], 0
test edi, edi
mov edi, eax
jne 0x100aae7b
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
mov eax, edi
add esp, 4
cmp eax, 0xb2
jg 0x100aae8b
cmp eax, 0xb0
je 0x100aae96
jmp 0x100aaee8
cmp eax, 0xb3
jne 0x100aaf80
mov ebx, dword [ebp + 8]
cmp esi, dword [ebx + 0x38]
setne al
or al, byte [ebp - 0x2c]
test al, 1
jne 0x100aaf8a
push 0
push ebx
call fcn.100d3c80
add esp, 8
test eax, eax
jne 0x100aaf1f
mov esi, dword [ebx + 0x38]
mov al, 1
test esi, esi
jne 0x100aae08
jmp 0x100aaf8a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100aae2e
test eax, eax
je 0x100aafaf
cmp eax, 0xa0
mov ebx, dword [ebp + 8]
jne 0x100aaf8a
push 0
push 0xffffe00f
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100aaf35
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp esi, 0xfffffffe
mov edi, dword [ebp + 0x14]
jne 0x100aaf76
mov ecx, dword [0x101decd4]
test ecx, ecx
je 0x100aaffb
call dword [section..00cfg]
push edi
push 1
push ebx
call ecx
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x100aad9a
mov esi, 0xfffffffe
cmp dword [ebp - 0x1c], 0
jne 0x100aaf76
push 0
push 0xffffe00f
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0x100
mov ebx, dword [ebp + 8]
je 0x100aafb9
push edi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100aad48
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x68], 1
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x74], eax
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
cmp dword [ebp + 0x1c], 0
jne 0x100aaf76
push ebx
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x100aaf76
mov eax, dword [ebx + 0x13c]
push eax
push dword [eax + 0x28]
call fcn.100a5b10
jmp 0x100aaf73
mov esi, 0xfffffffe
jmp 0x100aaf76