Function at 0x1009f4d0
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.1009c6a0
add esp, 4
mov ebx, eax
push esi
call fcn.1009c620
add esp, 4
xor esi, esi
dec esi
test ebx, ebx
je 0x1009f59f
mov esi, dword [ebp + 0x14]
mov edi, dword [edi + 4]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1009f704
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
cmp esi, 0xce534351
je 0x1009f54a
cmp esi, 1
mov edi, dword [ebp + 8]
je 0x1009f554
cmp esi, 0xce534353
jne 0x1009f591
xor ebx, ebx
inc ebx
jmp 0x1009f556
mov ebx, 2
mov edi, dword [ebp + 8]
jmp 0x1009f556
xor ebx, ebx
mov ecx, edi
mov edx, ebx
call fcn.1009f730
test eax, eax
je 0x1009f591
mov eax, dword [edi + ebx*4 + 0x24]
test eax, eax
je 0x1009f591
mov ebx, dword [eax]
test ebx, ebx
je 0x1009f591
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
add eax, 4
mov esi, dword [ebx + 4]
cmp dword [esi + 4], edx
jne 0x1009f588
mov esi, dword [esi]
cmp esi, dword [ecx]
je 0x1009f5a9
mov ebx, dword [eax]
add eax, 4
test ebx, ebx
jne 0x1009f57a
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 0x1009f5be
push eax
call fcn.1009a7a0
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x1009f5c5
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x1009f6af
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1009f68d
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 0x1009f60b
inc edi
add esi, 0xc
cmp eax, edi
jne 0x1009f5f9
jmp 0x1009f68d
mov ecx, dword [esi]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x1009f686
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax*4 + 8]
test eax, eax
je 0x1009f63b
cmp eax, ecx
jb 0x1009f6dc
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax*4 + 4]
test eax, eax
jne 0x1009f65b
jmp 0x1009f6dc
push ecx
push dword [ebp + 0xc]
call fcn.1009a460
mov edx, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4 + 4], eax
test eax, eax
je 0x1009f6dc
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + edx*4]
add edx, 8
mov dword [ebp - 0x10], edx
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 0x1009f69e
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 0x1009f5d7
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 0x1009f59f
mov ecx, dword [ebp + 0xc]
push 0
call fcn.1009a890
add esp, 4
jmp 0x1009f59f
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 0x1009f59c
mov ecx, dword [ebp + 0xc]
push 1
call fcn.1009a890
jmp 0x1009f599
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x1009f520