Function at 0x100cfa00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f33ac], 0
je 0x100cfa83
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x20]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100cfce4
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x12]
call dword [section..00cfg]
lea esi, [ebp - 0x14]
xor eax, eax
push esi
push eax
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x100cfaa9
push eax
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100cfa92
push 0
push 0xffffe09a
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebx + 0x2c]
jne 0x100cfac0
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
jmp 0x100cfa95
mov eax, 0xffffe097
jb 0x100cfa6b
shl ecx, 2
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100cfa76
mov edi, eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x12]
call dword [section..00cfg]
push esi
push edi
push 0
call ecx
add esp, 0xc
test eax, eax
je 0x100cfb1d
push eax
call fcn.100a9930
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
jmp 0x100cfa7e
push dword [ebx + 0x20]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebx]
call sym.nss3.dll_PORT_ArenaMark_Util
add esp, 4
test eax, eax
je 0x100cfb11
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x14]
shl eax, 2
xor esi, esi
inc esi
test eax, eax
cmovne esi, eax
push esi
push dword [ebx]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov edi, eax
test eax, eax
je 0x100cfb67
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x100cfc2b
xor esi, esi
mov dword [ebp - 0x1c], edi
mov eax, dword [0x101f33ac]
test eax, eax
je 0x100cfbc4
mov edi, ebx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ecx + esi*4]
push eax
call fcn.100d3060
add esp, 4
mov eax, dword [edi + 0x2c]
test eax, eax
jle 0x100cfbac
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x28]
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp dword [edi + 0x40], ebx
je 0x100cfc04
inc edx
cmp eax, edx
jne 0x100cfb9f
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
mov eax, 0xffffe043
mov ebx, dword [ebp + 8]
jmp 0x100cfbc9
mov eax, 0xffffe09a
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push ebx
call fcn.100c9bd0
add esp, 4
test eax, eax
je 0x100cfc9c
mov edi, eax
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + esi*4]
push ebx
call fcn.100cbbc0
add esp, 0xc
push edi
push 0
call fcn.10099470
add esp, 8
jmp 0x100cfc19
lock inc dword [edi + 0x48]
push dword [0x101f33ac]
call fcn.100d3140
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [eax + esi*4], edi
mov edi, eax
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x100cfb76
push 0
call fcn.100994e0
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [0x101f33ac]
call fcn.100d31d0
add esp, 4
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], eax
mov eax, edi
mov edi, dword [ebx + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x2c], eax
push dword [0x101f33ac]
call fcn.100d32c0
add esp, 4
test edi, edi
je 0x100cfabc
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
lock dec dword [eax + 0x48]
jne 0x100cfc92
push eax
call fcn.100c9d60
add esp, 4
inc ebx
cmp edi, ebx
jne 0x100cfc7d
jmp 0x100cfa95
push dword [ebp - 0x18]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x100cfcd3
cmp dword [ebp - 0x14], 0
je 0x100cfcd3
xor esi, esi
mov eax, dword [edi + esi*4]
test eax, eax
je 0x100cfcd3
lock dec dword [eax + 0x48]
jne 0x100cfccd
push eax
call fcn.100c9d60
add esp, 4
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x100cfcb7
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x20]
push 0
call fcn.100dbe30
jmp 0x100cfa7e
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100cfa38