Function at 0x100beff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + 8]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100bf030
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 0x100bf05c
mov edi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100bf27d
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 0x100bf088
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x30], 0
jne 0x100bf099
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x100bf0d3
mov esi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100bf260
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov al, 1
mov dword [ebp - 0x2c], eax
jmp 0x100bf0e0
cmp dword [ebx + 0x30], 0
je 0x100bf0a6
mov dword [ebp - 0x2c], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x86]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push esi
push eax
mov esi, dword [ebp - 0x30]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100bf18b
mov edi, eax
cmp byte [ebp - 0x2c], 0
je 0x100bf11d
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x100bf229
cmp dword [ebx + 0x30], 0
jne 0x100bf160
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100bf29a
mov esi, dword [ebp - 0x2c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x30]
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 0x100bf229
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100bf229
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x8a]
call dword [section..00cfg]
lea eax, [ebp - 0x24]
push eax
push esi
mov esi, dword [ebp - 0x30]
push edi
push dword [ebp + 0x20]
push esi
call ecx
add esp, 0x14
mov edi, eax
cmp byte [ebp - 0x2c], 0
je 0x100bf1c4
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x100bf225
cmp dword [ebx + 0x30], 0
jne 0x100bf203
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100bf2b8
mov esi, dword [ebp - 0x2c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x30]
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 0x100bf225
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x100bf254
push edi
call fcn.100aaef0
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.10157a00
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
xor esi, esi
jmp 0x100bf240
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100bf0bf
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100bf04f
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x100bf14a
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x100bf1ed