Function at 0x1007dd50
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 [0x101ef014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 1
jne 0x1007de33
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.100bb150
add esp, 0x14
test eax, eax
mov dword [ebp - 0x28], edi
je 0x1007de49
mov ebx, eax
push 0xb
push 1
push eax
push 0
call fcn.1007daf0
add esp, 0x10
mov edi, eax
test eax, eax
je 0x1007de20
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 0x1007de85
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 0x1007de10
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 0x1007de8a
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1007de8a
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x1007e16f
cmp dword [0x101f2f50], 0
je 0x1007e187
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x1007df13
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1007df13
xor ebx, ebx
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1007dea0
lock dec dword [eax + 0x48]
jne 0x1007dea0
push eax
call fcn.100c9d60
add esp, 4
test ebx, ebx
je 0x1007deaf
push 1
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test edi, edi
je 0x1007df13
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 0x1007df8f
lea eax, [ebx + 4]
mov ecx, edi
add ecx, 4
push ecx
push eax
call fcn.1007af80
add esp, 8
test eax, eax
je 0x1007e05d
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 0x1007df26
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.1007e660
add esp, 0x18
test eax, eax
jne 0x1007e07e
mov edi, esi
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp esi, 1
jne 0x1007dfff
push eax
call fcn.100d31d0
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 1
jmp 0x1007e02c
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 0x1007e183
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 0x1007dff1
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 0x1007e115
push eax
call fcn.100d3140
add esp, 4
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100d31d0
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24], 1
push dword [eax]
call fcn.100d3060
add esp, 4
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100d32c0
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1007e04c
mov eax, dword [eax]
cmp esi, 1
jne 0x1007e073
push eax
call fcn.100d32c0
jmp 0x1007e079
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1007e07c
push 0
push 0xffffe02a
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
jmp 0x1007e118
push eax
call fcn.100d3140
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.100bb390
add esp, 0x14
mov ebx, eax
test eax, eax
je 0x1007e0ef
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 0x1007e0ec
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 0x1007e0df
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 0x1007e0f2
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x30]
cmp byte [ebp - 0x24], 0
jne 0x1007e16f
test ebx, ebx
sete al
mov ecx, dword [ebp - 0x2c]
xor cl, 1
or cl, al
jne 0x1007e115
mov edi, dword [ebp - 0x20]
push edi
call fcn.100bb440
add esp, 4
jmp 0x1007e118
mov edi, dword [ebp - 0x20]
xor eax, eax
dec eax
lock xadd dword [edi + 0x70], eax
dec eax
test eax, eax
jg 0x1007e16f
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x1007e13e
lock dec dword [eax + 0x48]
jne 0x1007e13e
push eax
call fcn.100c9d60
add esp, 4
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x1007e15e
cmp dword [eax + 0x14], 1
jne 0x1007e15e
push 1
push dword [edi + 0xac]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x1007e16f
push 0
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
jmp 0x1007e118
call fcn.100029d0
jmp 0x1007de56