Function at 0x100bf0f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x30], 0
jne 0x100bf139
mov edi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100bf40e
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 edi, eax
test eax, eax
je 0x100bf165
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x30], 0
jne 0x100bf176
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
test edi, edi
mov dword [ebp - 0x1c], esi
je 0x100bf1b0
mov esi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100bf3f1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov al, 1
mov esi, dword [ebp - 0x1c]
jmp 0x100bf1b8
cmp dword [ebx + 0x30], 0
je 0x100bf183
xor eax, eax
test esi, esi
je 0x100bf274
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x6a]
call dword [section..00cfg]
push esi
mov esi, dword [ebp - 0x1c]
push edi
push esi
call ecx
add esp, 0xc
mov edi, eax
mov eax, dword [ebp - 0x20]
test edi, edi
jne 0x100bf279
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
xor esi, esi
lea eax, [eax*4 + 0x28]
test esi, esi
je 0x100bf21f
mov ebx, 0xffffe013
test eax, eax
js 0x100bf322
push eax
push esi
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
jne 0x100bf230
jmp 0x100bf322
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100bf337
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x6e]
mov esi, dword [ebp + 0x14]
mov edx, dword [esi]
lea ebx, [eax + edx*4]
mov edi, eax
call dword [section..00cfg]
lea eax, [ebp - 0x18]
push eax
push 0xa
push ebx
push dword [ebp - 0x1c]
call ecx
add esp, 0x10
test eax, eax
jne 0x100bf315
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
mov esi, edi
cmp ecx, 0xa
je 0x100bf1f3
jmp 0x100bf339
mov edi, 0xb3
test al, al
je 0x100bf288
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x100bf2e2
cmp dword [ebx + 0x30], 0
jne 0x100bf2c0
mov esi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100bf42b
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
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 0x100bf2e2
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push edi
call fcn.100a9930
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 esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.100a9930
add esp, 4
mov ebx, eax
mov esi, edi
push 0
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
mov esi, edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x72]
call dword [section..00cfg]
push dword [ebp - 0x1c]
call ecx
add esp, 4
cmp byte [ebp - 0x20], 0
je 0x100bf362
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x24], 0
mov edi, dword [ebp + 0x14]
mov eax, esi
jne 0x100bf3c7
cmp dword [ebx + 0x30], 0
jne 0x100bf39f
mov edi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x100bf448
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x1c]
call ecx
add esp, 4
cmp dword [ebx + 0x30], 0
mov eax, esi
jne 0x100bf3c7
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
mov eax, esi
add esp, 4
test eax, eax
je 0x100bf3d7
cmp dword [edi], 0
je 0x100bf3e2
mov esi, eax
jmp 0x100bf301
mov dword [edi], 0xffffffff
jmp 0x100bf2ff
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100bf2ff
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100bf19c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100bf12c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100bf2ad
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ebx, eax
jmp 0x100bf38c