Function at 0x10097d10
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.10094f30
add esp, 4
mov ebx, eax
push esi
call fcn.10094eb0
add esp, 4
xor esi, esi
dec esi
test ebx, ebx
je 0x10097e62
mov esi, dword [ebp + 0x14]
mov edi, dword [edi + 4]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10097fcb
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
cmp esi, 0xce534351
je 0x10097d8e
cmp esi, 1
mov edi, dword [ebp + 8]
je 0x10097d98
cmp esi, 0xce534353
jne 0x10097e54
xor esi, esi
inc esi
jmp 0x10097d9a
mov esi, 2
mov edi, dword [ebp + 8]
jmp 0x10097d9a
xor esi, esi
cmp dword [edi + esi*4 + 0xc], 0
je 0x10097e54
cmp dword [edi + esi*4 + 0x18], 0
je 0x10097e54
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 0x10097e1b
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x24], 0
je 0x10097e0c
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 0x10097e12
cmp dword [ecx], 0
je 0x10097dfe
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.10097540
mov dword [esi + 8], 0
push edi
call fcn.10094eb0
add esp, 4
mov edi, dword [ebp + 8]
jmp 0x10097e54
mov eax, dword [ebp + 8]
lea ecx, [eax + 8]
mov dword [ecx], 1
mov ebx, dword [ebp + 8]
push edi
call fcn.10094eb0
add esp, 4
mov eax, dword [ebx + esi*4 + 0x24]
test eax, eax
mov edi, ebx
je 0x10097e54
mov ebx, dword [eax]
test ebx, ebx
je 0x10097e54
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
add eax, 4
mov esi, dword [ebx + 4]
cmp dword [esi + 4], edx
jne 0x10097e4b
mov esi, dword [esi]
cmp esi, dword [ecx]
je 0x10097e6c
mov ebx, dword [eax]
add eax, 4
test ebx, ebx
jne 0x10097e3d
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 0x10097e81
push eax
call fcn.10092fd0
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x10097e88
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x10097f76
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10097f54
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 0x10097ece
inc edi
add esi, 0xc
cmp eax, edi
jne 0x10097ebc
jmp 0x10097f54
mov ecx, dword [esi]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x10097f4d
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4 + 8]
test edx, edx
je 0x10097f02
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4 + 4]
test eax, eax
je 0x10097fa3
cmp dword [ebp - 0x1c], ecx
jae 0x10097f22
jmp 0x10097fa3
push ecx
push dword [ebp + 0xc]
call fcn.10092ca0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [edx + ecx*4 + 4], eax
test eax, eax
je 0x10097fa3
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 0x10097f65
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 0x10097e9a
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 0x10097e62
mov ecx, dword [ebp + 0xc]
push 0
call fcn.100930c0
add esp, 4
jmp 0x10097e62
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 0x10097e5f
mov ecx, dword [ebp + 0xc]
push 1
call fcn.100930c0
jmp 0x10097e5c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x10097d60