Function at 0x100a33d0
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 0x100a3400
push 0
push 0xffffe000
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100a36b1
sub esp, 4
push esi
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
mov ecx, dword [0x101f3078]
xor ebx, ebx
dec ebx
test ecx, ecx
je 0x100a36a2
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 0x100a36a2
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x12c], 0
je 0x100a3485
push str.RETRY
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100a3622
push 0x101d3c83
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x100a3701
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 0x100a34b6
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 0x100a34e6
mov ebx, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a3656
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 0x100a3520
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp esi, 0xaf
jle 0x100a3576
cmp esi, 0xb0
je 0x100a353c
cmp esi, 0xb3
jne 0x100a36bf
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x38], eax
jne 0x100a374c
push 0
push ebx
call fcn.100caf50
add esp, 8
test eax, eax
je 0x100a3587
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 0x100a362c
jmp 0x100a36b1
cmp esi, 0xa0
je 0x100a360d
jmp 0x100a36cc
mov ecx, ebx
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x100a374c
mov esi, eax
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x100a35c9
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a3673
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 0x100a3601
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp esi, 0xa0
jne 0x100a36bb
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 [0x101f3078]
test ecx, ecx
je 0x100a3690
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 0x100a3450
jmp 0x100a3697
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100a34d3
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100a35b9
mov ebx, 0xfffffffe
jmp 0x100a36b1
mov ebx, 0xfffffffe
cmp dword [ebp - 0x20], 0
jne 0x100a36b1
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 0x100a36d0
cmp esi, 0x100
je 0x100a36da
jmp 0x100a374c
test esi, esi
jne 0x100a374c
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 0x100a36b1
mov esi, dword [ebp + 8]
push esi
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x100a36b1
push esi
call fcn.100cbb00
add esp, 4
test eax, eax
je 0x100a36b1
mov esi, eax
push eax
push dword [eax + 0x28]
call fcn.1009e240
add esp, 8
push esi
call fcn.10095540
add esp, 4
jmp 0x100a36b1
push esi
call fcn.100a9930
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 0x100a33f8