Function at 0x1009f7c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push edi
call fcn.1009c6a0
add esp, 4
mov esi, eax
push edi
call fcn.1009c620
add esp, 4
test esi, esi
je 0x1009f84c
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebx + 4]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1009fa16
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
xor ebx, ebx
cmp esi, 0xce534351
je 0x1009f853
mov eax, 0
cmp esi, 1
je 0x1009f858
cmp esi, 0xce534353
jne 0x1009f972
xor eax, eax
inc eax
jmp 0x1009f858
xor ebx, ebx
jmp 0x1009f9b6
mov eax, 2
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, eax
mov edx, eax
call fcn.1009f730
test eax, eax
je 0x1009f9ab
mov dword [ebp - 0x18], esi
mov edi, dword [edi + esi*4 + 0x24]
test edi, edi
je 0x1009f8d1
mov edx, dword [edi]
test edx, edx
je 0x1009f8d1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
xor esi, esi
mov eax, 8
mov dword [ebp - 0x1c], ecx
mov edx, dword [edx + 4]
cmp dword [edx + 4], ecx
jne 0x1009f8ab
mov ecx, edi
mov edi, dword [edx]
mov ebx, dword [ebp + 0xc]
cmp edi, dword [ebx]
mov edi, ecx
mov ecx, dword [ebp - 0x1c]
je 0x1009f9ca
mov edx, dword [edi + esi*4 + 4]
inc esi
add eax, 4
test edx, edx
jne 0x1009f88f
test esi, esi
je 0x1009f8d1
push eax
push edi
call fcn.1009a980
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + edx*4 + 0x24], eax
jmp 0x1009f8e9
push 8
push 0
call fcn.1009a460
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + edx*4 + 0x24], eax
xor esi, esi
test eax, eax
je 0x1009f968
push 0x10
push 0
call fcn.1009a460
add esp, 8
mov ebx, eax
test eax, eax
je 0x1009f94d
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
lock inc dword [eax + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x1009f94d
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x1c], eax
push eax
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009f94a
push dword [ebp - 0x1c]
push edi
push eax
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, edi
add esp, 0xc
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x1009f977
test eax, eax
jne 0x1009f986
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x101a76c8
push eax
push 0xa
jmp 0x1009f993
mov dword [ebp - 0x14], 0xffffffff
xor ebx, ebx
dec ebx
mov edi, dword [ebp + 8]
jmp 0x1009f9ab
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x101a76f0
push eax
push 0xb
jmp 0x1009f993
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x101a771c
push eax
push 7
call fcn.1009fc80
add esp, 8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [edi + ecx*4 + 0x24]
mov dword [ecx + esi*4], eax
mov ebx, dword [ebp - 0x14]
push dword [edi + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edx + 4], 0
mov eax, dword [edi + esi*4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x1009f9fd
push dword [ebx + 4]
call fcn.1009cd70
add esp, 4
push dword [ebx + 0xc]
call fcn.1009a580
add esp, 4
push ebx
call fcn.1009a580
add esp, 4
mov eax, dword [edi + esi*4]
push dword [eax]
call fcn.1009a6f0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + ecx*4 + 0x24]
jmp 0x1009f8e9
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x1009f81a