Function at 0x100f8aa0
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 + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.100f26e0
test eax, eax
je 0x100f8b32
movzx eax, word [edi + 0x58]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
cmp eax, 0x304
jb 0x100f8bec
mov eax, dword [edi + 0xa1c]
test eax, eax
je 0x100f8bec
cmp dword [eax + 0x10], 2
jne 0x100f8bec
movzx esi, word [eax + 0x24]
test esi, esi
je 0x100f8bec
mov ecx, 0x210
cmp word [edi + ecx], si
je 0x100f8b99
add ecx, 4
cmp ecx, 0x32c
jne 0x100f8b0a
push 0
push 0xffffd016
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
jmp 0x100f8b9b
cmp dword [0x101f2f50], 0
je 0x100f8d37
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f8d01
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101f2f50], 0
je 0x100f8d41
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f8d1c
mov esi, dword [eax + 0x28]
push 0x28
push 2
push edi
call fcn.100f2eb0
add esp, 0xc
push 0
push esi
jmp 0x100f8c9e
add ecx, edi
movzx edx, byte [edi + 0x3e0]
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.100f2b60
add esp, 8
test eax, eax
je 0x100f8bec
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 2
jb 0x100f8bec
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1c], ecx
xor edx, edx
inc edx
mov ecx, esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi + edx - 1]
rol si, 8
movzx esi, si
cmp esi, ecx
mov esi, ecx
je 0x100f8c66
add edx, 2
cmp edx, eax
jb 0x100f8bca
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
lea edi, [eax + ebx*4]
add edi, 0x210
movzx edx, byte [eax + 0x3e0]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100f2b60
add esp, 8
test eax, eax
je 0x100f8c4e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, 2
jb 0x100f8c4e
movzx ecx, word [edi]
mov dword [ebp - 0x24], ecx
movzx ecx, cx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 4]
xor esi, esi
inc esi
movzx edi, word [edx + esi - 1]
rol di, 8
movzx edi, di
cmp edi, ecx
je 0x100f8c5d
add esi, 2
cmp esi, eax
jb 0x100f8c37
inc ebx
cmp ebx, 0x47
jne 0x100f8bf4
push 0
push 0xffffd002
jmp 0x100f8c9e
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov word [edi + 0x490], si
xor eax, eax
cmp word [eax + 0x101c35e0], si
je 0x100f8cbd
add eax, 0x14
cmp eax, 0x5a0
jne 0x100f8c6f
xor esi, esi
push esi
push 0xffffd016
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi + 0x494], esi
push esi
push 0xffffe001
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, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [eax + 0x101c35e0]
mov dword [edi + 0x494], eax
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x101c3b80]
mov dword [edi + 0x48c], eax
or byte [edi + 0x54c], 2
test ebx, ebx
je 0x100f8cfd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.100f5440
xor esi, esi
jmp 0x100f8ca9
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100f8b53
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100f8b81
call fcn.100029d0
jmp 0x100f8b3f
call fcn.100029d0
jmp 0x100f8b6d