Function at 0x10085a30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x18]
mov ecx, dword [0x101db014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 1
jne 0x10085b0d
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
xor eax, eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
lea ebx, [ebp - 0x14]
mov dword [ebx], edx
lea eax, [edi + 0x2c]
push ecx
push 1
mov dword [ebp - 0x28], eax
push eax
push esi
push ebx
call fcn.100c29a0
add esp, 0x14
test eax, eax
je 0x10085b23
mov ebx, eax
push 0xb
push 1
push eax
push 0
call fcn.100857c0
add esp, 0x10
mov esi, eax
test eax, eax
je 0x10085afa
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xb0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xb4], eax
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x10085b5d
mov dword [ebp - 0x24], esi
mov esi, dword [esi]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
push esi
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov esi, eax
test eax, eax
je 0x10085aea
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xa8], esi
mov esi, eax
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10085b62
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10085b62
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x10085e17
cmp dword [0x101de200], 0
je 0x10085e2b
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor esi, esi
test eax, eax
mov ebx, dword [ebp - 0x28]
jne 0x10085b8a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10085b8a
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10085b78
lock dec dword [eax + 0x48]
jne 0x10085b78
push eax
call fcn.100d1c70
add esp, 4
test ebx, ebx
je 0x10085b87
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
test esi, esi
je 0x10085bdd
push dword [esi + 0xac]
push dword [edi + 0xac]
call sym.nss3.dll_SECITEM_CompareItem_Util
add esp, 8
test eax, eax
je 0x10085c4b
lea eax, [edi + 4]
lea ecx, [esi + 4]
push ecx
push eax
call fcn.10082d90
add esp, 8
test eax, eax
je 0x10085cba
mov eax, dword [esi + 0xa8]
test eax, eax
mov ecx, dword [ebp + 0xc]
cmove eax, ecx
test ecx, ecx
cmove ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x10085be0
mov dword [ebp - 0x2c], eax
mov eax, esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
test eax, eax
setne byte [ebp - 0x1d]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
sub esp, 0x18
lea eax, [ebp - 0x18]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
movups xmmword [esp], xmm0
xor ecx, ecx
mov edx, ebx
call fcn.10086300
add esp, 0x18
test eax, eax
jne 0x10085d3a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp ebx, 1
jne 0x10085cd0
push eax
call fcn.100dab60
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 1
jmp 0x10085cfd
mov eax, dword [ebp + 8]
lock inc dword [eax + 0x48]
mov dword [edi + 0xb0], eax
mov eax, dword [esi + 0xb4]
mov dword [edi + 0xb4], eax
mov dword [ebp - 0x24], esi
mov esi, dword [esi + 0xa8]
test esi, esi
mov eax, dword [ebp + 0xc]
cmove esi, eax
test eax, eax
cmovne esi, eax
test esi, esi
je 0x10085cb2
mov edi, dword [edi]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
push edi
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x10085ca9
push ebx
push esi
push eax
mov esi, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, esi
add esp, 0xc
mov edi, dword [ebp + 0x10]
mov dword [edi + 0xa8], eax
mov esi, dword [ebp - 0x24]
jmp 0x10085dc0
push 0
push 0xffffe02a
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x10085dc0
push eax
call fcn.100daad0
add esp, 4
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100dab60
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 1
push dword [eax]
call fcn.100da9f0
add esp, 4
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100dac50
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10085d1d
mov eax, dword [eax]
cmp ebx, 1
jne 0x10085d2e
push eax
call fcn.100dac50
jmp 0x10085d34
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10085d37
push eax
call fcn.100daad0
add esp, 4
mov ebx, dword [ebp - 0x28]
push 1
mov edi, dword [ebp - 0x2c]
push edi
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.100c2bd0
add esp, 0x14
test eax, eax
je 0x10085da1
lock inc dword [esi + 0x48]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xb0], esi
mov dword [ecx + 0xb4], eax
mov al, 1
test edi, edi
je 0x10085da7
mov esi, dword [ecx]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
push esi
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov esi, eax
test eax, eax
je 0x10085d94
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, dword [ebp + 0x10]
mov dword [edi + 0xa8], esi
mov al, 1
jmp 0x10085da9
xor edi, edi
xor eax, eax
jmp 0x10085da9
mov edi, ecx
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x10085e17
and al, byte [ebp - 0x1d]
cmp al, 1
jne 0x10085dc0
push esi
call fcn.100c2c70
add esp, 4
xor eax, eax
dec eax
lock xadd dword [esi + 0x70], eax
dec eax
test eax, eax
jg 0x10085e17
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x10085de6
lock dec dword [eax + 0x48]
jne 0x10085de6
push eax
call fcn.100d1c70
add esp, 4
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x10085e06
cmp dword [eax + 0x14], 1
jne 0x10085e06
push 1
push dword [esi + 0xac]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x10085e17
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100745e0
jmp 0x10085b30