Function at 0x100bc710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [0x101f50a0]
xor eax, eax
push eax
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
test eax, eax
je 0x100bc7c5
push eax
call fcn.100cd0c0
add esp, 4
test eax, eax
je 0x100bc8e5
mov esi, eax
push 0
push edi
call fcn.1009ddd0
add esp, 8
test eax, eax
je 0x100bc818
mov edi, eax
xor ecx, ecx
lea eax, [ebp - 0x18]
push ecx
push ecx
push 2
push eax
push ecx
push esi
call fcn.100981e0
add esp, 0x18
mov ebx, eax
push esi
call fcn.10096ae0
add esp, 4
xor eax, eax
push eax
push ebx
push edi
call fcn.1009d640
add esp, 0xc
push ebx
call fcn.10094350
add esp, 4
xor eax, eax
push eax
push eax
push eax
push edi
call fcn.1009dcc0
add esp, 0x10
mov esi, eax
push edi
call fcn.1009d4f0
add esp, 4
jmp 0x100bc7d4
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.100a1160
add esp, 8
mov esi, eax
test esi, esi
je 0x100bc82c
mov ebx, dword [esi]
test ebx, ebx
je 0x100bc823
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 4]
mov edx, edi
xor edx, 1
cmp edi, 1
setne al
mov esi, dword [ebx + 0x30]
test esi, esi
setne ah
or esi, edx
je 0x100bc84e
and al, ah
jne 0x100bc84e
mov ebx, dword [ecx]
add ecx, 4
test ebx, ebx
jne 0x100bc7ec
push dword [ebp - 0x1c]
call fcn.1009d4c0
add esp, 4
jmp 0x100bc83a
push esi
call fcn.10096ae0
jmp 0x100bc8e2
push esi
call fcn.1009d4c0
add esp, 4
call fcn.10094920
cmp eax, 0x1b
jne 0x100bc8e5
push 0
push 0xffffe089
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100bc8e5
lock inc dword [ebx + 4]
push dword [ebp - 0x1c]
call fcn.1009d4c0
add esp, 4
mov eax, dword [ebx + 0x2c]
xor esi, esi
mov edi, 0
test eax, eax
je 0x100bc87a
push eax
call sym.nss3.dll_PORT_Strdup_Util
add esp, 4
mov edi, eax
test eax, eax
je 0x100bc8dc
push dword [ebx + 0x28]
push esi
push esi
call sym.nss3.dll_SECITEM_AllocItem_Util
add esp, 0xc
test eax, eax
je 0x100bc8ce
mov esi, eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push dword [eax + 4]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x34]
lock inc dword [eax + 0x48]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call fcn.1009cc00
add esp, 4
jmp 0x100bc915
test edi, edi
je 0x100bc8dc
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call fcn.1009cc00
add esp, 4
cmp dword [0x101f4f80], 0
je 0x100bc941
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100bc929
xor esi, esi
cmp dword [eax + 0x28], 0
jne 0x100bc915
push 0
push 0xffffe089
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100bc8fe
call fcn.1001b2e0
jmp 0x100bc8ee