Function at 0x100a4990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
push esi
call sym.nss3.dll_PK11_NeedUserInit
add esp, 4
test eax, eax
je 0x100a49c0
push 0
push 0xffffe000
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100a4c71
sub esp, 4
push esi
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
mov ecx, dword [0x101f50a8]
xor ebx, ebx
dec ebx
test ecx, ecx
je 0x100a4c62
cmp dword [ebp + 0x1c], 1
mov eax, 2
sbb eax, 0
mov dword [ebp - 0x1c], eax
call dword [section..00cfg]
push dword [ebp + 0x14]
push 0
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100a4c62
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x12c], 0
je 0x100a4a45
push str.RETRY
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100a4be2
push 0x101d5e4b
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100a4cc1
call sym.nss3.dll_PR_Now
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x12c], 0
mov dword [ebp - 0x14], 0
jne 0x100a4a76
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
test edi, edi
jne 0x100a4aa6
mov ebx, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a4c16
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 0x4a]
call dword [section..00cfg]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call ecx
add esp, 0x10
mov esi, eax
mov dword [ebx + 0x134], 0
test edi, edi
jne 0x100a4ae0
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp esi, 0xaf
jle 0x100a4b36
cmp esi, 0xb0
je 0x100a4afc
cmp esi, 0xb3
jne 0x100a4c7f
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x38], eax
jne 0x100a4d0c
push 0
push ebx
call fcn.100cc510
add esp, 8
test eax, eax
je 0x100a4b47
mov ebx, eax
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp ebx, 0xfffffffe
mov edi, dword [ebp + 0x18]
je 0x100a4bec
jmp 0x100a4c71
cmp esi, 0xa0
je 0x100a4bcd
jmp 0x100a4c8c
mov ecx, ebx
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x100a4d0c
mov esi, eax
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x100a4b89
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a4c33
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x4a]
call dword [section..00cfg]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push esi
call ecx
add esp, 0x10
mov esi, eax
mov dword [edi + 0x134], 0
test ebx, ebx
jne 0x100a4bc1
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp esi, 0xa0
jne 0x100a4c7b
push 0
push 0xffffe00f
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [0x101f50a8]
test ecx, ecx
je 0x100a4c50
call dword [section..00cfg]
push dword [ebp + 0x14]
push 1
mov ebx, dword [ebp + 8]
push ebx
call ecx
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x100a4a10
jmp 0x100a4c57
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100a4a93
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100a4b79
mov ebx, 0xfffffffe
jmp 0x100a4c71
mov ebx, 0xfffffffe
cmp dword [ebp - 0x20], 0
jne 0x100a4c71
push 0
push 0xffffe00f
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x100a4c90
cmp esi, 0x100
je 0x100a4c9a
jmp 0x100a4d0c
test esi, esi
jne 0x100a4d0c
mov eax, dword [ebp + 8]
mov dword [eax + 0x68], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x70], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x74], ecx
mov esi, dword [ebp - 0x10]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ebx, ebx
cmp dword [ebp + 0x1c], 0
jne 0x100a4c71
mov esi, dword [ebp + 8]
push esi
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x100a4c71
push esi
call fcn.100cd0c0
add esp, 4
test eax, eax
je 0x100a4c71
mov esi, eax
push eax
push dword [eax + 0x28]
call fcn.1009f800
add esp, 8
push esi
call fcn.10096ae0
add esp, 4
jmp 0x100a4c71
push esi
call fcn.100aaef0
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 0x100a49b8