Function at 0x100992d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
lock inc dword [esi + 8]
push esi
call fcn.100964d0
add esp, 4
mov ebx, eax
push esi
call fcn.10096450
add esp, 4
xor esi, esi
dec esi
test ebx, ebx
je 0x10099422
mov esi, dword [ebp + 0x14]
mov edi, dword [edi + 4]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1009958b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
cmp esi, 0xce534351
je 0x1009934e
cmp esi, 1
mov edi, dword [ebp + 8]
je 0x10099358
cmp esi, 0xce534353
jne 0x10099414
xor esi, esi
inc esi
jmp 0x1009935a
mov esi, 2
mov edi, dword [ebp + 8]
jmp 0x1009935a
xor esi, esi
cmp dword [edi + esi*4 + 0xc], 0
je 0x10099414
cmp dword [edi + esi*4 + 0x18], 0
je 0x10099414
mov eax, dword [edi]
mov ebx, edi
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push dword [edi + 0x40]
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x100993db
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x24], 0
je 0x100993cc
push 0
push eax
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 8
test eax, eax
jne 0x100993d2
cmp dword [ecx], 0
je 0x100993be
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.10098ae0
mov dword [esi + 8], 0
push edi
call fcn.10096450
add esp, 4
mov edi, dword [ebp + 8]
jmp 0x10099414
mov eax, dword [ebp + 8]
lea ecx, [eax + 8]
mov dword [ecx], 1
mov ebx, dword [ebp + 8]
push edi
call fcn.10096450
add esp, 4
mov eax, dword [ebx + esi*4 + 0x24]
test eax, eax
mov edi, ebx
je 0x10099414
mov ebx, dword [eax]
test ebx, ebx
je 0x10099414
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
add eax, 4
mov esi, dword [ebx + 4]
cmp dword [esi + 4], edx
jne 0x1009940b
mov esi, dword [esi]
cmp esi, dword [ecx]
je 0x1009942c
mov ebx, dword [eax]
add eax, 4
test ebx, ebx
jne 0x100993fd
push dword [edi + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
dec esi
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10099441
push eax
call fcn.10094570
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x10099448
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x10099536
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10099514
mov ecx, dword [ebp - 0x14]
lea esi, [ecx + ecx*2]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx + esi*4]
mov esi, dword [ebx + 8]
add esi, 8
xor edi, edi
cmp ecx, dword [esi - 8]
je 0x1009948e
inc edi
add esi, 0xc
cmp eax, edi
jne 0x1009947c
jmp 0x10099514
mov ecx, dword [esi]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x1009950d
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 8]
test edx, edx
je 0x100994c2
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4 + 4]
test eax, eax
je 0x10099563
cmp dword [ebp - 0x1c], ecx
jae 0x100994e2
jmp 0x10099563
push ecx
push dword [ebp + 0xc]
call fcn.10094240
add esp, 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [edx + ecx*4 + 4], eax
test eax, eax
je 0x10099563
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
lea ecx, [edx + ecx*4]
add ecx, 8
mov dword [ebp - 0x10], ecx
push dword [ebp - 0x1c]
push dword [esi - 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov edx, dword [ebp + 0x1c]
jne 0x10099525
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + eax*4 + 8], 0xffffffff
mov ecx, dword [ebp - 0x14]
inc ecx
mov eax, ecx
mov dword [ebp - 0x14], ecx
cmp ecx, edx
jne 0x1009945a
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x10099422
mov ecx, dword [ebp + 0xc]
push 0
call fcn.10094660
add esp, 4
jmp 0x10099422
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1009941f
mov ecx, dword [ebp + 0xc]
push 1
call fcn.10094660
jmp 0x1009941c
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ebx, eax
jmp 0x10099320