Function at 0x100c4fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x101db014]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov ebx, dword [esi + 8]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x100c4fdb
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebx + 0x30], 0
jne 0x100c5007
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c523b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push 4
push esi
call ecx
add esp, 0x14
mov esi, eax
test eax, eax
je 0x100c5033
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x30], 0
jne 0x100c5044
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
test esi, esi
mov dword [ebp - 0x2c], edi
je 0x100c5081
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c521e
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov al, 1
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x2c]
jmp 0x100c508e
cmp dword [ebx + 0x30], 0
je 0x100c5051
mov dword [ebp - 0x28], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 0xaa]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push esi
push eax
push edi
call ecx
add esp, 0xc
test eax, eax
je 0x100c5136
mov esi, eax
cmp byte [ebp - 0x28], 0
je 0x100c50c8
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x100c51ef
cmp dword [ebx + 0x30], 0
jne 0x100c510b
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x28], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100c5258
mov edi, dword [ebp - 0x28]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c51ef
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100c51ef
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0xae]
mov esi, dword [edx + 4]
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
mov edi, dword [eax + 8]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
call ecx
add esp, 0x14
mov esi, eax
cmp byte [ebp - 0x28], 0
je 0x100c5181
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x100c51e2
cmp dword [ebx + 0x30], 0
jne 0x100c51c0
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x28], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100c5276
mov edi, dword [ebp - 0x28]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
jne 0x100c51e2
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
test esi, esi
je 0x100c521a
push esi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x100c5206
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100c506a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100c4ffa
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100c50f5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100c51aa