Function at 0x100c6960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
cmp dword [edi + 0x30], 0
jne 0x100c69ac
mov edi, dword [edi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c6c83
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [edi + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push edi
push 4
push esi
call ecx
add esp, 0x14
mov ebx, eax
test eax, eax
je 0x100c69d8
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x30], 0
jne 0x100c69e9
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100c6a1d
mov ebx, dword [edi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100c6c66
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov al, 1
jmp 0x100c6a25
cmp dword [edi + 0x30], 0
je 0x100c69f3
xor eax, eax
test esi, esi
je 0x100c6add
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x6a]
call dword [section..00cfg]
push edi
push ebx
push esi
call ecx
add esp, 0xc
mov edi, eax
mov eax, dword [ebp - 0x24]
test edi, edi
jne 0x100c6ae2
mov dword [ebp - 0x20], esi
xor edi, edi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
lea eax, [eax*4 + 0x28]
test edi, edi
je 0x100c6a8c
test eax, eax
js 0x100c6b88
push eax
push edi
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
mov ebx, eax
test eax, eax
jne 0x100c6a9f
jmp 0x100c6b88
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov ebx, eax
test eax, eax
je 0x100c6bb8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x6e]
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
lea edi, [ebx + eax*4]
call dword [section..00cfg]
lea eax, [ebp - 0x18]
push eax
push 0xa
push edi
push dword [ebp - 0x20]
call ecx
add esp, 0x10
test eax, eax
jne 0x100c6b9a
mov eax, dword [ebp - 0x18]
add dword [esi], eax
mov edi, ebx
cmp eax, 0xa
je 0x100c6a61
jmp 0x100c6bba
mov edi, 0xb3
test al, al
je 0x100c6af4
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x100c6b55
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x30], 0
jne 0x100c6b30
mov ebx, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100c6ca0
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c6b55
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push edi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffff
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
push edi
jmp 0x100c6baf
push eax
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x72]
call dword [section..00cfg]
mov esi, dword [ebp - 0x20]
push esi
call ecx
add esp, 4
cmp byte [ebp - 0x24], 0
je 0x100c6be2
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
jne 0x100c6c46
cmp dword [edi + 0x30], 0
jne 0x100c6c1e
mov edi, dword [edi + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100c6cbe
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
cmp dword [edi + 0x30], 0
mov eax, dword [ebp + 0x14]
jne 0x100c6c46
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
mov eax, dword [ebp + 0x14]
add esp, 4
test ebx, ebx
je 0x100c6b6c
cmp dword [eax], 0
jne 0x100c6b74
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100c6b72
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100c6a0c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100c699c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x20], eax
jmp 0x100c6b1d
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x100c6c0b