Function at 0x1007f2f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x18]
mov ecx, dword [0x101f1014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 1
jne 0x1007f3d3
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
xor eax, eax
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
lea eax, [ebp - 0x14]
mov dword [eax], edx
mov edi, dword [ebp + 0xc]
add esi, 0x2c
push ecx
push 1
push esi
push ebx
push eax
call fcn.100bc710
add esp, 0x14
test eax, eax
mov dword [ebp - 0x28], edi
je 0x1007f3e9
mov ebx, eax
push 0xb
push 1
push eax
push 0
call fcn.1007f090
add esp, 0x10
mov edi, eax
test eax, eax
je 0x1007f3c0
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0xb4], eax
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1007f425
mov dword [ebp - 0x20], edi
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
mov edi, eax
test eax, eax
je 0x1007f3b0
push ebx
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xa8], edi
mov edi, eax
xor ebx, ebx
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007f42a
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007f42a
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x1007f70f
cmp dword [0x101f4f80], 0
je 0x1007f727
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x1007f4b3
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1007f4b3
xor ebx, ebx
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1007f440
lock dec dword [eax + 0x48]
jne 0x1007f440
push eax
call fcn.100cb320
add esp, 4
test ebx, ebx
je 0x1007f44f
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test edi, edi
je 0x1007f4b3
push dword [edi + 0xac]
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xac]
call sym.nss3.dll_SECITEM_CompareItem_Util
add esp, 8
test eax, eax
je 0x1007f52f
lea eax, [ebx + 4]
mov ecx, edi
add ecx, 4
push ecx
push eax
call fcn.1007c520
add esp, 8
test eax, eax
je 0x1007f5fd
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0xa8]
test eax, eax
mov ecx, dword [ebp + 0xc]
cmove eax, ecx
test ecx, ecx
cmove ecx, eax
mov dword [ebp - 0x28], ecx
mov al, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
jmp 0x1007f4c6
mov dword [ebp - 0x20], 0
mov al, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0
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, esi
call fcn.1007fc00
add esp, 0x18
test eax, eax
jne 0x1007f61e
mov edi, esi
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp esi, 1
jne 0x1007f59f
push eax
call fcn.100d4790
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 1
jmp 0x1007f5cc
mov eax, dword [ebp + 8]
lock inc dword [eax + 0x48]
mov dword [ebx + 0xb0], eax
mov eax, dword [edi + 0xb4]
mov dword [ebx + 0xb4], eax
mov eax, ebx
mov esi, dword [edi + 0xa8]
test esi, esi
mov ecx, dword [ebp + 0xc]
cmove esi, ecx
test ecx, ecx
cmovne esi, ecx
test esi, esi
je 0x1007f723
mov dword [ebp - 0x20], edi
mov edi, dword [eax]
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
mov edi, eax
test eax, eax
je 0x1007f591
push ebx
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [ebp + 0x10]
mov dword [esi + 0xa8], edi
jmp 0x1007f6b5
push eax
call fcn.100d4700
add esp, 4
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100d4790
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 1
push dword [eax]
call fcn.100d4620
add esp, 4
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100d4880
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1007f5ec
mov eax, dword [eax]
cmp esi, 1
jne 0x1007f613
push eax
call fcn.100d4880
jmp 0x1007f619
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007f61c
push 0
push 0xffffe02a
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x1007f6b8
push eax
call fcn.100d4700
add esp, 4
mov esi, edi
push 1
mov edi, dword [ebp - 0x28]
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
push esi
call fcn.100bc950
add esp, 0x14
mov ebx, eax
test eax, eax
je 0x1007f68f
lock inc dword [esi + 0x48]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xb0], esi
mov esi, eax
mov dword [eax + 0xb4], ebx
test edi, edi
je 0x1007f68c
mov esi, dword [esi]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x28], edi
mov edi, eax
inc edi
push edi
push esi
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
mov esi, eax
test eax, eax
je 0x1007f67f
push edi
push dword [ebp - 0x28]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xa8], esi
mov esi, eax
jmp 0x1007f692
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x30]
cmp byte [ebp - 0x24], 0
jne 0x1007f70f
test ebx, ebx
sete al
mov ecx, dword [ebp - 0x2c]
xor cl, 1
or cl, al
jne 0x1007f6b5
mov edi, dword [ebp - 0x20]
push edi
call fcn.100bca00
add esp, 4
jmp 0x1007f6b8
mov edi, dword [ebp - 0x20]
xor eax, eax
dec eax
lock xadd dword [edi + 0x70], eax
dec eax
test eax, eax
jg 0x1007f70f
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x1007f6de
lock dec dword [eax + 0x48]
jne 0x1007f6de
push eax
call fcn.100cb320
add esp, 4
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x1007f6fe
cmp dword [eax + 0x14], 1
jne 0x1007f6fe
push 1
push dword [edi + 0xac]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x1007f70f
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
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 esi, eax
jmp 0x1007f6b8
call fcn.1001b2e0
jmp 0x1007f3f6